-
Notifications
You must be signed in to change notification settings - Fork 3
AEAD crypto
Bruce Wayne edited this page Jul 21, 2021
·
2 revisions
IAEADCrypto crypto = AEADCryptoCreate.AesGcm(ReadOnlySpan<byte> key)
IAEADCrypto crypto = AEADCryptoCreate.Sm4Gcm(ReadOnlySpan<byte> key)
IAEADCrypto crypto = AEADCryptoCreate.ChaCha20Poly1305(ReadOnlySpan<byte> key)
IAEADCrypto crypto = AEADCryptoCreate.XChaCha20Poly1305(ReadOnlySpan<byte> key)
Property | Description |
---|---|
Name | Name of the crypto |
Method | Description |
---|---|
void Encrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> source, Span<byte> destination, Span<byte> tag, ReadOnlySpan<byte> associatedData); |
Encrypt the data |
void Decrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> source, ReadOnlySpan<byte> tag, Span<byte> destination, ReadOnlySpan<byte> associatedData); |
Decrypt the data |
void Dispose() |
Releases the resources |