/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | md.c | 340 dst->md_info != src->md_info ) in mbedtls_md_clone() 417 ctx->md_info = md_info; in mbedtls_md_setup() 617 if( md_info == NULL ) in mbedtls_md() 670 if( md_info == NULL ) in mbedtls_md_file() 804 if( md_info == NULL ) in mbedtls_md_hmac() 871 if( md_info == NULL ) in mbedtls_md_get_size() 874 return md_info->size; in mbedtls_md_get_size() 879 if( md_info == NULL ) in mbedtls_md_get_type() 882 return md_info->type; in mbedtls_md_get_type() 887 if( md_info == NULL ) in mbedtls_md_get_name() [all …]
|
A D | ecjpake.c | 61 ctx->md_info = NULL; in mbedtls_ecjpake_init() 84 ctx->md_info = NULL; in mbedtls_ecjpake_free() 138 if( ctx->md_info == NULL || in mbedtls_ecjpake_check() 185 static int ecjpake_hash( const mbedtls_md_info_t *md_info, in ecjpake_hash() argument 219 MBEDTLS_MPI_CHK( mbedtls_md( md_info, buf, p - buf, hash ) ); in ecjpake_hash() 233 static int ecjpake_zkp_read( const mbedtls_md_info_t *md_info, in ecjpake_zkp_read() argument 305 static int ecjpake_zkp_write( const mbedtls_md_info_t *md_info, in ecjpake_zkp_write() argument 366 static int ecjpake_kkp_read( const mbedtls_md_info_t *md_info, in ecjpake_kkp_read() argument 403 static int ecjpake_kkp_write( const mbedtls_md_info_t *md_info, in ecjpake_kkp_write() argument 440 static int ecjpake_kkpp_read( const mbedtls_md_info_t *md_info, in ecjpake_kkpp_read() argument [all …]
|
A D | hmac_drbg.c | 66 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_update_ret() 120 const mbedtls_md_info_t * md_info, in mbedtls_hmac_drbg_seed_buf() argument 125 if( ( ret = mbedtls_md_setup( &ctx->md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_hmac_drbg_seed_buf() 140 memset( ctx->V, 0x01, mbedtls_md_get_size( md_info ) ); in mbedtls_hmac_drbg_seed_buf() 245 const mbedtls_md_info_t * md_info, in mbedtls_hmac_drbg_seed() argument 254 if( ( ret = mbedtls_md_setup( &ctx->md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_hmac_drbg_seed() 262 md_size = mbedtls_md_get_size( md_info ); in mbedtls_hmac_drbg_seed() 334 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_random_with_add() 430 if( ctx->md_ctx.md_info != NULL ) in mbedtls_hmac_drbg_free() 584 CHK( mbedtls_hmac_drbg_seed( &ctx, md_info, in mbedtls_hmac_drbg_self_test() [all …]
|
A D | pkcs12.c | 275 const mbedtls_md_info_t *md_info; in mbedtls_pkcs12_derivation() local 291 md_info = mbedtls_md_info_from_type( md_type ); in mbedtls_pkcs12_derivation() 292 if( md_info == NULL ) in mbedtls_pkcs12_derivation() 297 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_pkcs12_derivation() 299 hlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs12_derivation() 346 if( ( ret = mbedtls_md( md_info, hash_output, hlen, hash_output ) ) != 0 ) in mbedtls_pkcs12_derivation()
|
A D | pkcs5.c | 121 const mbedtls_md_info_t *md_info; in mbedtls_pkcs5_pbes2() local 156 md_info = mbedtls_md_info_from_type( md_type ); in mbedtls_pkcs5_pbes2() 157 if( md_info == NULL ) in mbedtls_pkcs5_pbes2() 190 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_pkcs5_pbes2() 229 unsigned char md_size = mbedtls_md_get_size( ctx->md_info ); in mbedtls_pkcs5_pbkdf2_hmac()
|
A D | rsa.c | 1157 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_encrypt() local 1174 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_encrypt() 1357 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_decrypt() local 1380 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_decrypt() 1593 const mbedtls_md_info_t *md_info; in rsa_rsassa_pss_sign() local 1615 if( md_info == NULL ) in rsa_rsassa_pss_sign() 1622 if( md_info == NULL ) in rsa_rsassa_pss_sign() 1787 if( md_info == NULL ) in rsa_rsassa_pkcs1_v15_encode() 2030 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsassa_pss_verify_ext() local 2066 if( md_info == NULL ) in mbedtls_rsa_rsassa_pss_verify_ext() [all …]
|
A D | pkcs11.c | 184 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_pkcs11_sign() local 185 if( md_info == NULL ) in mbedtls_pkcs11_sign() 191 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs11_sign()
|
A D | pk.c | 236 const mbedtls_md_info_t *md_info; in pk_hashlen_helper() local 241 if( ( md_info = mbedtls_md_info_from_type( md_alg ) ) == NULL ) in pk_hashlen_helper() 244 if ( *hash_len != 0 && *hash_len != mbedtls_md_get_size( md_info ) ) in pk_hashlen_helper() 247 *hash_len = mbedtls_md_get_size( md_info ); in pk_hashlen_helper()
|
A D | constant_time.c | 463 const mbedtls_md_type_t md_alg = mbedtls_md_get_type( ctx->md_info ); in mbedtls_ct_hmac() 469 const size_t hash_size = mbedtls_md_get_size( ctx->md_info ); in mbedtls_ct_hmac() 485 MD_CHK( mbedtls_md_setup( &aux, ctx->md_info, 0 ) ); in mbedtls_ct_hmac()
|
A D | x509.c | 864 const mbedtls_md_info_t *md_info, *mgf_md_info; in mbedtls_x509_sig_alg_gets() local 868 md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_x509_sig_alg_gets() 872 md_info ? mbedtls_md_get_name( md_info ) : "???", in mbedtls_x509_sig_alg_gets()
|
A D | ecdsa.c | 437 const mbedtls_md_info_t *md_info; in ecdsa_sign_det_restartable() local 440 if( ( md_info = mbedtls_md_info_from_type( md_alg ) ) == NULL ) in ecdsa_sign_det_restartable() 464 mbedtls_hmac_drbg_seed_buf( p_rng, md_info, data, 2 * grp_len ); in ecdsa_sign_det_restartable() 498 mbedtls_hmac_drbg_seed_buf( p_rng_blind_det, md_info, in ecdsa_sign_det_restartable()
|
A D | ssl_tls.c | 415 const mbedtls_md_info_t *md_info; in tls1_prf() local 447 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls1_prf() 501 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls1_prf() 698 const mbedtls_md_info_t *md_info; in tls_prf_generic() local 707 md_len = mbedtls_md_get_size( md_info ); in tls_prf_generic() 998 const mbedtls_md_info_t *md_info; in ssl_populate_transform() local 1041 if( md_info == NULL ) in ssl_populate_transform() 1146 mac_key_len = mbedtls_md_get_size( md_info ); in ssl_populate_transform() 5759 const mbedtls_md_info_t *md_info = in ssl_session_load() local 5761 if( md_info == NULL ) in ssl_session_load() [all …]
|
A D | x509_crt.c | 2344 const mbedtls_md_info_t *md_info; in x509_crt_verifycrl() local 2379 md_info = mbedtls_md_info_from_type( crl_list->sig_md ); in x509_crt_verifycrl() 2380 if( mbedtls_md( md_info, crl_list->tbs.p, crl_list->tbs.len, hash ) != 0 ) in x509_crt_verifycrl() 2391 crl_list->sig_md, hash, mbedtls_md_get_size( md_info ), in x509_crt_verifycrl() 2433 const mbedtls_md_info_t *md_info; in x509_crt_check_signature() local 2434 md_info = mbedtls_md_info_from_type( child->sig_md ); in x509_crt_check_signature() 2435 hash_len = mbedtls_md_get_size( md_info ); in x509_crt_check_signature() 2438 if( mbedtls_md( md_info, child->tbs.p, child->tbs.len, hash ) != 0 ) in x509_crt_check_signature()
|
A D | ecp.c | 179 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type( md_type ); in ecp_drbg_seed() local 190 ret = mbedtls_hmac_drbg_seed_buf( ctx, md_info, secret_bytes, secret_len ); in ecp_drbg_seed()
|
A D | ssl_msg.c | 498 int md_size = mbedtls_md_get_size( md_ctx->md_info ); in ssl_mac() 499 int md_type = mbedtls_md_get_type( md_ctx->md_info ); in ssl_mac()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | md.h | 98 const mbedtls_md_info_t *md_info; member 191 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) MBEDTLS_DEPR… 215 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ); 249 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info ); 260 mbedtls_md_type_t mbedtls_md_get_type( const mbedtls_md_info_t *md_info ); 271 const char *mbedtls_md_get_name( const mbedtls_md_info_t *md_info ); 348 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen, 370 int mbedtls_md_file( const mbedtls_md_info_t *md_info, const char *path, 481 int mbedtls_md_hmac( const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
|
A D | hmac_drbg.h | 203 const mbedtls_md_info_t * md_info, 238 const mbedtls_md_info_t * md_info,
|
A D | ecjpake.h | 76 const mbedtls_md_info_t *md_info; /**< Hash to use */ member
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | hmac.c | 55 size_t hmac_size = mbedtls_md_get_size(c->md_ctx.md_info); in mbed_hmac_final() 110 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type(md_type); in mbed_hmac_alloc_ctx() local 112 if (!md_info) in mbed_hmac_alloc_ctx() 120 mbed_res = mbedtls_md_setup(&c->md_ctx, md_info, 1); in mbed_hmac_alloc_ctx()
|
A D | hash.c | 60 size_t hash_size = mbedtls_md_get_size(hc->md_ctx.md_info); in mbed_hash_final() 115 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type(md_type); in mbed_hash_alloc_ctx() local 117 if (!md_info) in mbed_hash_alloc_ctx() 125 mbed_res = mbedtls_md_setup(&hc->md_ctx, md_info, 0); in mbed_hash_alloc_ctx()
|