Home
last modified time | relevance | path

Searched refs:md_info (Results 1 – 20 of 20) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dmd.c340 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 Decjpake.c61 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 Dhmac_drbg.c66 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 Dpkcs12.c275 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 Dpkcs5.c121 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 Drsa.c1157 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 Dpkcs11.c184 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 Dpk.c236 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 Dconstant_time.c463 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 Dx509.c864 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 Decdsa.c437 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 Dssl_tls.c415 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 Dx509_crt.c2344 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 Decp.c179 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 Dssl_msg.c498 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 Dmd.h98 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 Dhmac_drbg.h203 const mbedtls_md_info_t * md_info,
238 const mbedtls_md_info_t * md_info,
A Decjpake.h76 const mbedtls_md_info_t *md_info; /**< Hash to use */ member
/optee_os-3.20.0/lib/libmbedtls/core/
A Dhmac.c55 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 Dhash.c60 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()

Completed in 56 milliseconds