psa_util: update documentation for mbedtls_ecdsa_raw_to_der()

Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
Valerio Setti
2024-02-07 15:03:33 +01:00
parent 1810fd9ac8
commit affba30833
+7 -6
View File
@@ -192,12 +192,13 @@ static inline mbedtls_md_type_t mbedtls_md_type_from_psa_alg(psa_algorithm_t psa
* PSA_BITS_TO_BYTES(bits) bytes. * PSA_BITS_TO_BYTES(bits) bytes.
* \param[out] der Buffer that will be filled with the converted DER * \param[out] der Buffer that will be filled with the converted DER
* output. It can overlap with raw buffer. * output. It can overlap with raw buffer.
* \param der_size Size of \p der in bytes. Given \p bits parameter: * \param der_size Size of \p der in bytes. It is enough if \p der_size
* * #MBEDTLS_ECDSA_MAX_SIG_LEN(\p bits) can be used * is at least the size of the actual output. (The size
* to determine a large enough buffer for any * of the output can vary depending on the presence of
* \p raw input vector. * leading zeros in the data.) You can use
* * The minimum size might be smaller in case * #MBEDTLS_ECDSA_MAX_SIG_LEN(\p bits) to determine a
* \p raw input vector contains padding zeros. * size that is large enough for all signatures for a
* given value of \p bits.
* \param[out] der_len On success it contains the amount of valid data * \param[out] der_len On success it contains the amount of valid data
* (in bytes) written to \p der. It's undefined * (in bytes) written to \p der. It's undefined
* in case of failure. * in case of failure.