Fix documentation

Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
gabor-mezei-arm 2021-01-28 14:33:10 +01:00
parent 47278ee8f8
commit bdae918cd9
No known key found for this signature in database
GPG Key ID: 106F5A41ECC305BD

View File

@ -188,10 +188,11 @@
#define PSA_VENDOR_ECC_MAX_CURVE_BITS 0 #define PSA_VENDOR_ECC_MAX_CURVE_BITS 0
#endif #endif
/** This macro returns the maximum length of the PSK supported /** This macro returns the maximum supported length of the PSK for the
* by the TLS-1.2 PSK-to-MS key derivation * TLS-1.2 PSK-to-MS key derivation
* (#PSA_ALG_TLS12_PSK_TO_MS(\p hash_alg)). It is independent from the * (#PSA_ALG_TLS12_PSK_TO_MS(\p hash_alg)).
* choice of hash algorithms. *
* The maximum supported length does not depend on the chosen hash algorithm.
* *
* Quoting RFC 4279, Sect 5.3: * Quoting RFC 4279, Sect 5.3:
* TLS implementations supporting these ciphersuites MUST support * TLS implementations supporting these ciphersuites MUST support
@ -591,7 +592,8 @@
#define PSA_KEY_EXPORT_ECC_KEY_PAIR_MAX_SIZE(key_bits) \ #define PSA_KEY_EXPORT_ECC_KEY_PAIR_MAX_SIZE(key_bits) \
(PSA_BITS_TO_BYTES(key_bits)) (PSA_BITS_TO_BYTES(key_bits))
/** Sufficient output buffer size for psa_export_key(). /** Sufficient output buffer size for psa_export_key() or
* psa_export_public_key().
* *
* This macro returns a compile-time constant if its arguments are * This macro returns a compile-time constant if its arguments are
* compile-time constants. * compile-time constants.
@ -623,7 +625,7 @@
* *
* \return If the parameters are valid and supported, return * \return If the parameters are valid and supported, return
* a buffer size in bytes that guarantees that * a buffer size in bytes that guarantees that
* psa_export_key() will not fail with * psa_export_key() or psa_export_public_key() will not fail with
* #PSA_ERROR_BUFFER_TOO_SMALL. * #PSA_ERROR_BUFFER_TOO_SMALL.
* If the parameters are a valid combination that is not supported * If the parameters are a valid combination that is not supported
* by the implementation, this macro shall return either a * by the implementation, this macro shall return either a