Home
last modified time | relevance | path

Searched refs:md_size (Results 1 – 5 of 5) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/programs/aes/
Dcrypt_and_hash.c81 unsigned char md_size; in main() local
233 md_size = mbedtls_md_get_size(md_info); in main()
377 if (fwrite(digest, 1, md_size, fout) != md_size) { in main()
378 mbedtls_fprintf(stderr, "fwrite(%d bytes) failed\n", md_size); in main()
393 if (filesize < 16 + md_size) { in main()
411 ((filesize - md_size) % cipher_block_size) != 0) { in main()
420 filesize -= (16 + md_size); in main()
518 if (fread(buffer, 1, md_size, fin) != md_size) { in main()
519 mbedtls_fprintf(stderr, "fread(%d bytes) failed\n", md_size); in main()
525 for (i = 0; i < md_size; i++) { in main()
/openthread-latest/third_party/mbedtls/repo/library/
Dpkcs5.c278 unsigned char md_size = mbedtls_md_get_size(ctx->md_info); in pkcs5_pbkdf2_hmac() local
314 memcpy(md1, work, md_size); in pkcs5_pbkdf2_hmac()
319 if ((ret = mbedtls_md_hmac_update(ctx, md1, md_size)) != 0) { in pkcs5_pbkdf2_hmac()
333 mbedtls_xor(work, work, md1, md_size); in pkcs5_pbkdf2_hmac()
336 use_len = (key_length < md_size) ? key_length : md_size; in pkcs5_pbkdf2_hmac()
Dhmac_drbg.c230 size_t md_size; in mbedtls_hmac_drbg_seed() local
241 md_size = mbedtls_md_get_size(md_info); in mbedtls_hmac_drbg_seed()
248 if ((ret = mbedtls_md_hmac_starts(&ctx->md_ctx, ctx->V, md_size)) != 0) { in mbedtls_hmac_drbg_seed()
251 memset(ctx->V, 0x01, md_size); in mbedtls_hmac_drbg_seed()
264 ctx->entropy_len = md_size <= 20 ? 16 : /* 160-bits hash -> 128 bits */ in mbedtls_hmac_drbg_seed()
265 md_size <= 28 ? 24 : /* 224-bits hash -> 192 bits */ in mbedtls_hmac_drbg_seed()
Drsa.c2321 unsigned char md_size = mbedtls_md_get_size_from_type(md_alg); in rsa_rsassa_pkcs1_v15_encode() local
2322 if (md_size == 0) { in rsa_rsassa_pkcs1_v15_encode()
2330 if (hashlen != md_size) { in rsa_rsassa_pkcs1_v15_encode()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_md.function161 void md_info(int md_type, char *md_name, int md_size)
179 TEST_EQUAL(mbedtls_md_get_size(md_info), (unsigned char) md_size);