1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Document that the minimum truncated MAC length is implementation-defined

This commit is contained in:
Gilles Peskine
2018-08-21 14:55:08 +02:00
parent e1f2d7d1ac
commit 6d72ff9e79
2 changed files with 8 additions and 2 deletions

View File

@ -788,6 +788,10 @@ typedef uint32_t psa_algorithm_t;
* is true). This may be a truncated or untruncated
* MAC algorithm.
* \param mac_length Desired length of the truncated MAC in bytes.
* This must be at most the full length of the MAC
* and must be at least an implementation-specified
* minimum. The implementation-specified minimum
* shall not be zero.
*
* \return The corresponding MAC algorithm with the specified
* length.