/reactos/dll/3rdparty/mbedtls/ |
H A D | pem.c | 112 size_t use_len; in pem_pbkdf1() local 151 use_len = 16; in pem_pbkdf1() 153 use_len = keylen - 16; in pem_pbkdf1() 297 *use_len = end - data; in mbedtls_pem_read_buffer() 474 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer() 476 *olen = use_len + add_len; in mbedtls_pem_write_buffer() 480 if( use_len != 0 && in mbedtls_pem_write_buffer() 484 if( ( ret = mbedtls_base64_encode( encode_buf, use_len, &use_len, der_data, in mbedtls_pem_write_buffer() 495 while( use_len ) in mbedtls_pem_write_buffer() 497 len = ( use_len > 64 ) ? 64 : use_len; in mbedtls_pem_write_buffer() [all …]
|
H A D | ccm.c | 248 size_t use_len; in ccm_auth_crypt() local 257 memcpy( b + 2, src, use_len ); in ccm_auth_crypt() 258 len_left -= use_len; in ccm_auth_crypt() 259 src += use_len; in ccm_auth_crypt() 268 memcpy( b, src, use_len ); in ccm_auth_crypt() 271 len_left -= use_len; in ccm_auth_crypt() 272 src += use_len; in ccm_auth_crypt() 308 memcpy( b, src, use_len ); in ccm_auth_crypt() 321 dst += use_len; in ccm_auth_crypt() 322 src += use_len; in ccm_auth_crypt() [all …]
|
H A D | pkcs12.c | 262 size_t use_len; in pkcs12_fill_buffer() local 266 use_len = ( data_len > fill_len ) ? fill_len : data_len; in pkcs12_fill_buffer() 267 memcpy( p, filler, use_len ); in pkcs12_fill_buffer() 268 p += use_len; in pkcs12_fill_buffer() 269 data_len -= use_len; in pkcs12_fill_buffer() 287 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local 342 use_len = ( datalen > hlen ) ? hlen : datalen; in mbedtls_pkcs12_derivation() 343 memcpy( p, hash_output, use_len ); in mbedtls_pkcs12_derivation() 344 datalen -= use_len; in mbedtls_pkcs12_derivation() 345 p += use_len; in mbedtls_pkcs12_derivation()
|
H A D | gcm.c | 311 size_t use_len, olen = 0; in mbedtls_gcm_starts() local 353 iv_len -= use_len; in mbedtls_gcm_starts() 354 p += use_len; in mbedtls_gcm_starts() 375 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_starts() 380 add_len -= use_len; in mbedtls_gcm_starts() 381 p += use_len; in mbedtls_gcm_starts() 397 size_t use_len, olen = 0; in mbedtls_gcm_update() local 431 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_update() 442 length -= use_len; in mbedtls_gcm_update() 443 p += use_len; in mbedtls_gcm_update() [all …]
|
H A D | ctr_drbg.c | 134 size_t buf_len, use_len; in block_cipher_df() local 176 use_len = buf_len; in block_cipher_df() 178 while( use_len > 0 ) in block_cipher_df() 183 use_len -= ( use_len >= MBEDTLS_CTR_DRBG_BLOCKSIZE ) ? in block_cipher_df() 184 MBEDTLS_CTR_DRBG_BLOCKSIZE : use_len; in block_cipher_df() 488 size_t use_len; in mbedtls_ctr_drbg_random_with_add() local 531 use_len = ( output_len > MBEDTLS_CTR_DRBG_BLOCKSIZE ) ? MBEDTLS_CTR_DRBG_BLOCKSIZE : in mbedtls_ctr_drbg_random_with_add() 536 memcpy( p, tmp, use_len ); in mbedtls_ctr_drbg_random_with_add() 537 p += use_len; in mbedtls_ctr_drbg_random_with_add() 538 output_len -= use_len; in mbedtls_ctr_drbg_random_with_add()
|
H A D | entropy_poll.c | 243 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll() local 251 if( len < use_len ) in mbedtls_nv_seed_poll() 252 use_len = len; in mbedtls_nv_seed_poll() 254 memcpy( output, buf, use_len ); in mbedtls_nv_seed_poll() 255 *olen = use_len; in mbedtls_nv_seed_poll()
|
H A D | havege.c | 253 size_t use_len; in mbedtls_havege_random() local 259 use_len = len; in mbedtls_havege_random() 260 if( use_len > sizeof(int) ) in mbedtls_havege_random() 261 use_len = sizeof(int); in mbedtls_havege_random() 269 memcpy( p, &val, use_len ); in mbedtls_havege_random() 271 len -= use_len; in mbedtls_havege_random() 272 p += use_len; in mbedtls_havege_random()
|
H A D | pkcs5.c | 255 size_t use_len; in mbedtls_pkcs5_pbkdf2_hmac() local 304 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac() 305 memcpy( out_p, work, use_len ); in mbedtls_pkcs5_pbkdf2_hmac() 307 key_length -= (uint32_t) use_len; in mbedtls_pkcs5_pbkdf2_hmac() 308 out_p += use_len; in mbedtls_pkcs5_pbkdf2_hmac()
|
H A D | entropy.c | 215 size_t use_len = len; in entropy_update() local 219 if( use_len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in entropy_update() 229 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update() 233 header[1] = use_len & 0xFF; in entropy_update() 248 ret = mbedtls_sha512_update_ret( &ctx->accumulator, p, use_len ); in entropy_update() 257 ret = mbedtls_sha256_update_ret( &ctx->accumulator, p, use_len ); in entropy_update()
|
H A D | hmac_drbg.c | 398 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add() local 408 memcpy( out, ctx->V, use_len ); in mbedtls_hmac_drbg_random_with_add() 409 out += use_len; in mbedtls_hmac_drbg_random_with_add() 410 left -= use_len; in mbedtls_hmac_drbg_random_with_add()
|
H A D | x509_csr.c | 291 size_t use_len; in mbedtls_x509_csr_parse() local 309 buf, NULL, 0, &use_len ); in mbedtls_x509_csr_parse() 315 buf, NULL, 0, &use_len ); in mbedtls_x509_csr_parse()
|
H A D | x509_crl.c | 568 size_t use_len; in mbedtls_x509_crl_parse() local 587 buf, NULL, 0, &use_len ); in mbedtls_x509_crl_parse() 596 buflen -= use_len; in mbedtls_x509_crl_parse() 597 buf += use_len; in mbedtls_x509_crl_parse()
|
H A D | ecjpake.c | 1010 size_t use_len = len > 4 ? 4 : len; in ecjpake_lgc() local 1012 memcpy( out, &x, use_len ); in ecjpake_lgc() 1013 out += use_len; in ecjpake_lgc() 1014 len -= use_len; in ecjpake_lgc()
|
H A D | x509_crt.c | 1209 size_t use_len; in mbedtls_x509_crt_parse() local 1216 buf, NULL, 0, &use_len ); in mbedtls_x509_crt_parse() 1223 buflen -= use_len; in mbedtls_x509_crt_parse() 1224 buf += use_len; in mbedtls_x509_crt_parse() 1237 buflen -= use_len; in mbedtls_x509_crt_parse() 1238 buf += use_len; in mbedtls_x509_crt_parse()
|
H A D | rsa.c | 1140 size_t i, use_len; in mgf_mask() local 1153 use_len = hlen; in mgf_mask() 1155 use_len = dlen; in mgf_mask() 1166 for( i = 0; i < use_len; ++i ) in mgf_mask() 1171 dlen -= use_len; in mgf_mask()
|
H A D | ecp.c | 345 uint8_t use_len; in ecp_drbg_random() local 369 use_len = HASH_BLOCK_BYTES; in ecp_drbg_random() 371 use_len = output_len - len_done; in ecp_drbg_random() 373 memcpy( output + len_done, tmp, use_len ); in ecp_drbg_random() 374 len_done += use_len; in ecp_drbg_random()
|
/reactos/sdk/include/reactos/libs/mbedtls/ |
H A D | pem.h | 125 size_t pwdlen, size_t *use_len );
|