示例#1
0
 public static byte[] Decrypt(byte[] cipher, byte[] nonce, byte[] key, byte[] additionalData = null) => SecretAeadChaCha20Poly1305.Decrypt(cipher, nonce, key, additionalData);
示例#2
0
 public static byte[] GenerateNonce() => SecretAeadChaCha20Poly1305.GenerateNonce();
示例#3
0
 public static byte[] Encrypt(byte[] message, byte[] nonce, byte[] key, byte[] additionalData = null) => SecretAeadChaCha20Poly1305.Encrypt(message, nonce, key, additionalData);