Lines Matching full:aadlen
43 * En/decrypt with header key 'aadlen' bytes from 'src', storing result
46 * En/decrypt 'len' bytes at offset 'aadlen' from 'src' to 'dest'. Use
47 * POLY1305_TAGLEN bytes at offset 'len'+'aadlen' as the authentication
52 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt)
71 const u_char *tag = src + aadlen + len;
73 poly1305_auth(expected_tag, src, aadlen + len, poly_key);
81 if (aadlen) {
83 chacha_encrypt_bytes(&ctx->header_ctx, src, dest, aadlen);
88 chacha_encrypt_bytes(&ctx->main_ctx, src + aadlen,
89 dest + aadlen, len);
93 poly1305_auth(dest + aadlen + len, dest, aadlen + len,