/optee_os/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() 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 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 | 259 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 D | rsa.c | 1169 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 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 | 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()
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | md.h | 92 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 D | hmac_drbg.h | 199 const mbedtls_md_info_t * md_info, 234 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/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | md.h | 92 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 D | hmac_drbg.h | 199 const mbedtls_md_info_t * md_info, 234 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/out/arm/export-ta_arm64/include/mbedtls/ |
A D | md.h | 92 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 D | hmac_drbg.h | 199 const mbedtls_md_info_t * md_info, 234 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/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | md.h | 92 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 D | hmac_drbg.h | 199 const mbedtls_md_info_t * md_info, 234 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/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | md.h | 92 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 D | hmac_drbg.h | 199 const mbedtls_md_info_t * md_info, 234 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/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 | 59 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()
|