Lines Matching refs:ad
52 size_t plaintext_len, const uint8_t *ad,
63 size_t plaintext_len, const uint8_t *ad,
73 size_t plaintext_len, const uint8_t *ad, in chacha20_poly1305_open() argument
78 size_t plaintext_len, const uint8_t *ad, in chacha20_poly1305_seal() argument
142 const uint8_t nonce[12], const uint8_t *ad, size_t ad_len, in calc_tag() argument
151 poly1305_update_padded_16(&ctx, ad, ad_len); in calc_tag()
162 const uint8_t *ad, size_t ad_len) { in aead_chacha20_poly1305_seal() argument
198 chacha20_poly1305_seal(out, in, in_len, ad, ad_len, tag); in aead_chacha20_poly1305_seal()
201 calc_tag(tag, c20_ctx, nonce, ad, ad_len, out, in_len); in aead_chacha20_poly1305_seal()
213 const uint8_t *ad, size_t ad_len) { in aead_chacha20_poly1305_open() argument
246 chacha20_poly1305_open(out, in, plaintext_len, ad, ad_len, tag); in aead_chacha20_poly1305_open()
248 calc_tag(tag, c20_ctx, nonce, ad, ad_len, in, plaintext_len); in aead_chacha20_poly1305_open()