Table of Contents

Interface IEncryptionService

Namespace
GastroSky.Services.Crypto
Assembly
GastroSky.dll
public interface IEncryptionService

Methods

CalculateCiphertextOutputSize(long)

long CalculateCiphertextOutputSize(long plaintextSize)

Parameters

plaintextSize long

Returns

long

CalculatePlaintextOutputSize(long)

long CalculatePlaintextOutputSize(long ciphertextSize)

Parameters

ciphertextSize long

Returns

long

Decrypt(Stream, Stream, Memory<byte>, Memory<byte>, ReadOnlyMemory<byte>)

Task<bool> Decrypt(Stream ciphertext, Stream output, Memory<byte> outPlaintextSHA256, Memory<byte> outCiphertextSHA256, ReadOnlyMemory<byte> encryptionKey)

Parameters

ciphertext Stream
output Stream
outPlaintextSHA256 Memory<byte>
outCiphertextSHA256 Memory<byte>
encryptionKey ReadOnlyMemory<byte>

Returns

Task<bool>

Encrypt(Stream, Stream, Memory<byte>, Memory<byte>, ReadOnlyMemory<byte>)

Task<bool> Encrypt(Stream plaintext, Stream output, Memory<byte> outPlaintextSHA256, Memory<byte> outCiphertextSHA256, ReadOnlyMemory<byte> encryptionKey)

Parameters

plaintext Stream
output Stream
outPlaintextSHA256 Memory<byte>
outCiphertextSHA256 Memory<byte>
encryptionKey ReadOnlyMemory<byte>

Returns

Task<bool>