Home
last modified time | relevance | path

Searched refs:taglen (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/sys/dev/sfxge/common/
H A Defx_vpd.c480 uint16_t taglen; in efx_vpd_hunk_length() local
487 &tag, &taglen)) != 0) in efx_vpd_hunk_length()
489 offset += taglen; in efx_vpd_hunk_length()
515 uint16_t taglen; in efx_vpd_hunk_verify() local
529 &tag, &taglen)) != 0) in efx_vpd_hunk_verify()
536 for (pos = 0; pos != taglen; pos += 3 + keylen) { in efx_vpd_hunk_verify()
544 taglen, pos, &keyword, &keylen)) != 0) in efx_vpd_hunk_verify()
562 offset += taglen; in efx_vpd_hunk_verify()
668 uint16_t taglen; in efx_vpd_hunk_next() local
677 &tag, &taglen)) != 0) in efx_vpd_hunk_next()
[all …]
/freebsd/crypto/openssl/ssl/record/
H A Dssl3_record_tls13.c28 size_t taglen, offset, loop, hdrlen; in tls13_enc() local
97 taglen = EVP_CCM8_TLS_TAG_LEN; in tls13_enc()
99 taglen = EVP_CCM_TLS_TAG_LEN; in tls13_enc()
100 if (sending && EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, taglen, in tls13_enc()
106 taglen = EVP_GCM_TLS_TAG_LEN; in tls13_enc()
108 taglen = EVP_CHACHAPOLY_TLS_TAG_LEN; in tls13_enc()
119 if (rec->length < taglen + 1) in tls13_enc()
121 rec->length -= taglen; in tls13_enc()
148 taglen, in tls13_enc()
158 || !WPACKET_put_bytes_u16(&wpkt, rec->length + taglen) in tls13_enc()
[all …]
/freebsd/crypto/openssl/util/
H A Dcavs-to-evptest.pl25 my $taglen = 0;
55 $taglen = $2;
72 $ct = substr($2, 0, length($2) - ($taglen * 2));
73 $tag = substr($2, $taglen * -2);
85 $taglen = $2;
99 if ($taglen > 0) {
/freebsd/crypto/openssl/test/
H A Daesgcmtest.c97 int ctlen = 0, taglen = 0; in kat_test() local
99 return do_encrypt(NULL, ct, &ctlen, tag, &taglen) in kat_test()
101 && TEST_mem_eq(gcm_tag, sizeof(gcm_tag), tag, taglen) in kat_test()
102 && do_decrypt(gcm_iv, ct, ctlen, tag, taglen); in kat_test()
124 int ctlen = 0, taglen = 0; in ivgen_test() local
126 return do_encrypt(iv_gen, ct, &ctlen, tag, &taglen) in ivgen_test()
127 && do_decrypt(iv_gen, ct, ctlen, tag, taglen); in ivgen_test()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_ccm_hw.c33 unsigned char *tag, size_t taglen) in ossl_ccm_generic_auth_encrypt() argument
44 rv = (CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, taglen) > 0); in ossl_ccm_generic_auth_encrypt()
50 unsigned char *expected_tag, size_t taglen) in ossl_ccm_generic_auth_decrypt() argument
62 if (!CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, taglen) in ossl_ccm_generic_auth_decrypt()
63 || CRYPTO_memcmp(tag, expected_tag, taglen) != 0) in ossl_ccm_generic_auth_decrypt()
H A Dcipher_aes_ocb.c52 size_t ivlen, size_t taglen) in aes_generic_ocb_setiv() argument
54 return (CRYPTO_ocb128_setiv(&ctx->ocb, iv, ivlen, taglen) == 1); in aes_generic_ocb_setiv()
72 return (CRYPTO_ocb128_finish(&ctx->ocb, ctx->tag, ctx->taglen) == 0); in aes_generic_ocb_final()
224 ctx->taglen)) in update_iv()
292 if (!aes_generic_ocb_gettag(ctx, ctx->tag, ctx->taglen)) in aes_ocb_block_final()
296 if (ctx->taglen == 0) in aes_ocb_block_final()
318 ctx->taglen = OCB_DEFAULT_TAG_LEN; in aes_ocb_newctx()
376 ctx->taglen = p->data_size; in aes_ocb_set_ctx_params()
382 if (p->data_size != ctx->taglen) { in aes_ocb_set_ctx_params()
436 if (!OSSL_PARAM_set_size_t(p, ctx->taglen)) { in aes_ocb_get_ctx_params()
[all …]
H A Dciphercommon_gcm_hw.c43 ctx->taglen = GCM_TAG_MAX_SIZE; in ossl_gcm_cipher_final()
45 if (CRYPTO_gcm128_finish(&ctx->gcm, tag, ctx->taglen) != 0) in ossl_gcm_cipher_final()
62 ctx->taglen = GCM_TAG_MAX_SIZE; in ossl_gcm_one_shot()
H A Dciphercommon_gcm.c37 ctx->taglen = UNINITIALISED_SIZET; in ossl_gcm_initctx()
161 size_t taglen = (ctx->taglen != UNINITIALISED_SIZET) ? ctx->taglen : in ossl_gcm_get_ctx_params() local
164 if (!OSSL_PARAM_set_size_t(p, taglen)) { in ossl_gcm_get_ctx_params()
211 || ctx->taglen == UNINITIALISED_SIZET) { in ossl_gcm_get_ctx_params()
251 ctx->taglen = sz; in ossl_gcm_set_ctx_params()
436 if (!ctx->enc && ctx->taglen == UNINITIALISED_SIZET) in gcm_cipher_internal()
H A Dcipher_aes_siv.c40 ctx->taglen = SIV_LEN; in aes_siv_newctx()
170 || p->data_size != ctx->taglen in aes_siv_get_ctx_params()
171 || !OSSL_PARAM_set_octet_string(p, &sctx->tag.byte, ctx->taglen)) { in aes_siv_get_ctx_params()
177 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->taglen)) { in aes_siv_get_ctx_params()
H A Dcipher_aes_gcm_hw_s390x.inc103 ctx->taglen = GCM_TAG_MAX_SIZE;
104 memcpy(tag, kma->t.b, ctx->taglen);
107 rc = (CRYPTO_memcmp(tag, kma->t.b, ctx->taglen) == 0);
116 unsigned char *tag, size_t taglen)
129 memcpy(tag, kma->t.b, taglen);
132 rc = (CRYPTO_memcmp(tag, kma->t.b, taglen) == 0);
H A Dcipher_aes_ocb.h31 size_t taglen; member
/freebsd/crypto/openssl/providers/implementations/include/prov/
H A Dciphercommon_ccm.h60 unsigned char *tag, size_t taglen));
64 unsigned char *tag, size_t taglen));
66 unsigned char *tag, size_t taglen));
97 unsigned char *tag, size_t taglen);
100 unsigned char *expected_tag, size_t taglen);
H A Dciphercommon_gcm.h51 size_t taglen; member
94 unsigned char *tag, size_t taglen));
/freebsd/sys/netgraph/
H A Dng_tag.h64 #define NG_TAG_HOOKIN_SIZE(taglen) \ argument
65 (sizeof(struct ng_tag_hookin) + (taglen))
67 #define NG_TAG_HOOKOUT_SIZE(taglen) \ argument
68 (sizeof(struct ng_tag_hookout) + (taglen))
/freebsd/contrib/unbound/services/
H A Dlocalzone.h152 size_t taglen; member
269 uint8_t* taglist, size_t taglen, int ignoretags);
327 size_t taglen, uint8_t* tagactions, size_t tagactionssize,
486 size_t taglen, const uint8_t* taglist2, size_t taglen2,
/freebsd/contrib/less/
H A Dtags.c258 size_t taglen; in findctag() local
276 taglen = strlen(tag); in findctag()
286 if (strncmp(tag, tline, taglen) != 0 || !WHITESP(tline[taglen])) in findctag()
302 p = skipsp(tline+taglen); in findctag()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dcrypto_test.c604 size_t msglen, size_t taglen, in init_mech() argument
617 p->ulTagBits = taglen << 3; in init_mech()
628 p->ulMACSize = taglen; in init_mech()
633 p->ulDataSize = msglen + (decrypt ? taglen : 0); in init_mech()
712 const uint8_t *tag, size_t taglen, in decrypt_one() argument
724 memcpy(inbuf + ctlen, tag, taglen); in decrypt_one()
728 .cd_length = ctlen + taglen, in decrypt_one()
731 .iov_len = ctlen + taglen, in decrypt_one()
/freebsd/crypto/openssl/crypto/evp/
H A De_aria.c39 int taglen; member
266 gctx->taglen = -1; in aria_gcm_ctrl()
294 gctx->taglen = arg; in aria_gcm_ctrl()
299 || gctx->taglen < 0) in aria_gcm_ctrl()
486 if (gctx->taglen < 0) in aria_gcm_cipher()
490 gctx->taglen) != 0) in aria_gcm_cipher()
496 gctx->taglen = 16; in aria_gcm_cipher()
H A De_aes.c54 int taglen; member
115 int taglen; member
374 if (CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen) in aesni_ocb_init_key()
383 CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen); in aesni_ocb_init_key()
727 if (CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen) in aes_t4_ocb_init_key()
736 CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen); in aes_t4_ocb_init_key()
888 int taglen; member
1361 gctx->taglen = -1; in s390x_aes_gcm_ctrl()
1401 gctx->taglen = arg; in s390x_aes_gcm_ctrl()
1406 if (arg <= 0 || arg > 16 || !enc || gctx->taglen < 0) in s390x_aes_gcm_ctrl()
[all …]
/freebsd/contrib/unbound/respip/
H A Drespip.h41 size_t taglen; member
66 size_t taglen; member
/freebsd/sys/nfs/
H A Dbootp_subr.c171 int taglen; member
462 if (p != NULL && gctx->tmptag.taglen == 4) { in bootpc_received()
1277 if (tctx->taglen + len > TAG_MAXLEN) { in bootpc_tag_helper()
1283 memcpy(tctx->buf + tctx->taglen, in bootpc_tag_helper()
1285 tctx->taglen += len; in bootpc_tag_helper()
1302 tctx->taglen = 0; in bootpc_tag()
1323 tctx->buf[tctx->taglen] = '\0'; in bootpc_tag()
1369 if (gctx->tag.taglen != 4) in bootpc_decode_reply()
1371 gctx->tag.taglen); in bootpc_decode_reply()
1383 if (gctx->tag.taglen % 4) in bootpc_decode_reply()
[all …]
/freebsd/crypto/openssl/crypto/modes/
H A Docb128.c218 size_t len, size_t taglen) in CRYPTO_ocb128_setiv() argument
228 if ((len > 15) || (len < 1) || (taglen > 16) || (taglen < 1)) { in CRYPTO_ocb128_setiv()
236 nonce[0] = ((taglen * 8) % 128) << 1; in CRYPTO_ocb128_setiv()
/freebsd/crypto/openssl/ssl/
H A Dtls13_enc.c342 size_t ivlen, keylen, taglen; in derive_secret_key_and_iv() local
377 taglen = EVP_CCM8_TLS_TAG_LEN; in derive_secret_key_and_iv()
379 taglen = EVP_CCM_TLS_TAG_LEN; in derive_secret_key_and_iv()
382 taglen = 0; in derive_secret_key_and_iv()
393 || (taglen != 0 && EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_TAG, in derive_secret_key_and_iv()
394 taglen, NULL) <= 0) in derive_secret_key_and_iv()
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdsubs.c2173 int error = 0, taglen = -1; in nfsd_getminorvers() local
2177 taglen = fxdr_unsigned(int, *tl); in nfsd_getminorvers()
2178 if (taglen < 0 || taglen > NFSV4_OPAQUELIMIT) { in nfsd_getminorvers()
2182 if (taglen <= NFSV4_SMALLSTR) in nfsd_getminorvers()
2185 tagstr = malloc(taglen + 1, M_TEMP, M_WAITOK); in nfsd_getminorvers()
2186 error = nfsrv_mtostr(nd, tagstr, taglen); in nfsd_getminorvers()
2198 if (tagstr != NULL && taglen > NFSV4_SMALLSTR) in nfsd_getminorvers()
2200 taglen = -1; in nfsd_getminorvers()
2202 *taglenp = taglen; in nfsd_getminorvers()
H A Dnfs_nfsdkrpc.c414 int cacherep = RC_DOIT, isdgram, taglen = -1; in nfs_proc()
452 nfsd_getminorvers(nd, tag, &tagstr, &taglen, in nfs_proc()
474 nfsrvd_dorpc(nd, isdgram, tagstr, taglen, minorvers); in nfs_proc()
501 if (tagstr != NULL && taglen > NFSV4_SMALLSTR) in nfssvc_loss()
404 int cacherep = RC_DOIT, isdgram, taglen = -1; nfs_proc() local

12