Home
last modified time | relevance | path

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

12

/optee_os/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()
188 static int ecjpake_hash( const mbedtls_md_info_t *md_info, in ecjpake_hash() argument
224 MBEDTLS_MPI_CHK( mbedtls_md( md_info, buf, p - buf, hash ) ); in ecjpake_hash()
238 static int ecjpake_zkp_read( const mbedtls_md_info_t *md_info, in ecjpake_zkp_read() argument
310 static int ecjpake_zkp_write( const mbedtls_md_info_t *md_info, in ecjpake_zkp_write() argument
371 static int ecjpake_kkp_read( const mbedtls_md_info_t *md_info, in ecjpake_kkp_read() argument
408 static int ecjpake_kkp_write( const mbedtls_md_info_t *md_info, in ecjpake_kkp_write() argument
445 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.c259 const mbedtls_md_info_t *md_info; in mbedtls_pkcs12_derivation() local
266 md_info = mbedtls_md_info_from_type( md_type ); in mbedtls_pkcs12_derivation()
267 if( md_info == NULL ) in mbedtls_pkcs12_derivation()
272 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_pkcs12_derivation()
274 hlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs12_derivation()
308 if( ( ret = mbedtls_md( md_info, hash_output, hlen, hash_output ) ) != 0 ) in mbedtls_pkcs12_derivation()
A Drsa.c1169 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_encrypt() local
1186 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_encrypt()
1369 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_decrypt() local
1392 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_decrypt()
1820 const mbedtls_md_info_t *md_info; in rsa_rsassa_pss_sign() local
1842 if( md_info == NULL ) in rsa_rsassa_pss_sign()
1849 if( md_info == NULL ) in rsa_rsassa_pss_sign()
2014 if( md_info == NULL ) in rsa_rsassa_pkcs1_v15_encode()
2253 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsassa_pss_verify_ext() local
2289 if( md_info == NULL ) in mbedtls_rsa_rsassa_pss_verify_ext()
[all …]
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 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()
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dmd.h92 const mbedtls_md_info_t *md_info; member
185 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) MBEDTLS_DEPR…
208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac );
241 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info );
252 mbedtls_md_type_t mbedtls_md_get_type( const mbedtls_md_info_t *md_info );
263 const char *mbedtls_md_get_name( const mbedtls_md_info_t *md_info );
336 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
357 int mbedtls_md_file( const mbedtls_md_info_t *md_info, const char *path,
463 int mbedtls_md_hmac( const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
A Dhmac_drbg.h199 const mbedtls_md_info_t * md_info,
234 const mbedtls_md_info_t * md_info,
A Decjpake.h76 const mbedtls_md_info_t *md_info; /**< Hash to use */ member
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dmd.h92 const mbedtls_md_info_t *md_info; member
185 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) MBEDTLS_DEPR…
208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac );
241 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info );
252 mbedtls_md_type_t mbedtls_md_get_type( const mbedtls_md_info_t *md_info );
263 const char *mbedtls_md_get_name( const mbedtls_md_info_t *md_info );
336 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
357 int mbedtls_md_file( const mbedtls_md_info_t *md_info, const char *path,
463 int mbedtls_md_hmac( const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
A Dhmac_drbg.h199 const mbedtls_md_info_t * md_info,
234 const mbedtls_md_info_t * md_info,
A Decjpake.h76 const mbedtls_md_info_t *md_info; /**< Hash to use */ member
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dmd.h92 const mbedtls_md_info_t *md_info; member
185 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) MBEDTLS_DEPR…
208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac );
241 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info );
252 mbedtls_md_type_t mbedtls_md_get_type( const mbedtls_md_info_t *md_info );
263 const char *mbedtls_md_get_name( const mbedtls_md_info_t *md_info );
336 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
357 int mbedtls_md_file( const mbedtls_md_info_t *md_info, const char *path,
463 int mbedtls_md_hmac( const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
A Dhmac_drbg.h199 const mbedtls_md_info_t * md_info,
234 const mbedtls_md_info_t * md_info,
A Decjpake.h76 const mbedtls_md_info_t *md_info; /**< Hash to use */ member
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dmd.h92 const mbedtls_md_info_t *md_info; member
185 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) MBEDTLS_DEPR…
208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac );
241 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info );
252 mbedtls_md_type_t mbedtls_md_get_type( const mbedtls_md_info_t *md_info );
263 const char *mbedtls_md_get_name( const mbedtls_md_info_t *md_info );
336 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
357 int mbedtls_md_file( const mbedtls_md_info_t *md_info, const char *path,
463 int mbedtls_md_hmac( const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
A Dhmac_drbg.h199 const mbedtls_md_info_t * md_info,
234 const mbedtls_md_info_t * md_info,
A Decjpake.h76 const mbedtls_md_info_t *md_info; /**< Hash to use */ member
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dmd.h92 const mbedtls_md_info_t *md_info; member
185 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) MBEDTLS_DEPR…
208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac );
241 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info );
252 mbedtls_md_type_t mbedtls_md_get_type( const mbedtls_md_info_t *md_info );
263 const char *mbedtls_md_get_name( const mbedtls_md_info_t *md_info );
336 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen,
357 int mbedtls_md_file( const mbedtls_md_info_t *md_info, const char *path,
463 int mbedtls_md_hmac( const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
A Dhmac_drbg.h199 const mbedtls_md_info_t * md_info,
234 const mbedtls_md_info_t * md_info,
A Decjpake.h76 const mbedtls_md_info_t *md_info; /**< Hash to use */ member
/optee_os/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.c59 size_t hash_size = mbedtls_md_get_size(hc->md_ctx.md_info); in mbed_hash_final()
114 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type(md_type); in mbed_hash_alloc_ctx() local
116 if (!md_info) in mbed_hash_alloc_ctx()
124 mbed_res = mbedtls_md_setup(&hc->md_ctx, md_info, 0); in mbed_hash_alloc_ctx()

Completed in 45 milliseconds

12