| /src/crypto/openssl/crypto/evp/ |
| H A D | bio_b64.c | 36 int tmp_len; /* used to find the start when decoding */ member 135 ctx->tmp_len = 0; in b64_read() 170 i = BIO_read(next, &(ctx->tmp[ctx->tmp_len]), in b64_read() 171 B64_BLOCK_SIZE - ctx->tmp_len); in b64_read() 179 if (ctx->tmp_len == 0) { in b64_read() 186 if (ctx->tmp_len == 0) in b64_read() 194 i += ctx->tmp_len; in b64_read() 195 ctx->tmp_len = i; in b64_read() 202 ctx->tmp_len = 0; in b64_read() 247 ctx->tmp_len = 0; in b64_read() [all …]
|
| /src/crypto/heimdal/lib/wind/ |
| H A D | normalize.c | 196 canonical_reorder(uint32_t *tmp, size_t tmp_len) in canonical_reorder() argument 200 for (i = 0; i < tmp_len; ++i) { in canonical_reorder() 205 j < tmp_len && _wind_combining_class(tmp[j]); in canonical_reorder() 300 size_t tmp_len; in _wind_stringprep_normalize() local 309 tmp_len = in_len * 4; in _wind_stringprep_normalize() 310 if (tmp_len < MAX_LENGTH_CANON) in _wind_stringprep_normalize() 311 tmp_len = MAX_LENGTH_CANON; in _wind_stringprep_normalize() 312 tmp = malloc(tmp_len * sizeof(uint32_t)); in _wind_stringprep_normalize() 316 ret = compat_decomp(in, in_len, tmp, &tmp_len); in _wind_stringprep_normalize() 321 canonical_reorder(tmp, tmp_len); in _wind_stringprep_normalize() [all …]
|
| H A D | stringprep.c | 60 size_t tmp_len = in_len * 3; in wind_stringprep() local 70 tmp = malloc(tmp_len * sizeof(uint32_t)); in wind_stringprep() 74 ret = _wind_stringprep_map(in, in_len, tmp, &tmp_len, flags); in wind_stringprep() 81 ret = _wind_stringprep_normalize(tmp, tmp_len, tmp, &olen); in wind_stringprep()
|
| /src/crypto/openssl/crypto/slh_dsa/ |
| H A D | slh_wots.c | 104 size_t tmp_len = n; in slh_wots_chain() local 109 if (!WPACKET_allocate_bytes(wpkt, tmp_len, &tmp)) in slh_wots_chain() 113 if (!F(ctx, pk_seed, adrs, in, n, tmp, tmp_len)) in slh_wots_chain() 119 if (!F(ctx, pk_seed, adrs, tmp, n, tmp, tmp_len)) in slh_wots_chain() 149 size_t tmp_len = 0; in ossl_slh_wots_pk_gen() local 174 if (!WPACKET_get_total_written(tmp_wpkt, &tmp_len)) /* should be n * (2 * n + 3) */ in ossl_slh_wots_pk_gen() 179 ret = hashf->T(ctx, pk_seed, wots_pk_adrs, tmp, tmp_len, pk_out, pk_out_len); in ossl_slh_wots_pk_gen() 281 size_t tmp_len = 0; in ossl_slh_wots_pk_from_sig() local 307 if (!WPACKET_get_total_written(tmp_pkt, &tmp_len)) in ossl_slh_wots_pk_from_sig() 309 ret = hashf->T(ctx, pk_seed, wots_pk_adrs, tmp, tmp_len, in ossl_slh_wots_pk_from_sig()
|
| H A D | slh_dsa.c | 233 uint8_t *tmp, size_t tmp_len, size_t *out_len) in msg_encode() argument 249 if (encoded_len <= tmp_len) { in msg_encode()
|
| /src/crypto/openssl/ssl/ |
| H A D | tls_srp.c | 304 int ret = 0, tmp_len = 0; in srp_generate_server_master_secret() local 319 tmp_len = BN_num_bytes(K); in srp_generate_server_master_secret() 320 if ((tmp = OPENSSL_malloc(tmp_len)) == NULL) { in srp_generate_server_master_secret() 326 ret = ssl_generate_master_secret(s, tmp, tmp_len, 1); in srp_generate_server_master_secret() 337 int ret = 0, tmp_len = 0; in srp_generate_client_master_secret() local 372 tmp_len = BN_num_bytes(K); in srp_generate_client_master_secret() 373 if ((tmp = OPENSSL_malloc(tmp_len)) == NULL) { in srp_generate_client_master_secret() 379 ret = ssl_generate_master_secret(s, tmp, tmp_len, 1); in srp_generate_client_master_secret()
|
| /src/crypto/openssl/crypto/ec/ |
| H A D | ec_mult.c | 549 size_t tmp_len = 0; in ossl_ec_wNAF_mul() local 560 tmp_wNAF = bn_compute_wNAF(scalar, wsize[num], &tmp_len); in ossl_ec_wNAF_mul() 564 if (tmp_len <= max_len) { in ossl_ec_wNAF_mul() 575 wNAF_len[num] = tmp_len; in ossl_ec_wNAF_mul() 589 if (tmp_len < numblocks * blocksize) { in ossl_ec_wNAF_mul() 593 numblocks = (tmp_len + blocksize - 1) / blocksize; in ossl_ec_wNAF_mul() 609 if (tmp_len < blocksize) { in ossl_ec_wNAF_mul() 614 tmp_len -= blocksize; in ossl_ec_wNAF_mul() 620 wNAF_len[i] = tmp_len; in ossl_ec_wNAF_mul()
|
| /src/crypto/krb5/src/lib/crypto/openssl/enc_provider/ |
| H A D | rc4.c | 67 int ret = 1, tmp_len = 0; in k5_arcfour_docrypt() local 99 (unsigned char *) iov->data.data, &tmp_len, in k5_arcfour_docrypt()
|
| /src/contrib/wpa/src/utils/ |
| H A D | json.c | 619 size_t tmp_len = 6 * len + 1; in json_add_string_escape() local 621 tmp = os_malloc(tmp_len); in json_add_string_escape() 624 json_escape_string(tmp, tmp_len, val, len); in json_add_string_escape() 626 bin_clear_free(tmp, tmp_len); in json_add_string_escape()
|
| /src/crypto/openssl/providers/implementations/macs/ |
| H A D | kmac_prov.c | 648 size_t tmp_len; in kmac_bytepad_encode_key() local 650 if (!encode_string(tmp, sizeof(tmp), &tmp_len, in, in_len)) in kmac_bytepad_encode_key() 652 if (!bytepad(NULL, out_len, tmp, tmp_len, NULL, 0, w)) in kmac_bytepad_encode_key() 656 return bytepad(out, NULL, tmp, tmp_len, NULL, 0, w); in kmac_bytepad_encode_key()
|
| /src/crypto/openssl/crypto/ml_dsa/ |
| H A D | ml_dsa_sign.c | 328 uint8_t *tmp, size_t tmp_len, size_t *out_len) in msg_encode() argument 344 if (encoded_len <= tmp_len) { in msg_encode()
|
| /src/sys/contrib/dev/rtw88/ |
| H A D | debug.c | 233 int tmp_len; in rtw_debugfs_copy_from_user() local 240 tmp_len = (count > size - 1 ? size - 1 : count); in rtw_debugfs_copy_from_user() 242 if (copy_from_user(tmp, buffer, tmp_len)) in rtw_debugfs_copy_from_user() 245 tmp[tmp_len] = '\0'; in rtw_debugfs_copy_from_user()
|
| /src/crypto/heimdal/ |
| H A D | ltmain.sh | 4625 int tmp_len; 4684 tmp_len = strlen (tmp); 4686 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 4687 memcpy (concat_name, tmp, tmp_len); 4688 concat_name[tmp_len] = '/'; 4689 strcpy (concat_name + tmp_len + 1, wrapper); 4710 tmp_len = strlen (tmp); 4711 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 4712 memcpy (concat_name, tmp, tmp_len); 4713 concat_name[tmp_len] = '/'; [all …]
|
| /src/crypto/heimdal/lib/hdb/ |
| H A D | mkey.c | 579 unsigned int tmp_len; in hdb_unseal_keys_kvno() local 589 tmp_len = ent->keys.len; in hdb_unseal_keys_kvno()
|
| /src/contrib/wpa/wpa_supplicant/ |
| H A D | config_file.c | 1646 int tmp_len; in wpa_config_write() local 1654 tmp_len = os_strlen(name) + 5; /* allow space for .tmp suffix */ in wpa_config_write() 1655 tmp_name = os_malloc(tmp_len); in wpa_config_write() 1657 os_snprintf(tmp_name, tmp_len, "%s.tmp", name); in wpa_config_write()
|
| /src/contrib/libevent/build-aux/ |
| H A D | ltmain.sh | 6224 size_t tmp_len; 6283 tmp_len = strlen (tmp); 6285 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6286 memcpy (concat_name, tmp, tmp_len); 6287 concat_name[tmp_len] = '/'; 6288 strcpy (concat_name + tmp_len + 1, wrapper); 6309 tmp_len = strlen (tmp); 6310 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6311 memcpy (concat_name, tmp, tmp_len); 6312 concat_name[tmp_len] = '/'; [all …]
|
| /src/contrib/openbsm/config/ |
| H A D | ltmain.sh | 6009 size_t tmp_len; 6068 tmp_len = strlen (tmp); 6070 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6071 memcpy (concat_name, tmp, tmp_len); 6072 concat_name[tmp_len] = '/'; 6073 strcpy (concat_name + tmp_len + 1, wrapper); 6094 tmp_len = strlen (tmp); 6095 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6096 memcpy (concat_name, tmp, tmp_len); 6097 concat_name[tmp_len] = '/'; [all …]
|
| /src/contrib/ntp/sntp/libevent/ |
| H A D | ltmain.sh | 6009 size_t tmp_len; 6068 tmp_len = strlen (tmp); 6070 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6071 memcpy (concat_name, tmp, tmp_len); 6072 concat_name[tmp_len] = '/'; 6073 strcpy (concat_name + tmp_len + 1, wrapper); 6094 tmp_len = strlen (tmp); 6095 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6096 memcpy (concat_name, tmp, tmp_len); 6097 concat_name[tmp_len] = '/'; [all …]
|
| /src/contrib/file/ |
| H A D | ltmain.sh | 6269 size_t tmp_len; 6328 tmp_len = strlen (tmp); 6330 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6331 memcpy (concat_name, tmp, tmp_len); 6332 concat_name[tmp_len] = '/'; 6333 strcpy (concat_name + tmp_len + 1, wrapper); 6354 tmp_len = strlen (tmp); 6355 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6356 memcpy (concat_name, tmp, tmp_len); 6357 concat_name[tmp_len] = '/'; [all …]
|
| /src/contrib/ntp/sntp/libevent/build-aux/ |
| H A D | ltmain.sh | 6009 size_t tmp_len; 6068 tmp_len = strlen (tmp); 6070 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6071 memcpy (concat_name, tmp, tmp_len); 6072 concat_name[tmp_len] = '/'; 6073 strcpy (concat_name + tmp_len + 1, wrapper); 6094 tmp_len = strlen (tmp); 6095 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6096 memcpy (concat_name, tmp, tmp_len); 6097 concat_name[tmp_len] = '/'; [all …]
|
| /src/contrib/openpam/ |
| H A D | ltmain.sh | 6414 size_t tmp_len; 6473 tmp_len = strlen (tmp); 6475 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6476 memcpy (concat_name, tmp, tmp_len); 6477 concat_name[tmp_len] = '/'; 6478 strcpy (concat_name + tmp_len + 1, wrapper); 6499 tmp_len = strlen (tmp); 6500 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6501 memcpy (concat_name, tmp, tmp_len); 6502 concat_name[tmp_len] = '/'; [all …]
|
| /src/contrib/ldns/ |
| H A D | ltmain.sh | 6101 size_t tmp_len; 6160 tmp_len = strlen (tmp); 6162 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6163 memcpy (concat_name, tmp, tmp_len); 6164 concat_name[tmp_len] = '/'; 6165 strcpy (concat_name + tmp_len + 1, wrapper); 6186 tmp_len = strlen (tmp); 6187 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6188 memcpy (concat_name, tmp, tmp_len); 6189 concat_name[tmp_len] = '/'; [all …]
|
| /src/contrib/unbound/ |
| H A D | ltmain.sh | 6407 size_t tmp_len; 6466 tmp_len = strlen (tmp); 6468 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6469 memcpy (concat_name, tmp, tmp_len); 6470 concat_name[tmp_len] = '/'; 6471 strcpy (concat_name + tmp_len + 1, wrapper); 6492 tmp_len = strlen (tmp); 6493 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); 6494 memcpy (concat_name, tmp, tmp_len); 6495 concat_name[tmp_len] = '/'; [all …]
|
| /src/sys/cam/ctl/ |
| H A D | ctl.c | 7759 int tmp_len, header_only; in ctl_persistent_reserve_in() local 7767 tmp_len = sizeof(struct scsi_per_res_in_rsrv); in ctl_persistent_reserve_in() 7772 tmp_len = sizeof(struct scsi_per_res_in_header); in ctl_persistent_reserve_in() 7784 if (tmp_len != total_len) { in ctl_persistent_reserve_in()
|