Пример #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);