Exemple #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);
 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);
Exemple #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);
Exemple #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);
Exemple #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);
Exemple #7
0
 internal static unsafe extern int crypto_stream_chacha20_ietf(
     byte *c,
     ulong clen,
     NSec.Cryptography.Nonce *n,
     byte *k);
Exemple #8
0
 internal static unsafe extern int crypto_secretbox_easy(
     byte *c,
     byte *m,
     ulong mlen,
     NSec.Cryptography.Nonce *n,
     SecureMemoryHandle k);
Exemple #9
0
 internal static unsafe extern int crypto_stream_chacha20_ietf_xor(
     byte *c,
     byte *m,
     ulong mlen,
     NSec.Cryptography.Nonce *n,
     SecureMemoryHandle k);