Home
last modified time | relevance | path

Searched refs:tmp_len (Results 1 – 21 of 21) sorted by relevance

/freebsd/crypto/openssl/crypto/evp/
H A Dbio_b64.c36 int tmp_len; /* used to find the start when decoding */ member
129 ctx->tmp_len = 0; in b64_read()
161 i = BIO_read(next, &(ctx->tmp[ctx->tmp_len]), in b64_read()
162 B64_BLOCK_SIZE - ctx->tmp_len); in b64_read()
171 if (ctx->tmp_len == 0) in b64_read()
181 i += ctx->tmp_len; in b64_read()
182 ctx->tmp_len = i; in b64_read()
190 ctx->tmp_len = 0; in b64_read()
239 ctx->tmp_len = 0; in b64_read()
245 ctx->tmp_len = n; in b64_read()
[all …]
/freebsd/crypto/heimdal/lib/wind/
H A Dnormalize.c196 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 Dstringprep.c60 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()
/freebsd/crypto/openssl/ssl/
H A Dtls_srp.c304 int ret = 0, tmp_len = 0; in srp_generate_server_master_secret() local
316 tmp_len = BN_num_bytes(K); in srp_generate_server_master_secret()
317 if ((tmp = OPENSSL_malloc(tmp_len)) == NULL) { in srp_generate_server_master_secret()
323 ret = ssl_generate_master_secret(s, tmp, tmp_len, 1); in srp_generate_server_master_secret()
334 int ret = 0, tmp_len = 0; in srp_generate_client_master_secret() local
366 tmp_len = BN_num_bytes(K); in srp_generate_client_master_secret()
367 if ((tmp = OPENSSL_malloc(tmp_len)) == NULL) { in srp_generate_client_master_secret()
373 ret = ssl_generate_master_secret(s, tmp, tmp_len, 1); in srp_generate_client_master_secret()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_mult.c560 size_t tmp_len = 0; in ossl_ec_wNAF_mul() local
571 tmp_wNAF = bn_compute_wNAF(scalar, wsize[num], &tmp_len); in ossl_ec_wNAF_mul()
575 if (tmp_len <= max_len) { in ossl_ec_wNAF_mul()
586 wNAF_len[num] = tmp_len; in ossl_ec_wNAF_mul()
600 if (tmp_len < numblocks * blocksize) { in ossl_ec_wNAF_mul()
604 numblocks = (tmp_len + blocksize - 1) / blocksize; in ossl_ec_wNAF_mul()
620 if (tmp_len < blocksize) { in ossl_ec_wNAF_mul()
625 tmp_len -= blocksize; in ossl_ec_wNAF_mul()
631 wNAF_len[i] = tmp_len; in ossl_ec_wNAF_mul()
/freebsd/crypto/openssl/providers/implementations/macs/
H A Dkmac_prov.c586 size_t tmp_len; in kmac_bytepad_encode_key() local
588 if (!encode_string(tmp, sizeof(tmp), &tmp_len, in, in_len)) in kmac_bytepad_encode_key()
590 if (!bytepad(NULL, out_len, tmp, tmp_len, NULL, 0, w)) in kmac_bytepad_encode_key()
594 return bytepad(out, NULL, tmp, tmp_len, NULL, 0, w); in kmac_bytepad_encode_key()
/freebsd/contrib/wpa/src/utils/
H A Djson.c619 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()
/freebsd/sys/contrib/dev/rtw88/
H A Ddebug.c177 int tmp_len; in rtw_debugfs_copy_from_user() local
184 tmp_len = (count > size - 1 ? size - 1 : count); in rtw_debugfs_copy_from_user()
186 if (copy_from_user(tmp, buffer, tmp_len)) in rtw_debugfs_copy_from_user()
189 tmp[tmp_len] = '\0'; in rtw_debugfs_copy_from_user()
/freebsd/crypto/openssl/util/
H A Dcheck-format-test-negatives.c90 ctx->tmp_len); in f()
/freebsd/crypto/heimdal/
H A Dltmain.sh4625 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 …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dconfig_file.c1646 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()
/freebsd/contrib/openbsm/config/
H A Dltmain.sh6009 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 …]
/freebsd/contrib/openpam/
H A Dltmain.sh6266 size_t tmp_len;
6325 tmp_len = strlen (tmp);
6327 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6328 memcpy (concat_name, tmp, tmp_len);
6329 concat_name[tmp_len] = '/';
6330 strcpy (concat_name + tmp_len + 1, wrapper);
6351 tmp_len = strlen (tmp);
6352 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6353 memcpy (concat_name, tmp, tmp_len);
6354 concat_name[tmp_len] = '/';
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dltmain.sh6009 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 …]
/freebsd/contrib/ntp/sntp/libevent/build-aux/
H A Dltmain.sh6009 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 …]
/freebsd/contrib/libevent/build-aux/
H A Dltmain.sh6224 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 …]
/freebsd/contrib/sqlite3/
H A Dltmain.sh6101 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 …]
/freebsd/contrib/ldns/
H A Dltmain.sh6101 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 …]
/freebsd/contrib/unbound/
H A Dltmain.sh6009 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 …]
/freebsd/contrib/file/
H A Dltmain.sh6269 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 …]
/freebsd/sys/cam/ctl/
H A Dctl.c7759 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()