From e4f28688fd656cf32e0949bc66ea80722a6e9382 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Thu, 24 Feb 2022 15:41:39 +0100 Subject: [PATCH] Fix comment typo in rsa_sign_wrap() Signed-off-by: Neil Armstrong --- library/pk_wrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/pk_wrap.c b/library/pk_wrap.c index 290845136..c30b5219a 100644 --- a/library/pk_wrap.c +++ b/library/pk_wrap.c @@ -222,7 +222,7 @@ static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, if( sig_size < *sig_len ) return( MBEDTLS_ERR_PK_BUFFER_TOO_SMALL ); - /* mbedtls_pk_write_pubkey() expects a full PK context; + /* mbedtls_pk_write_key_der() expects a full PK context; * re-construct one to make it happy */ key.pk_info = &pk_info; key.pk_ctx = ctx;