Home
last modified time | relevance | path

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

/netbsd/src/crypto/external/bsd/openssl/dist/util/
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) {
/netbsd/src/crypto/external/bsd/openssl/dist/test/
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()
Devp_extra_test.c3753 size_t taglen; member
3859 size_t taglen = sizeof(tag); in test_evp_init_seq() local
3902 t->taglen, (void *)t->tag), 0)) { in test_evp_init_seq()
3916 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_evp_init_seq()
3920 if (!TEST_mem_eq(t->tag, t->taglen, tag, taglen)) { in test_evp_init_seq()
4200 size_t taglen = sizeof(tag); in test_gcm_reinit() local
4241 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_gcm_reinit()
4245 if (!TEST_mem_eq(t->tag1, taglen, tag, taglen)) { in test_gcm_reinit()
4275 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_gcm_reinit()
4279 if (!TEST_mem_eq(t->tag2, taglen, tag, taglen)) { in test_gcm_reinit()
/netbsd/src/external/bsd/less/dist/
Dtags.c260 int taglen; in findctag() local
278 taglen = (int) strlen(tag); in findctag()
288 if (strncmp(tag, tline, taglen) != 0 || !WHITESP(tline[taglen])) in findctag()
304 p = skipsp(tline+taglen); in findctag()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/evp/
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()
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 …]
/netbsd/src/sys/fs/nfs/common/
Dbootp_subr.c183 int taglen; member
574 if (p != NULL && gctx->tmptag.taglen == 4) { in bootpc_received()
1370 if (tctx->taglen + len > TAG_MAXLEN) { in bootpc_tag_helper()
1376 memcpy(tctx->buf + tctx->taglen, in bootpc_tag_helper()
1378 tctx->taglen += len; in bootpc_tag_helper()
1395 tctx->taglen = 0; in bootpc_tag()
1416 tctx->buf[tctx->taglen] = '\0'; in bootpc_tag()
1462 if (gctx->tag.taglen != 4) in bootpc_decode_reply()
1464 gctx->tag.taglen); in bootpc_decode_reply()
1476 if (gctx->tag.taglen % 4) in bootpc_decode_reply()
[all …]
/netbsd/src/sys/fs/nfs/server/
Dnfs_nfsdkrpc.c322 int cacherep = RC_DOIT, isdgram, taglen = -1; in nfs_proc() local
360 nfsd_getminorvers(nd, tag, &tagstr, &taglen, in nfs_proc()
382 nfsrvd_dorpc(nd, isdgram, tagstr, taglen, minorvers, td); in nfs_proc()
405 if (tagstr != NULL && taglen > NFSV4_SMALLSTR) in nfs_proc()
Dnfs_nfsdsubs.c2100 int error = 0, taglen = -1; in nfsd_getminorvers() local
2104 taglen = fxdr_unsigned(int, *tl); in nfsd_getminorvers()
2105 if (taglen < 0 || taglen > NFSV4_OPAQUELIMIT) { in nfsd_getminorvers()
2109 if (taglen <= NFSV4_SMALLSTR) in nfsd_getminorvers()
2112 tagstr = malloc(taglen + 1, M_TEMP, M_WAITOK); in nfsd_getminorvers()
2113 error = nfsrv_mtostr(nd, tagstr, taglen); in nfsd_getminorvers()
2123 if (tagstr != NULL && taglen > NFSV4_SMALLSTR) in nfsd_getminorvers()
2125 taglen = -1; in nfsd_getminorvers()
2127 *taglenp = taglen; in nfsd_getminorvers()
Dnfs_nfsdsocket.c368 u_char *tag, int taglen, u_int32_t minorvers, NFSPROC_T *p);
475 nfsrvd_dorpc(struct nfsrv_descript *nd, int isdgram, u_char *tag, int taglen, in nfsrvd_dorpc() argument
558 nfsrvd_compound(nd, isdgram, tag, taglen, minorvers, p); in nfsrvd_dorpc()
621 int taglen, u_int32_t minorvers, NFSPROC_T *p) in nfsrvd_compound() argument
735 if (taglen < 0) { in nfsrvd_compound()
740 (void) nfsm_strtom(nd, tag, taglen); in nfsrvd_compound()
1110 if (taglen == -1) { in nfsrvd_compound()
/netbsd/src/crypto/external/bsd/openssl/dist/ssl/
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()
Dt1_enc.c402 int taglen; in tls1_change_cipher_state() local
405 taglen = EVP_CCM8_TLS_TAG_LEN; in tls1_change_cipher_state()
407 taglen = EVP_CCM_TLS_TAG_LEN; in tls1_change_cipher_state()
410 || (EVP_CIPHER_CTX_ctrl(dd, EVP_CTRL_AEAD_SET_TAG, taglen, NULL) <= 0) in tls1_change_cipher_state()
/netbsd/src/external/bsd/openldap/dist/libraries/liblber/
Dencode.c379 ber_len_t taglen, headlen; in ber_start_seqorset() local
397 *SOS_TAG_END(header) = taglen = SOS_TAG_END(header) - headptr; in ber_start_seqorset()
398 headlen = taglen + SOS_LENLEN; in ber_start_seqorset()
409 ber->ber_sos_inner = dest + taglen - ber->ber_buf; in ber_start_seqorset()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/modes/
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()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/cms/
Dcms_env.c1193 ec->taglen = aenv->mac->length; in ossl_cms_AuthEnvelopedData_init_bio()
1267 int taglen, ok = 0; in ossl_cms_AuthEnvelopedData_final() local
1278 taglen = EVP_CIPHER_CTX_get_tag_length(ctx); in ossl_cms_AuthEnvelopedData_final()
1279 if (taglen <= 0 in ossl_cms_AuthEnvelopedData_final()
1280 || (tag = OPENSSL_malloc(taglen)) == NULL in ossl_cms_AuthEnvelopedData_final()
1281 || EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, in ossl_cms_AuthEnvelopedData_final()
1287 if (!ASN1_OCTET_STRING_set(cms->d.authEnvelopedData->mac, tag, taglen)) in ossl_cms_AuthEnvelopedData_final()
Dcms_enc.c108 if (ec->taglen > 0 in ossl_cms_EncryptedContent_init_bio()
110 ec->taglen, ec->tag) <= 0) { in ossl_cms_EncryptedContent_init_bio()
Dcms_local.h137 size_t taglen; member
/netbsd/src/common/lib/libprop/
Dprop_object.c613 size_t taglen; in _prop_object_internalize_find_tag() local
616 taglen = strlen(tag); in _prop_object_internalize_find_tag()
618 taglen = 0; in _prop_object_internalize_find_tag()
676 (taglen != ctx->poic_tagname_len || in _prop_object_internalize_find_tag()
677 memcmp(tag, ctx->poic_tagname, taglen) != 0)) in _prop_object_internalize_find_tag()
/netbsd/src/usr.sbin/sunlabel/
Dsunlabel.c156 int taglen; member
884 if (fields[0].taglen < 1) { in chvalue()
886 fields[i].taglen = strlen(fields[i].tag); in chvalue()
894 if (((int)n == fields[i].taglen) && !memcmp(str, fields[i].tag, n)) { in chvalue()
/netbsd/src/sys/fs/nfs/client/
Dnfs_clcomsubs.c61 int taglen; member
194 nfsv4_opmap[procnum].taglen); in nfscl_reqstart()
Dnfs_clstate.c3150 int numops, taglen = -1, error = 0, trunc; in nfscl_docb() local
3172 taglen = fxdr_unsigned(int, *tl); in nfscl_docb()
3173 if (taglen < 0) { in nfscl_docb()
3177 if (taglen <= NFSV4_SMALLSTR) in nfscl_docb()
3180 tagstr = malloc(taglen + 1, M_TEMP, M_WAITOK); in nfscl_docb()
3181 error = nfsrv_mtostr(nd, tagstr, taglen); in nfscl_docb()
3183 if (taglen > NFSV4_SMALLSTR) in nfscl_docb()
3185 taglen = -1; in nfscl_docb()
3188 (void) nfsm_strtom(nd, tag, taglen); in nfscl_docb()
3189 if (taglen > NFSV4_SMALLSTR) { in nfscl_docb()
[all …]
/netbsd/src/external/gpl3/binutils/dist/gold/
Dscript-c.h530 int taglen,
Dscript.cc2976 int taglen, in script_register_vers_node() argument
2983 tree->tag = std::string(tag, taglen); in script_register_vers_node()
/netbsd/src/external/cddl/osnet/dist/cmd/zfs/
Dzfs_main.c5656 size_t taglen = strlen(tag); in holds_callback() local
5657 if (taglen > cbp->cb_max_taglen) in holds_callback()
5658 cbp->cb_max_taglen = taglen; in holds_callback()