Home
last modified time | relevance | path

Searched refs:md_ctx (Results 1 – 19 of 19) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
A Dmd.c275 if( ctx->md_ctx != NULL ) in mbedtls_md_free()
281 mbedtls_md2_free( ctx->md_ctx ); in mbedtls_md_free()
322 mbedtls_free( ctx->md_ctx ); in mbedtls_md_free()
349 mbedtls_md2_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
354 mbedtls_md4_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
359 mbedtls_md5_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
364 mbedtls_ripemd160_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
369 mbedtls_sha1_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
375 mbedtls_sha256_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
383 mbedtls_sha512_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
[all …]
A Dhmac_drbg.c66 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_update_ret()
75 if( ( ret = mbedtls_md_hmac_reset( &ctx->md_ctx ) ) != 0 ) in mbedtls_hmac_drbg_update_ret()
77 if( ( ret = mbedtls_md_hmac_update( &ctx->md_ctx, in mbedtls_hmac_drbg_update_ret()
80 if( ( ret = mbedtls_md_hmac_update( &ctx->md_ctx, in mbedtls_hmac_drbg_update_ret()
85 if( ( ret = mbedtls_md_hmac_update( &ctx->md_ctx, in mbedtls_hmac_drbg_update_ret()
95 if( ( ret = mbedtls_md_hmac_update( &ctx->md_ctx, in mbedtls_hmac_drbg_update_ret()
137 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, in mbedtls_hmac_drbg_seed_buf()
334 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_random_with_add()
372 if( ( ret = mbedtls_md_hmac_update( &ctx->md_ctx, in mbedtls_hmac_drbg_random_with_add()
430 if( ctx->md_ctx.md_info != NULL ) in mbedtls_hmac_drbg_free()
[all …]
A Dpkcs12.c260 mbedtls_md_context_t md_ctx; in mbedtls_pkcs12_derivation() local
270 mbedtls_md_init( &md_ctx ); in mbedtls_pkcs12_derivation()
272 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_pkcs12_derivation()
290 if( ( ret = mbedtls_md_starts( &md_ctx ) ) != 0 ) in mbedtls_pkcs12_derivation()
293 if( ( ret = mbedtls_md_update( &md_ctx, diversifier, v ) ) != 0 ) in mbedtls_pkcs12_derivation()
296 if( ( ret = mbedtls_md_update( &md_ctx, salt_block, v ) ) != 0 ) in mbedtls_pkcs12_derivation()
299 if( ( ret = mbedtls_md_update( &md_ctx, pwd_block, v ) ) != 0 ) in mbedtls_pkcs12_derivation()
302 if( ( ret = mbedtls_md_finish( &md_ctx, hash_output ) ) != 0 ) in mbedtls_pkcs12_derivation()
355 mbedtls_md_free( &md_ctx ); in mbedtls_pkcs12_derivation()
A Drsa.c1170 mbedtls_md_context_t md_ctx; in mbedtls_rsa_rsaes_oaep_encrypt() local
1215 mbedtls_md_init( &md_ctx ); in mbedtls_rsa_rsaes_oaep_encrypt()
1230 mbedtls_md_free( &md_ctx ); in mbedtls_rsa_rsaes_oaep_encrypt()
1370 mbedtls_md_context_t md_ctx; in mbedtls_rsa_rsaes_oaep_decrypt() local
1419 mbedtls_md_init( &md_ctx ); in mbedtls_rsa_rsaes_oaep_decrypt()
1437 mbedtls_md_free( &md_ctx ); in mbedtls_rsa_rsaes_oaep_decrypt()
1821 mbedtls_md_context_t md_ctx; in rsa_rsassa_pss_sign() local
1894 mbedtls_md_init( &md_ctx ); in rsa_rsassa_pss_sign()
1926 mbedtls_md_free( &md_ctx ); in rsa_rsassa_pss_sign()
2322 mbedtls_md_init( &md_ctx ); in mbedtls_rsa_rsassa_pss_verify_ext()
[all …]
A Dpkcs5.c123 mbedtls_md_context_t md_ctx; in mbedtls_pkcs5_pbes2() local
185 mbedtls_md_init( &md_ctx ); in mbedtls_pkcs5_pbes2()
190 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_pkcs5_pbes2()
193 if( ( ret = mbedtls_pkcs5_pbkdf2_hmac( &md_ctx, pwd, pwdlen, salt.p, salt.len, in mbedtls_pkcs5_pbes2()
211 mbedtls_md_free( &md_ctx ); in mbedtls_pkcs5_pbes2()
A Dssl_tls.c408 mbedtls_md_context_t md_ctx; in tls1_prf() local
411 mbedtls_md_init( &md_ctx ); in tls1_prf()
450 mbedtls_md_hmac_reset ( &md_ctx ); in tls1_prf()
454 mbedtls_md_hmac_reset ( &md_ctx ); in tls1_prf()
464 mbedtls_md_free( &md_ctx ); in tls1_prf()
486 mbedtls_md_hmac_reset ( &md_ctx ); in tls1_prf()
490 mbedtls_md_hmac_reset ( &md_ctx ); in tls1_prf()
501 mbedtls_md_free( &md_ctx ); in tls1_prf()
653 mbedtls_md_context_t md_ctx; in tls_prf_generic() local
656 mbedtls_md_init( &md_ctx ); in tls_prf_generic()
[all …]
A Dssl_msg.c479 static void ssl_mac( mbedtls_md_context_t *md_ctx, in ssl_mac() argument
503 mbedtls_md_starts( md_ctx ); in ssl_mac()
504 mbedtls_md_update( md_ctx, secret, md_size ); in ssl_mac()
505 mbedtls_md_update( md_ctx, padding, padlen ); in ssl_mac()
506 mbedtls_md_update( md_ctx, header, 11 ); in ssl_mac()
507 mbedtls_md_update( md_ctx, buf, len ); in ssl_mac()
508 mbedtls_md_finish( md_ctx, out ); in ssl_mac()
511 mbedtls_md_starts( md_ctx ); in ssl_mac()
512 mbedtls_md_update( md_ctx, secret, md_size ); in ssl_mac()
513 mbedtls_md_update( md_ctx, padding, padlen ); in ssl_mac()
[all …]
/optee_os/lib/libmbedtls/core/
A Dhmac.c21 mbedtls_md_context_t md_ctx; member
36 if (mbedtls_md_hmac_starts(&to_hmac_ctx(ctx)->md_ctx, key, len)) in mbed_hmac_init()
45 if (mbedtls_md_hmac_update(&to_hmac_ctx(ctx)->md_ctx, data, len)) in mbed_hmac_update()
55 size_t hmac_size = mbedtls_md_get_size(c->md_ctx.md_info); in mbed_hmac_final()
70 if (mbedtls_md_hmac_finish(&c->md_ctx, tmp_digest)) in mbed_hmac_final()
83 mbedtls_md_free(&c->md_ctx); in mbed_hmac_free_ctx()
93 if (mbedtls_md_clone(&dst->md_ctx, &src->md_ctx)) in mbed_hmac_copy_state()
120 mbed_res = mbedtls_md_setup(&c->md_ctx, md_info, 1); in mbed_hmac_alloc_ctx()
A Dhash.c26 mbedtls_md_context_t md_ctx; member
40 if (mbedtls_md_starts(&to_hash_ctx(ctx)->md_ctx)) in mbed_hash_init()
49 if (mbedtls_md_update(&to_hash_ctx(ctx)->md_ctx, data, len)) in mbed_hash_update()
59 size_t hash_size = mbedtls_md_get_size(hc->md_ctx.md_info); in mbed_hash_final()
74 if (mbedtls_md_finish(&hc->md_ctx, tmp_digest)) in mbed_hash_final()
87 mbedtls_md_free(&hc->md_ctx); in mbed_hash_free_ctx()
97 if (mbedtls_md_clone(&dst->md_ctx, &src->md_ctx)) in mbed_hash_copy_state()
124 mbed_res = mbedtls_md_setup(&hc->md_ctx, md_info, 0); in mbed_hash_alloc_ctx()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dhmac_drbg.h89 mbedtls_md_context_t md_ctx; /*!< HMAC context (inc. K) */ member
A Dmd.h95 void *md_ctx; member
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dhmac_drbg.h89 mbedtls_md_context_t md_ctx; /*!< HMAC context (inc. K) */ member
A Dmd.h95 void *md_ctx; member
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dhmac_drbg.h89 mbedtls_md_context_t md_ctx; /*!< HMAC context (inc. K) */ member
A Dmd.h95 void *md_ctx; member
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dhmac_drbg.h89 mbedtls_md_context_t md_ctx; /*!< HMAC context (inc. K) */ member
A Dmd.h95 void *md_ctx; member
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dhmac_drbg.h89 mbedtls_md_context_t md_ctx; /*!< HMAC context (inc. K) */ member
A Dmd.h95 void *md_ctx; member

Completed in 81 milliseconds