From aa49620f6e7501b555225bfa0dbac978c78df2c0 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 12 Aug 2019 14:55:33 +0100 Subject: [PATCH] Minor documentation improvement to ssl_rsa_encrypt_partial_pms() --- library/ssl_cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index b38c2a3ed..aea5f12d5 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -2371,8 +2371,8 @@ static int ssl_rsa_generate_partial_pms( mbedtls_ssl_context *ssl, } /* - * Encrypt the Premaster Secret it with the server's RSA key and - * write it to the provided buffer. + * Encrypt the randomly chosen part of the Premaster Secret with the + * server's RSA key and write it to the provided buffer. */ static int ssl_rsa_encrypt_partial_pms( mbedtls_ssl_context *ssl, unsigned char const *ppms, @@ -2418,7 +2418,7 @@ static int ssl_rsa_encrypt_partial_pms( mbedtls_ssl_context *ssl, } /* - * Encrypt the part of the premaster secret and write it out. + * Encrypt the partial premaster secret and write it out. */ if( ! mbedtls_pk_can_do( peer_pk, MBEDTLS_PK_RSA ) ) {