internal void Encrypt(byte[] nonce, byte[] plaintext, byte[] ciphertext, byte[] tag, byte[] associatedData = null) { AesAead.CheckArgumentsForNull(nonce, plaintext, ciphertext, tag); AesAead.Encrypt(_keyHandle, nonce, associatedData, plaintext, ciphertext, tag); }
public void Decrypt(byte[] nonce, byte[] ciphertext, byte[] tag, byte[] plaintext, byte[] associatedData = null) { AesAead.CheckArgumentsForNull(nonce, plaintext, ciphertext, tag); AesAead.Decrypt(_keyHandle, nonce, associatedData, ciphertext, tag, plaintext, clearPlaintextOnFailure: true); }