Home
last modified time | relevance | path

Searched refs:md1 (Results 1 - 3 of 3) sorted by relevance

/third_party/openssl/test/
H A Dsm3_internal_test.c60 unsigned char md1[SM3_DIGEST_LENGTH], md2[SM3_DIGEST_LENGTH]; in test_sm3() local
64 || !TEST_true(ossl_sm3_final(md1, &ctx1)) in test_sm3()
65 || !TEST_mem_eq(md1, SM3_DIGEST_LENGTH, expected1, SM3_DIGEST_LENGTH)) in test_sm3()
/third_party/mbedtls/library/
H A Dpkcs5.c276 unsigned char md1[MBEDTLS_MD_MAX_SIZE]; in pkcs5_pbkdf2_hmac() local
314 memcpy(md1, work, md_size); in pkcs5_pbkdf2_hmac()
317 // U2 ends up in md1 in pkcs5_pbkdf2_hmac()
319 if ((ret = mbedtls_md_hmac_update(ctx, md1, md_size)) != 0) { in pkcs5_pbkdf2_hmac()
323 if ((ret = mbedtls_md_hmac_finish(ctx, md1)) != 0) { in pkcs5_pbkdf2_hmac()
333 mbedtls_xor(work, work, md1, md_size); in pkcs5_pbkdf2_hmac()
352 mbedtls_platform_zeroize(md1, MBEDTLS_MD_MAX_SIZE); in pkcs5_pbkdf2_hmac()
/third_party/mbedtls/tests/src/test_helpers/
H A Dssl_helpers.c1273 unsigned char *md0 = NULL, *md1 = NULL; in mbedtls_test_ssl_build_transforms() local
1357 CHK((md1 = mbedtls_calloc(1, maclen)) != NULL); in mbedtls_test_ssl_build_transforms()
1359 memset(md1, 0x6, maclen); in mbedtls_test_ssl_build_transforms()
1383 md1, maclen, in mbedtls_test_ssl_build_transforms()
1396 md1, maclen, in mbedtls_test_ssl_build_transforms()
1411 md1, maclen) == 0); in mbedtls_test_ssl_build_transforms()
1413 md1, maclen) == 0); in mbedtls_test_ssl_build_transforms()
1607 mbedtls_free(md1); in mbedtls_test_ssl_build_transforms()

Completed in 5 milliseconds