mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Replace hash_info_get_type with MD function
Mostly a search and replace with just two manual changes: 1. Now PK and TLS need MD light, so auto-enable it. 2. Remove the old function in hash_info.[ch] Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
1ef26e285e
commit
9b41eb8533
12 changed files with 19 additions and 39 deletions
|
|
@ -1200,7 +1200,7 @@ int mbedtls_test_ssl_build_transforms(mbedtls_ssl_transform *t_in,
|
|||
mbedtls_md_info_t const *md_info = mbedtls_md_info_from_type(hash_id);
|
||||
CHK(md_info != NULL);
|
||||
#endif
|
||||
maclen = mbedtls_hash_info_get_size(hash_id);
|
||||
maclen = mbedtls_md_get_size_from_type(hash_id);
|
||||
CHK(maclen != 0);
|
||||
/* Pick hash keys */
|
||||
CHK((md0 = mbedtls_calloc(1, maclen)) != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue