Searched refs:md_size (Results 1 – 4 of 4) sorted by relevance
/mbedtls-3.5.0/library/ |
D | pkcs5.c | 235 unsigned char md_size = mbedtls_md_get_size(ctx->md_info); in pkcs5_pbkdf2_hmac() local 271 memcpy(md1, work, md_size); in pkcs5_pbkdf2_hmac() 276 if ((ret = mbedtls_md_hmac_update(ctx, md1, md_size)) != 0) { in pkcs5_pbkdf2_hmac() 290 mbedtls_xor(work, work, md1, md_size); in pkcs5_pbkdf2_hmac() 293 use_len = (key_length < md_size) ? key_length : md_size; in pkcs5_pbkdf2_hmac() 357 const unsigned char md_size = mbedtls_hash_info_get_size(md_alg); in mbedtls_pkcs5_pbkdf2_hmac_ext() 422 if ((status = psa_mac_update(&operation, md1, md_size)) != PSA_SUCCESS) { in mbedtls_pkcs5_pbkdf2_hmac_ext() 432 mbedtls_xor(work, work, md1, md_size); in mbedtls_pkcs5_pbkdf2_hmac_ext() 435 use_len = (key_length < md_size) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac_ext()
|
D | hmac_drbg.c | 242 size_t md_size; in mbedtls_hmac_drbg_seed() local 253 md_size = mbedtls_md_get_size(md_info); in mbedtls_hmac_drbg_seed() 260 if ((ret = mbedtls_md_hmac_starts(&ctx->md_ctx, ctx->V, md_size)) != 0) { in mbedtls_hmac_drbg_seed() 263 memset(ctx->V, 0x01, md_size); in mbedtls_hmac_drbg_seed() 276 ctx->entropy_len = md_size <= 20 ? 16 : /* 160-bits hash -> 128 bits */ in mbedtls_hmac_drbg_seed() 277 md_size <= 28 ? 24 : /* 224-bits hash -> 192 bits */ in mbedtls_hmac_drbg_seed()
|
D | rsa.c | 1831 unsigned char md_size = mbedtls_hash_info_get_size(md_alg); in rsa_rsassa_pkcs1_v15_encode() local 1832 if (md_size == 0) { in rsa_rsassa_pkcs1_v15_encode() 1840 if (hashlen != md_size) { in rsa_rsassa_pkcs1_v15_encode()
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_md.function | 122 void md_info(int md_type, char *md_name, int md_size) 140 TEST_EQUAL(mbedtls_md_get_size(md_info), (unsigned char) md_size);
|