From ac014ca5d9e0057aa1f5db9bce66211cd2908555 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Thu, 24 Feb 2022 15:27:54 +0100 Subject: [PATCH] Fix comment typos in rsa_encrypt_wrap() Signed-off-by: Neil Armstrong --- library/pk_wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/pk_wrap.c b/library/pk_wrap.c index fc09b326d5..9f3f111a48 100644 --- a/library/pk_wrap.c +++ b/library/pk_wrap.c @@ -239,7 +239,7 @@ static int rsa_encrypt_wrap( void *ctx, psa_status_t status; mbedtls_pk_context key; int key_len; - /* see RSA_PUR_DER_MAX_BYTES in pkwrite.c */ + /* see RSA_PUB_DER_MAX_BYTES in pkwrite.c */ unsigned char buf[38 + 2 * MBEDTLS_MPI_MAX_SIZE]; mbedtls_pk_info_t pk_info = mbedtls_rsa_info; psa_algorithm_t psa_alg_md; @@ -266,7 +266,7 @@ static int rsa_encrypt_wrap( void *ctx, if( *olen > osize ) return( MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE ); - /* mbedtls_pk_write_pubkey() expects a full PK context; + /* mbedtls_pk_write_pubkey_der() expects a full PK context; * re-construct one to make it happy */ key.pk_info = &pk_info; key.pk_ctx = ctx;