/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | md.c | 191 if( ctx->md_ctx != NULL ) in mbedtls_md_free() 192 ctx->md_info->ctx_free_func( ctx->md_ctx ); in mbedtls_md_free() 213 dst->md_info->clone_func( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone() 230 if( ( ctx->md_ctx = md_info->ctx_alloc_func() ) == NULL ) in mbedtls_md_setup() 238 md_info->ctx_free_func( ctx->md_ctx ); in mbedtls_md_setup() 253 ctx->md_info->starts_func( ctx->md_ctx ); in mbedtls_md_starts() 263 ctx->md_info->update_func( ctx->md_ctx, input, ilen ); in mbedtls_md_update() 273 ctx->md_info->finish_func( ctx->md_ctx, output ); in mbedtls_md_finish() 309 md_info->starts_func( ctx.md_ctx ); in mbedtls_md_file() 312 md_info->update_func( ctx.md_ctx, buf, n ); in mbedtls_md_file() [all …]
|
D | hmac_drbg.c | 76 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_update() 84 mbedtls_md_hmac_reset( &ctx->md_ctx ); in mbedtls_hmac_drbg_update() 85 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_update() 86 mbedtls_md_hmac_update( &ctx->md_ctx, sep, 1 ); in mbedtls_hmac_drbg_update() 88 mbedtls_md_hmac_update( &ctx->md_ctx, additional, add_len ); in mbedtls_hmac_drbg_update() 89 mbedtls_md_hmac_finish( &ctx->md_ctx, K ); in mbedtls_hmac_drbg_update() 92 mbedtls_md_hmac_starts( &ctx->md_ctx, K, md_len ); in mbedtls_hmac_drbg_update() 93 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_update() 94 mbedtls_md_hmac_finish( &ctx->md_ctx, ctx->V ); in mbedtls_hmac_drbg_update() 107 if( ( ret = mbedtls_md_setup( &ctx->md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_hmac_drbg_seed_buf() [all …]
|
D | rsa.c | 465 size_t slen, mbedtls_md_context_t *md_ctx ) in mgf_mask() argument 476 hlen = mbedtls_md_get_size( md_ctx->md_info ); in mgf_mask() 487 mbedtls_md_starts( md_ctx ); in mgf_mask() 488 mbedtls_md_update( md_ctx, src, slen ); in mgf_mask() 489 mbedtls_md_update( md_ctx, counter, 4 ); in mgf_mask() 490 mbedtls_md_finish( md_ctx, mask ); in mgf_mask() 520 mbedtls_md_context_t md_ctx; in mbedtls_rsa_rsaes_oaep_encrypt() local 556 mbedtls_md_init( &md_ctx ); in mbedtls_rsa_rsaes_oaep_encrypt() 557 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt() 559 mbedtls_md_free( &md_ctx ); in mbedtls_rsa_rsaes_oaep_encrypt() [all …]
|
D | pkcs12.c | 265 mbedtls_md_context_t md_ctx; in mbedtls_pkcs12_derivation() local 275 mbedtls_md_init( &md_ctx ); in mbedtls_pkcs12_derivation() 277 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_pkcs12_derivation() 295 if( ( ret = mbedtls_md_starts( &md_ctx ) ) != 0 ) in mbedtls_pkcs12_derivation() 298 if( ( ret = mbedtls_md_update( &md_ctx, diversifier, v ) ) != 0 ) in mbedtls_pkcs12_derivation() 301 if( ( ret = mbedtls_md_update( &md_ctx, salt_block, v ) ) != 0 ) in mbedtls_pkcs12_derivation() 304 if( ( ret = mbedtls_md_update( &md_ctx, pwd_block, v ) ) != 0 ) in mbedtls_pkcs12_derivation() 307 if( ( ret = mbedtls_md_finish( &md_ctx, hash_output ) ) != 0 ) in mbedtls_pkcs12_derivation() 360 mbedtls_md_free( &md_ctx ); in mbedtls_pkcs12_derivation()
|
D | pkcs5.c | 125 mbedtls_md_context_t md_ctx; in mbedtls_pkcs5_pbes2() local 186 mbedtls_md_init( &md_ctx ); in mbedtls_pkcs5_pbes2() 191 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_pkcs5_pbes2() 194 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()
|
D | ssl_tls.c | 280 mbedtls_md_context_t md_ctx; in tls1_prf() local 283 mbedtls_md_init( &md_ctx ); in tls1_prf() 303 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls1_prf() 306 mbedtls_md_hmac_starts( &md_ctx, S1, hs ); in tls1_prf() 307 mbedtls_md_hmac_update( &md_ctx, tmp + 20, nb ); in tls1_prf() 308 mbedtls_md_hmac_finish( &md_ctx, 4 + tmp ); in tls1_prf() 312 mbedtls_md_hmac_reset ( &md_ctx ); in tls1_prf() 313 mbedtls_md_hmac_update( &md_ctx, 4 + tmp, 16 + nb ); in tls1_prf() 314 mbedtls_md_hmac_finish( &md_ctx, h_i ); in tls1_prf() 316 mbedtls_md_hmac_reset ( &md_ctx ); in tls1_prf() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/aes/ |
D | crypt_and_hash.c | 92 mbedtls_md_context_t md_ctx; in main() local 103 mbedtls_md_init( &md_ctx ); in main() 188 if( mbedtls_md_setup( &md_ctx, md_info, 1 ) != 0 ) in main() 274 mbedtls_md_starts( &md_ctx ); in main() 275 mbedtls_md_update( &md_ctx, buffer, 8 ); in main() 276 mbedtls_md_update( &md_ctx, (unsigned char *) p, strlen( p ) ); in main() 277 mbedtls_md_finish( &md_ctx, digest ); in main() 299 mbedtls_md_starts( &md_ctx ); in main() 300 mbedtls_md_update( &md_ctx, digest, 32 ); in main() 301 mbedtls_md_update( &md_ctx, key, keylen ); in main() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/hash/ |
D | generic_sum.c | 174 mbedtls_md_context_t md_ctx; in main() local 176 mbedtls_md_init( &md_ctx ); in main() 211 if( mbedtls_md_setup( &md_ctx, md_info, 0 ) ) in main() 228 mbedtls_md_free( &md_ctx ); in main()
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | hmac_drbg.h | 80 mbedtls_md_context_t md_ctx; /*!< HMAC context (inc. K) */ member
|
D | md.h | 71 void *md_ctx; member
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_md.function | 214 TEST_ASSERT ( ctx.md_ctx != NULL ); 268 TEST_ASSERT ( ctx.md_ctx != NULL ); 355 TEST_ASSERT ( ctx.md_ctx != NULL );
|