Minor documentation improvement to ssl_rsa_encrypt_partial_pms()

This commit is contained in:
Hanno Becker 2019-08-12 14:55:33 +01:00
parent 084694dd57
commit aa49620f6e

View file

@ -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 * Encrypt the randomly chosen part of the Premaster Secret with the
* write it to the provided buffer. * server's RSA key and write it to the provided buffer.
*/ */
static int ssl_rsa_encrypt_partial_pms( mbedtls_ssl_context *ssl, static int ssl_rsa_encrypt_partial_pms( mbedtls_ssl_context *ssl,
unsigned char const *ppms, 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 ) ) if( ! mbedtls_pk_can_do( peer_pk, MBEDTLS_PK_RSA ) )
{ {