Skip to content
Bruce Wayne edited this page Feb 18, 2021 · 4 revisions

Usage

Stream cipher

IStreamCrypto crypto = StreamCryptoCreate.AesCtr(key, iv);

crypto.Update(input, output);

crypto.Reset();

crypto.Dispose();

AEAD cipher

IAEADCrypto crypto = AEADCryptoCreate.ChaCha20Poly1305(key);

crypto.Encrypt(nonce, plain, cipher, tag, associatedData);

crypto.Decrypt(nonce, cipher, tag, plain, associatedData);

crypto.Dispose();

Data format extensions

KDF

Symmetric crypto

Clone this wiki locally