Lines Matching defs:aad
365 compute_hash(const EVP_MD *md, const void *key, size_t key_len, const void *aad,
383 if (HMAC_Update(ctx, aad, aad_len) != 1) {
384 warnx("HMAC_Update (aad) failed: %s",
406 verify_hash(const EVP_MD *md, const void *key, size_t key_len, const void *aad,
412 if (!compute_hash(md, key, key_len, aad, aad_len, buffer, len, digest2,
424 const void *aad, size_t aad_len, const char *input, char *output,
444 if (aad != NULL) {
445 if (EVP_EncryptUpdate(ctx, NULL, &outl, (const u_char *)aad,
486 const void *aad, size_t aad_len, const char *input, char *output,
507 if (aad != NULL) {
508 if (EVP_DecryptUpdate(ctx, NULL, &outl, (const u_char *)aad,
797 struct tls_mac_data aad;
846 tls_mte_aad(en, payload_len, hdr, seqno, &aad);
847 debug_hexdump(tc, &aad, sizeof(aad), "aad");
849 &aad, sizeof(aad), buf, payload_len, buf + payload_len));
863 struct tls_aead_data aad;
877 tls_12_aead_aad(en, payload_len, hdr, seqno, &aad);
878 debug_hexdump(tc, &aad, sizeof(aad), "aad");
886 &aad, sizeof(aad), (const char *)src + hdr_len, dst, payload_len,
898 struct tls_aead_data_13 aad;
917 tls_13_aad(en, hdr, seqno, &aad);
918 debug_hexdump(tc, &aad, sizeof(aad), "aad");
929 &aad, sizeof(aad), (const char *)src + hdr_len, buf, payload_len,
993 struct tls_mac_data aad;
1028 tls_mte_aad(en, len, hdr, seqno, &aad);
1029 debug_hexdump(tc, &aad, sizeof(aad), "aad");
1032 &aad, sizeof(aad), src, len, buf + hdr_len + len, &digest_len));
1054 struct tls_aead_data aad;
1072 tls_12_aead_aad(en, len, hdr, seqno, &aad);
1073 debug_hexdump(tc, &aad, sizeof(aad), "aad");
1082 &aad, sizeof(aad), src, (char *)dst + hdr_len, len,
1095 struct tls_aead_data_13 aad;
1112 tls_13_aad(en, hdr, seqno, &aad);
1113 debug_hexdump(tc, &aad, sizeof(aad), "aad");
1128 &aad, sizeof(aad), buf, (char *)dst + hdr_len, len + 1 + padding,