A trait representing a concrete algorithm to encrypt and decrypt data.
The file systems supporting cryptography make use of this trait to actually encrypt and decrypt data. For this purpose, the trait provides functions to request a CryptCipher object for a cryptographic operation.
For some file system implementations, the size of files must be known before they can be uploaded. To provide this information when encrypting or decrypting the content of files dynamically during upload and download, a concrete algorithm implementation must be able to calculate the resulting size of data that is encrypted or decrypted.
Returns a new ''CryptCipher'' object that can be used to decrypt data. The resulting object is applicable for a single decrypt operation that can involve an arbitrary number of data chunks.
Returns a new ''CryptCipher'' object that can be used to decrypt data. The resulting object is applicable for a single decrypt operation that can involve an arbitrary number of data chunks.
Returns a new ''CryptCipher'' object that can be used to encrypt data. The resulting object is applicable for a single encrypt operation that can involve an arbitrary number of data chunks.
Returns a new ''CryptCipher'' object that can be used to encrypt data. The resulting object is applicable for a single encrypt operation that can involve an arbitrary number of data chunks.