diff --git a/library/hash_info.c b/library/hash_info.c index f2a4ba088..c3a81cfdb 100644 --- a/library/hash_info.c +++ b/library/hash_info.c @@ -95,7 +95,7 @@ psa_algorithm_t mbedtls_hash_info_psa_from_md( mbedtls_md_type_t md_type ) return entry->psa_alg; } -/* Get PSA from MD */ +/* Get MD from PSA */ mbedtls_md_type_t mbedtls_hash_info_md_from_psa( psa_algorithm_t psa_alg ) { const hash_entry *entry = hash_table; diff --git a/library/hash_info.h b/library/hash_info.h index e0f47a414..67983f7ff 100644 --- a/library/hash_info.h +++ b/library/hash_info.h @@ -7,9 +7,9 @@ * - code based on either of them depending on MBEDTLS_USE_PSA_CRYPTO * - code based on either of them depending on what's available * - * Note: this internal module will go away when everything become based on + * Note: this internal module will go away when everything becomes based on * PSA Crypto; it is a helper for the transition while hash algorithms are - * wtill represented using mbedtls_md_type_t in most places even when PSA is + * still represented using mbedtls_md_type_t in most places even when PSA is * used for the actual crypto computations. * * Copyright The Mbed TLS Contributors