-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Bruce Wayne edited this page Feb 18, 2021
·
4 revisions
IStreamCrypto crypto = StreamCryptoCreate.AesCtr(key, iv);
crypto.Update(input, output);
crypto.Reset();
crypto.Dispose();
IAEADCrypto crypto = AEADCryptoCreate.ChaCha20Poly1305(key);
crypto.Encrypt(nonce, plain, cipher, tag, associatedData);
crypto.Decrypt(nonce, cipher, tag, plain, associatedData);
crypto.Dispose();