Beispiel #1
0
 public static int crypto_aead_chacha20poly1305_encrypt_detached(
     byte *c,
     byte *mac,
     // ReSharper disable once InconsistentNaming
     ulong *maclen_p,
     byte *m,
     ulong mlen,
     byte *ad,
     ulong adlen,
     byte *nsec,
     byte *npub,
     byte *k)
 {
     return(_is32bits ?
            X86.crypto_aead_chacha20poly1305_encrypt_detached(
                c, mac, maclen_p, m, mlen, ad, adlen, nsec, npub, k) :
            X64.crypto_aead_chacha20poly1305_encrypt_detached(
                c, mac, maclen_p, m, mlen, ad, adlen, nsec, npub, k));
 }