From f48af7fe7677bf6e30baa7ef73cc64e8b4c4f2f4 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 28 Mar 2018 18:44:14 +0200 Subject: [PATCH] psa_generate_key: specify what the extra parameters mean --- include/psa/crypto.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 3835ce46d..f5db4d26b 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -1407,7 +1407,7 @@ psa_status_t psa_asymmetric_encrypt(psa_key_slot_t key, * supported. * \param salt_length Size of the \c salt buffer in bytes. * If \c salt is \c NULL, pass 0. - * \param output Buffer where the encrypted message is to be written. + * \param output Buffer where the decrypted message is to be written. * \param output_size Size of the \c output buffer in bytes. * \param output_length On success, the number of bytes * that make up the returned output. @@ -1485,9 +1485,9 @@ psa_status_t psa_generate_random(uint8_t *output, * table below. For vendor-defined key types, the vendor documentation * shall define the parameter type and the default parameters. * - * Type | Parameter type | Default parameters - * ---- | -------------- | ------------------ - * `PSA_KEY_TYPE_RSA_KEYPAIR` | `unsigned int` | 65537 + * Type | Parameter type | Meaning | Parameters used if `parameters == NULL` + * ---- | -------------- | ------- | --------------------------------------- + * `PSA_KEY_TYPE_RSA_KEYPAIR` | `unsigned int` | Public exponent | 65537 * * \retval PSA_SUCCESS * \retval PSA_ERROR_NOT_SUPPORTED