Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }