| /freebsd/crypto/krb5/src/lib/krad/ |
| H A D | attr.c | 152 unsigned int seclen; in user_password_encode() local 165 seclen = strlen(secret); in user_password_encode() 166 retval = alloc_data(&tmp, seclen + BLOCKSIZE); in user_password_encode() 170 memcpy(tmp.data, secret, seclen); in user_password_encode() 172 memcpy(tmp.data + seclen, indx, BLOCKSIZE); in user_password_encode() 204 unsigned int seclen; in user_password_decode() local 215 seclen = strlen(secret); in user_password_decode() 216 retval = alloc_data(&tmp, seclen + BLOCKSIZE); in user_password_decode() 220 memcpy(tmp.data, secret, seclen); in user_password_decode() 222 memcpy(tmp.data + seclen, indx, BLOCKSIZE); in user_password_decode()
|
| /freebsd/crypto/openssl/providers/implementations/kdfs/ |
| H A D | tls1_prf.c | 105 size_t seclen; member 144 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_reset() 163 if (!ossl_prov_memdup(src->sec, src->seclen, &dest->sec, &dest->seclen)) in kdf_tls1_prf_dup() 234 int key_approved = ossl_kdf_check_key_size(ctx->seclen); in fips_key_check_passed() 279 ctx->sec, ctx->seclen, in kdf_tls1_prf_derive() 346 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_set_ctx_params() 348 if (!OSSL_PARAM_get_octet_string(p, (void **)&ctx->sec, 0, &ctx->seclen)) in kdf_tls1_prf_set_ctx_params()
|
| /freebsd/crypto/openssl/crypto/ec/ |
| H A D | ec_kmeth.c | 154 size_t seclen; in ECDH_compute_key() local 163 if (!eckey->meth->compute_key(&sec, &seclen, pub_key, eckey)) in ECDH_compute_key() 166 KDF(sec, seclen, out, &outlen); in ECDH_compute_key() 168 if (outlen > seclen) in ECDH_compute_key() 169 outlen = seclen; in ECDH_compute_key() 172 OPENSSL_clear_free(sec, seclen); in ECDH_compute_key()
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | authreadkeys.c | 93 u_short seclen; /* length of secret */ member 126 memset(node, 0, sizeof(*node) + node->seclen); in free_keydata() 287 next->seclen = len; in authreadkeys() 391 next->secbuf, next->seclen, next->keyacclist); in authreadkeys()
|
| /freebsd/crypto/openssl/test/ |
| H A D | evp_pkey_dhkem_test.c | 213 size_t seclen = sizeof(sec); in test_input_size_small() local 219 NULL, &seclen), in test_input_size_small() 225 if (!TEST_int_eq(EVP_PKEY_encapsulate(ctx, enc, &enclen, sec, &seclen), in test_input_size_small() 230 seclen--; in test_input_size_small() 231 if (!TEST_int_eq(EVP_PKEY_encapsulate(ctx, enc, &enclen, sec, &seclen), 0)) in test_input_size_small() 233 seclen++; in test_input_size_small() 237 seclen--; in test_input_size_small() 238 if (!TEST_int_eq(EVP_PKEY_decapsulate(ctx, sec, &seclen, enc, enclen), 0)) in test_input_size_small() 240 seclen++; in test_input_size_small() 243 ret = TEST_int_eq(EVP_PKEY_decapsulate(ctx, sec, &seclen, enc, enclen), 0); in test_input_size_small()
|
| /freebsd/usr.sbin/bluetooth/rtlbtfw/ |
| H A D | rtlbt_fw.c | 467 int seclen, len = 0, patch_len = 0; in rtlbt_parse_fwfile_v2() local 503 seclen = 0; in rtlbt_parse_fwfile_v2() 511 seclen = rtlbt_parse_section(&patch_list, opcode, in rtlbt_parse_fwfile_v2() 517 if (seclen < 0) { in rtlbt_parse_fwfile_v2() 522 len += seclen; in rtlbt_parse_fwfile_v2()
|
| /freebsd/crypto/openssl/crypto/crmf/ |
| H A D | crmf_pbm.c | 130 const unsigned char *sec, size_t seclen, in OSSL_CRMF_pbm_new() argument 170 if (!EVP_DigestUpdate(ctx, sec, seclen)) in OSSL_CRMF_pbm_new()
|
| /freebsd/contrib/bsnmp/snmpd/ |
| H A D | action.c | 934 size_t seclen; in op_modules() local 962 §ion, &seclen)) in op_modules() 966 if (seclen > LM_SECTION_MAX || seclen == 0) { in op_modules() 970 for (ptr = section; ptr < section + seclen; ptr++) in op_modules() 1019 strncpy(mdep->section, section, seclen); in op_modules() 1020 mdep->section[seclen] = '\0'; in op_modules()
|
| /freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | output.c | 601 char seclen = strlen(CTF_ELF_SCN_NAME); in write_file() local 604 seclen + 1); in write_file() 609 shdr.sh_size += seclen + 1; in write_file() 610 ddata->d_size += seclen + 1; in write_file()
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | OSSL_CRMF_pbmp_new.pod | 16 const unsigned char *sec, size_t seclen, 27 lengths I<msglen> and I<seclen>.
|
| H A D | EVP_PKEY_CTX_set_tls1_prf_md.pod | 15 unsigned char *sec, int seclen); 30 to B<seclen> bytes of the buffer B<sec>. Any existing secret value is replaced
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | kdf.h | 100 const unsigned char *sec, int seclen);
|
| H A D | crmf.h.in | 105 const unsigned char *sec, size_t seclen,
|
| H A D | crmf.h | 176 const unsigned char *sec, size_t seclen,
|
| /freebsd/contrib/elftoolchain/readelf/ |
| H A D | readelf.c | 4501 size_t len, seclen, nlen, sublen; in dump_attributes() local 4534 seclen = re->dw_decode(&p, 4); in dump_attributes() 4535 if (seclen > len) { in dump_attributes() 4539 len -= seclen; in dump_attributes() 4541 if (nlen + 4 > seclen) { in dump_attributes() 4547 seclen -= nlen + 4; in dump_attributes() 4548 while (seclen > 0) { in dump_attributes() 4552 if (sublen > seclen) { in dump_attributes() 4557 seclen -= sublen; in dump_attributes()
|
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | pmeth_lib.c | 1097 const unsigned char *sec, int seclen) in EVP_PKEY_CTX_set1_tls1_prf_secret() argument 1103 sec, seclen); in EVP_PKEY_CTX_set1_tls1_prf_secret()
|
| /freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
| H A D | dtrace.c | 14140 uint64_t len = dof->dofh_loadsz, seclen; local 14214 seclen = (uint64_t)dof->dofh_secnum * (uint64_t)dof->dofh_secsize; 14216 if (dof->dofh_secoff > len || seclen > len || 14217 dof->dofh_secoff + seclen > len) {
|