Lines Matching refs:tag_len
31 unsigned char tag_len;
35 size_t key_len, size_t tag_len) {
38 if (tag_len == 0) {
39 tag_len = POLY1305_TAG_LEN;
42 if (tag_len > POLY1305_TAG_LEN) {
57 c20_ctx->tag_len = tag_len;
112 if (in_len + c20_ctx->tag_len < in_len) {
117 if (max_out_len < in_len + c20_ctx->tag_len) {
137 if (c20_ctx->tag_len != POLY1305_TAG_LEN) {
140 memcpy(out + in_len, tag, c20_ctx->tag_len);
141 *out_len = in_len + c20_ctx->tag_len;
146 *out_len = in_len + c20_ctx->tag_len;
162 if (in_len < c20_ctx->tag_len) {
184 plaintext_len = in_len - c20_ctx->tag_len;
201 if (CRYPTO_memcmp(mac, in + plaintext_len, c20_ctx->tag_len) != 0) {