HomeSort by relevance Sort by last modified time
    Searched full:aadlen (Results 1 - 4 of 4) sorted by null

  /external/openssh/
cipher-chachapoly.c 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)
    [all...]
cipher.c 382 * Copy 'aadlen' bytes (without en/decryption) from 'src' to 'dest'.
385 * En/Decrypt 'len' bytes at offset 'aadlen' from 'src' to 'dest'.
386 * Use 'authlen' bytes at offset 'len'+'aadlen' as the authentication tag.
388 * Both 'aadlen' and 'authlen' can be set to 0.
392 const u_char *src, u_int len, u_int aadlen, u_int authlen)
396 len, aadlen, authlen, cc->encrypt);
400 if (aadlen)
401 memcpy(dest, src, aadlen);
402 aesctr_encrypt_bytes(&cc->ac_ctx, src + aadlen,
403 dest + aadlen, len)
    [all...]
cipher-chachapoly.h 35 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
packet.c 1059 u_int authlen = 0, aadlen = 0; local
1075 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0;
1110 len -= aadlen; /* packet length is not encrypted for EtM modes */
1144 DBG(debug("send: len %d (includes padlen %d, aadlen %d)",
1145 len, padlen, aadlen));
1540 u_int maclen, aadlen = 0, authlen = 0, block_size; local
    [all...]

Completed in 60 milliseconds