PyTorch/CSPRNG 0.2.0 released w/ CUDA 11, New APIs for encryption/decryption, Windows CUDA support and more
PyTorch/CSPRNG 0.2.0 Release Notes
New API: encrypt/decrypt (#83)
torchcsprng 0.2.0 exposes new API for tensor encryption/decryption. Tensor encryption/decryption API is dtype agnostic, so a tensor of any dtype can be encrypted and the result can be stored to a tensor of any dtype. An encryption key also can be a tensor of any dtype. Currently torchcsprng supports AES cipher with 128-bit key in two modes: ECB and CTR.
torchcsprng.encrypt(input: Tensor, output: Tensor, key: Tensor, cipher: string, mode: string)
input
tensor can be any CPU or CUDA tensor of any dtype and size in bytes(zero-padding is used to make its size in bytes divisible by block size in bytes)output
tensor can have any dtype and the same device asinput
tensor and the size in bytes rounded up to the block size in bytes(16 bytes for AES 128)key
tensor can have any dtype and the same device asinput
tensor and size in bytes equal to 16 for AES 128cipher
currently can be only one supported value"aes128"
mode
currently can be either"ecb"
or"ctr"
torchcsprng.decrypt(input: Tensor, output: Tensor, key: Tensor, cipher: string, mode: string)
input
tensor can be any CPU or CUDA tensor of any dtype with size in bytes divisible by the block size in bytes(16 bytes for AES 128)output
tensor can have any dtype but the same device asinput
tensor and the same size in bytes asinput
tensorkey
tensor can have any dtype and the same device asinput
tensor and size in bytes equal to 16 for AES 128cipher
currently can be only one supported value"aes128"
mode
currently can be either"ecb"
or"ctr"
CUDA 11 support (#82)
CUDA 11 is now officially supported with binaries available via pip and conda
End of support CUDA 9.2
since PyTorch stopped support of CUDA 9.2, torchcsprng also stopped supporting CUDA 9.2
Windows CUDA support (#40)
Compilation issues with CUDA on Windows resolved and binaries with CUDA 10.1, 10.2, 11.1 support are available via pip and conda
Python 3.9 support
torchcsprng is available for Python 3.9 on Linux and Windows via conda and on Linux and Windows and macOS via pip