Esempio n. 1
0
 internal static unsafe extern int crypto_stream_chacha20_ietf_xor_ic(
     byte *c,
     byte *m,
     ulong mlen,
     NSec.Cryptography.Nonce *n,
     uint ic,
     byte *k);
Esempio n. 2
0
 internal static unsafe extern int crypto_aead_chacha20poly1305_ietf_encrypt(
     byte *c,
     out ulong clen_p,
     byte *m,
     ulong mlen,
     byte *ad,
     ulong adlen,
     byte *nsec,
     NSec.Cryptography.Nonce *npub,
     SecureMemoryHandle k);
Esempio n. 3
0
 internal static unsafe extern int crypto_aead_aes256gcm_decrypt(
     byte *m,
     out ulong mlen_p,
     byte *nsec,
     byte *c,
     ulong clen,
     byte *ad,
     ulong adlen,
     NSec.Cryptography.Nonce *npub,
     SecureMemoryHandle k);
Esempio n. 4
0
 internal static unsafe extern int crypto_aead_chacha20poly1305_ietf_decrypt(
     byte *m,
     out ulong mlen_p,
     byte *nsec,
     byte *c,
     ulong clen,
     byte *ad,
     ulong adlen,
     NSec.Cryptography.Nonce *npub,
     byte *k);
Esempio n. 5
0
 internal static unsafe extern int crypto_aead_aes256gcm_encrypt(
     byte *c,
     out ulong clen_p,
     byte *m,
     ulong mlen,
     byte *ad,
     ulong adlen,
     byte *nsec,
     NSec.Cryptography.Nonce *npub,
     byte *k);
 internal static unsafe extern int crypto_secretbox_open_easy(
     byte *m,
     byte *c,
     ulong clen,
     NSec.Cryptography.Nonce *n,
     byte *k);
Esempio n. 7
0
 internal static unsafe extern int crypto_stream_chacha20_ietf(
     byte *c,
     ulong clen,
     NSec.Cryptography.Nonce *n,
     byte *k);
Esempio n. 8
0
 internal static unsafe extern int crypto_secretbox_easy(
     byte *c,
     byte *m,
     ulong mlen,
     NSec.Cryptography.Nonce *n,
     SecureMemoryHandle k);
Esempio n. 9
0
 internal static unsafe extern int crypto_stream_chacha20_ietf_xor(
     byte *c,
     byte *m,
     ulong mlen,
     NSec.Cryptography.Nonce *n,
     SecureMemoryHandle k);