/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | ccm.c | 206 size_t use_len; in ccm_auth_crypt() local 214 use_len = len_left < 16 - 2 ? len_left : 16 - 2; in ccm_auth_crypt() 215 memcpy( b + 2, src, use_len ); in ccm_auth_crypt() 216 len_left -= use_len; in ccm_auth_crypt() 217 src += use_len; in ccm_auth_crypt() 223 use_len = len_left > 16 ? 16 : len_left; in ccm_auth_crypt() 226 memcpy( b, src, use_len ); in ccm_auth_crypt() 229 len_left -= use_len; in ccm_auth_crypt() 230 src += use_len; in ccm_auth_crypt() 261 size_t use_len = len_left > 16 ? 16 : len_left; in ccm_auth_crypt() local [all …]
|
D | pem.c | 91 size_t use_len; in pem_pbkdf1() local 123 use_len = 16; in pem_pbkdf1() 125 use_len = keylen - 16; in pem_pbkdf1() 127 memcpy( key + 16, md5sum, use_len ); in pem_pbkdf1() 208 size_t pwdlen, size_t *use_len ) in mbedtls_pem_read_buffer() argument 248 *use_len = end - data; in mbedtls_pem_read_buffer() 402 size_t len = 0, use_len, add_len = 0; in mbedtls_pem_write_buffer() local 404 mbedtls_base64_encode( NULL, 0, &use_len, der_data, der_len ); in mbedtls_pem_write_buffer() 405 add_len = strlen( header ) + strlen( footer ) + ( use_len / 64 ) + 1; in mbedtls_pem_write_buffer() 407 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer() [all …]
|
D | pkcs12.c | 237 size_t use_len; in pkcs12_fill_buffer() local 241 use_len = ( data_len > fill_len ) ? fill_len : data_len; in pkcs12_fill_buffer() 242 memcpy( p, filler, use_len ); in pkcs12_fill_buffer() 243 p += use_len; in pkcs12_fill_buffer() 244 data_len -= use_len; in pkcs12_fill_buffer() 262 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local 317 use_len = ( datalen > hlen ) ? hlen : datalen; in mbedtls_pkcs12_derivation() 318 memcpy( p, hash_output, use_len ); in mbedtls_pkcs12_derivation() 319 datalen -= use_len; in mbedtls_pkcs12_derivation() 320 p += use_len; in mbedtls_pkcs12_derivation()
|
D | entropy_poll.c | 250 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll() local 258 if( len < use_len ) in mbedtls_nv_seed_poll() 259 use_len = len; in mbedtls_nv_seed_poll() 261 memcpy( output, buf, use_len ); in mbedtls_nv_seed_poll() 262 *olen = use_len; in mbedtls_nv_seed_poll()
|
D | ctr_drbg.c | 153 size_t buf_len, use_len; in block_cipher_df() local 192 use_len = buf_len; in block_cipher_df() 194 while( use_len > 0 ) in block_cipher_df() 199 use_len -= ( use_len >= MBEDTLS_CTR_DRBG_BLOCKSIZE ) ? in block_cipher_df() 200 MBEDTLS_CTR_DRBG_BLOCKSIZE : use_len; in block_cipher_df() 342 size_t use_len; in mbedtls_ctr_drbg_random_with_add() local 381 use_len = ( output_len > MBEDTLS_CTR_DRBG_BLOCKSIZE ) ? MBEDTLS_CTR_DRBG_BLOCKSIZE : in mbedtls_ctr_drbg_random_with_add() 386 memcpy( p, tmp, use_len ); in mbedtls_ctr_drbg_random_with_add() 387 p += use_len; in mbedtls_ctr_drbg_random_with_add() 388 output_len -= use_len; in mbedtls_ctr_drbg_random_with_add()
|
D | havege.c | 220 size_t use_len; in mbedtls_havege_random() local 226 use_len = len; in mbedtls_havege_random() 227 if( use_len > sizeof(int) ) in mbedtls_havege_random() 228 use_len = sizeof(int); in mbedtls_havege_random() 236 memcpy( p, &val, use_len ); in mbedtls_havege_random() 238 len -= use_len; in mbedtls_havege_random() 239 p += use_len; in mbedtls_havege_random()
|
D | gcm.c | 277 size_t use_len, olen = 0; in mbedtls_gcm_starts() local 306 use_len = ( iv_len < 16 ) ? iv_len : 16; in mbedtls_gcm_starts() 308 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_starts() 313 iv_len -= use_len; in mbedtls_gcm_starts() 314 p += use_len; in mbedtls_gcm_starts() 333 use_len = ( add_len < 16 ) ? add_len : 16; in mbedtls_gcm_starts() 335 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_starts() 340 add_len -= use_len; in mbedtls_gcm_starts() 341 p += use_len; in mbedtls_gcm_starts() 357 size_t use_len, olen = 0; in mbedtls_gcm_update() local [all …]
|
D | pkcs5.c | 227 size_t use_len; in mbedtls_pkcs5_pbkdf2_hmac() local 274 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac() 275 memcpy( out_p, work, use_len ); in mbedtls_pkcs5_pbkdf2_hmac() 277 key_length -= (uint32_t) use_len; in mbedtls_pkcs5_pbkdf2_hmac() 278 out_p += use_len; in mbedtls_pkcs5_pbkdf2_hmac()
|
D | entropy.c | 173 size_t use_len = len; in entropy_update() local 176 if( use_len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in entropy_update() 184 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update() 188 header[1] = use_len & 0xFF; in entropy_update() 192 mbedtls_sha512_update( &ctx->accumulator, p, use_len ); in entropy_update() 195 mbedtls_sha256_update( &ctx->accumulator, p, use_len ); in entropy_update()
|
D | hmac_drbg.c | 285 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add() local 291 memcpy( out, ctx->V, use_len ); in mbedtls_hmac_drbg_random_with_add() 292 out += use_len; in mbedtls_hmac_drbg_random_with_add() 293 left -= use_len; in mbedtls_hmac_drbg_random_with_add()
|
D | x509_crl.c | 494 size_t use_len; in mbedtls_x509_crl_parse() local 513 buf, NULL, 0, &use_len ); in mbedtls_x509_crl_parse() 522 buflen -= use_len; in mbedtls_x509_crl_parse() 523 buf += use_len; in mbedtls_x509_crl_parse()
|
D | x509_csr.c | 270 size_t use_len; in mbedtls_x509_csr_parse() local 290 buf, NULL, 0, &use_len ); in mbedtls_x509_csr_parse()
|
D | ecjpake.c | 944 size_t use_len = len > 4 ? 4 : len; in ecjpake_lgc() local 946 memcpy( out, &x, use_len ); in ecjpake_lgc() 947 out += use_len; in ecjpake_lgc() 948 len -= use_len; in ecjpake_lgc()
|
D | rsa.c | 471 size_t i, use_len; in mgf_mask() local 483 use_len = hlen; in mgf_mask() 485 use_len = dlen; in mgf_mask() 492 for( i = 0; i < use_len; ++i ) in mgf_mask() 497 dlen -= use_len; in mgf_mask()
|
D | x509_crt.c | 1009 size_t use_len; in mbedtls_x509_crt_parse() local 1016 buf, NULL, 0, &use_len ); in mbedtls_x509_crt_parse() 1023 buflen -= use_len; in mbedtls_x509_crt_parse() 1024 buf += use_len; in mbedtls_x509_crt_parse() 1037 buflen -= use_len; in mbedtls_x509_crt_parse() 1038 buf += use_len; in mbedtls_x509_crt_parse()
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | helpers.function | 319 size_t use_len; 324 use_len = len; 326 use_len = info->length; 328 if( use_len ) 330 memcpy( output, info->buf, use_len ); 331 info->buf += use_len; 332 info->length -= use_len; 335 if( len - use_len > 0 ) 336 return( rnd_std_rand( NULL, output + use_len, len - use_len ) ); 375 size_t use_len = ( len > 4 ) ? 4 : len; [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | pem.h | 93 size_t pwdlen, size_t *use_len );
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/test/ |
D | benchmark.c | 194 size_t use_len; in myrand() local 202 use_len = len; in myrand() 203 if( use_len > sizeof(int) ) in myrand() 204 use_len = sizeof(int); in myrand() 207 memcpy( output, &rnd, use_len ); in myrand() 208 output += use_len; in myrand() 209 len -= use_len; in myrand()
|
/net-tools-3.6.0/mbedtls-2.4.0/yotta/data/example-benchmark/ |
D | main.cpp | 296 size_t use_len; in myrand() local 304 use_len = len; in myrand() 305 if( use_len > sizeof(int) ) in myrand() 306 use_len = sizeof(int); in myrand() 309 memcpy( output, &rnd, use_len ); in myrand() 310 output += use_len; in myrand() 311 len -= use_len; in myrand()
|