IClientSideEncryptor
interface IClientSideEncryptor
Task<ValueTuple<byte[], EncryptionData>> BufferedEncryptInternal(Stream plaintext, bool async, CancellationToken cancellationToken)
Encrypts the given stream and provides the metadata used to encrypt.
Task<Stream> EncryptedOpenWriteInternal(Func<EncryptionData, bool, CancellationToken, Task<Stream>> openWriteInternal, bool async, CancellationToken cancellationToken)
Creates a cryptographic transformation stream to write plaintext contents to.
Task<ValueTuple<Stream, EncryptionData>> EncryptInternal(Stream plaintext, bool async, CancellationToken cancellationToken)
Wraps the given read-stream in a cryptographic transformation stream and provides
the metadata used to create that stream.
Calculates the expected length of the output content.