/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | pem.c | 82 size_t use_len; in pem_pbkdf1() local 121 use_len = 16; in pem_pbkdf1() 123 use_len = keylen - 16; in pem_pbkdf1() 267 *use_len = end - data; in mbedtls_pem_read_buffer() 444 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer() 446 *olen = use_len + add_len; in mbedtls_pem_write_buffer() 450 if( use_len != 0 && in mbedtls_pem_write_buffer() 454 if( ( ret = mbedtls_base64_encode( encode_buf, use_len, &use_len, der_data, in mbedtls_pem_write_buffer() 465 while( use_len ) in mbedtls_pem_write_buffer() 467 len = ( use_len > 64 ) ? 64 : use_len; in mbedtls_pem_write_buffer() [all …]
|
A D | ccm.c | 219 size_t use_len; in ccm_auth_crypt() local 227 memcpy( b + 2, src, use_len ); in ccm_auth_crypt() 228 len_left -= use_len; in ccm_auth_crypt() 229 src += use_len; in ccm_auth_crypt() 238 memcpy( b, src, use_len ); in ccm_auth_crypt() 241 len_left -= use_len; in ccm_auth_crypt() 242 src += use_len; in ccm_auth_crypt() 278 memcpy( b, src, use_len ); in ccm_auth_crypt() 291 dst += use_len; in ccm_auth_crypt() 292 src += use_len; in ccm_auth_crypt() [all …]
|
A D | pkcs12.c | 235 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() 273 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local 350 use_len = ( datalen > hlen ) ? hlen : datalen; in mbedtls_pkcs12_derivation() 351 memcpy( p, hash_output, use_len ); in mbedtls_pkcs12_derivation() 352 datalen -= use_len; in mbedtls_pkcs12_derivation() 353 p += use_len; in mbedtls_pkcs12_derivation()
|
A D | entropy_poll.c | 273 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll() local 281 if( len < use_len ) in mbedtls_nv_seed_poll() 282 use_len = len; in mbedtls_nv_seed_poll() 284 memcpy( output, buf, use_len ); in mbedtls_nv_seed_poll() 285 *olen = use_len; in mbedtls_nv_seed_poll()
|
A D | havege.c | 212 size_t use_len; in mbedtls_havege_random() local 218 use_len = len; in mbedtls_havege_random() 219 if( use_len > sizeof( val ) ) in mbedtls_havege_random() 220 use_len = sizeof( val ); in mbedtls_havege_random() 228 memcpy( p, &val, use_len ); in mbedtls_havege_random() 230 len -= use_len; in mbedtls_havege_random() 231 p += use_len; in mbedtls_havege_random()
|
A D | gcm.c | 259 size_t use_len, olen = 0; in mbedtls_gcm_starts() local 303 iv_len -= use_len; in mbedtls_gcm_starts() 304 p += use_len; in mbedtls_gcm_starts() 325 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_starts() 330 add_len -= use_len; in mbedtls_gcm_starts() 331 p += use_len; in mbedtls_gcm_starts() 347 size_t use_len, olen = 0; in mbedtls_gcm_update() local 381 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_update() 392 length -= use_len; in mbedtls_gcm_update() 393 p += use_len; in mbedtls_gcm_update() [all …]
|
A D | ctr_drbg.c | 138 size_t buf_len, use_len; in block_cipher_df() local 179 use_len = buf_len; in block_cipher_df() 181 while( use_len > 0 ) in block_cipher_df() 186 use_len -= ( use_len >= MBEDTLS_CTR_DRBG_BLOCKSIZE ) ? in block_cipher_df() 187 MBEDTLS_CTR_DRBG_BLOCKSIZE : use_len; in block_cipher_df() 524 size_t use_len; in mbedtls_ctr_drbg_random_with_add() local 570 use_len = ( output_len > MBEDTLS_CTR_DRBG_BLOCKSIZE ) in mbedtls_ctr_drbg_random_with_add() 575 memcpy( p, tmp, use_len ); in mbedtls_ctr_drbg_random_with_add() 576 p += use_len; in mbedtls_ctr_drbg_random_with_add() 577 output_len -= use_len; in mbedtls_ctr_drbg_random_with_add()
|
A D | pkcs5.c | 230 size_t use_len; in mbedtls_pkcs5_pbkdf2_hmac() local 281 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac() 282 memcpy( out_p, work, use_len ); in mbedtls_pkcs5_pbkdf2_hmac() 284 key_length -= (uint32_t) use_len; in mbedtls_pkcs5_pbkdf2_hmac() 285 out_p += use_len; in mbedtls_pkcs5_pbkdf2_hmac()
|
A D | entropy.c | 185 size_t use_len = len; in entropy_update() local 189 if( use_len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in entropy_update() 199 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update() 203 header[1] = use_len & 0xFF; in entropy_update() 218 ret = mbedtls_sha512_update_ret( &ctx->accumulator, p, use_len ); in entropy_update() 227 ret = mbedtls_sha256_update_ret( &ctx->accumulator, p, use_len ); in entropy_update()
|
A D | x509_csr.c | 261 size_t use_len; in mbedtls_x509_csr_parse() local 279 buf, NULL, 0, &use_len ); in mbedtls_x509_csr_parse() 285 buf, NULL, 0, &use_len ); in mbedtls_x509_csr_parse()
|
A D | hmac_drbg.c | 368 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add() local 378 memcpy( out, ctx->V, use_len ); in mbedtls_hmac_drbg_random_with_add() 379 out += use_len; in mbedtls_hmac_drbg_random_with_add() 380 left -= use_len; in mbedtls_hmac_drbg_random_with_add()
|
A D | x509_crl.c | 540 size_t use_len = 0; in mbedtls_x509_crl_parse() local 559 buf, NULL, 0, &use_len ); in mbedtls_x509_crl_parse() 568 buflen -= use_len; in mbedtls_x509_crl_parse() 569 buf += use_len; in mbedtls_x509_crl_parse()
|
A D | ecjpake.c | 975 size_t use_len = len > 4 ? 4 : len; in ecjpake_lgc() local 977 memcpy( out, &x, use_len ); in ecjpake_lgc() 978 out += use_len; in ecjpake_lgc() 979 len -= use_len; in ecjpake_lgc()
|
A D | x509_crt.c | 1454 size_t use_len; in mbedtls_x509_crt_parse() local 1461 buf, NULL, 0, &use_len ); in mbedtls_x509_crt_parse() 1468 buflen -= use_len; in mbedtls_x509_crt_parse() 1469 buf += use_len; in mbedtls_x509_crt_parse() 1482 buflen -= use_len; in mbedtls_x509_crt_parse() 1483 buf += use_len; in mbedtls_x509_crt_parse()
|
A D | rsa.c | 1099 size_t i, use_len; in mgf_mask() local 1112 use_len = hlen; in mgf_mask() 1114 use_len = dlen; in mgf_mask() 1125 for( i = 0; i < use_len; ++i ) in mgf_mask() 1130 dlen -= use_len; in mgf_mask()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | pem.h | 107 size_t pwdlen, size_t *use_len );
|