psa_util: improve description for ECDSA conversion functions

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2024-01-09 14:20:23 +01:00
parent aed21640bd
commit 84890c9be2
2 changed files with 46 additions and 11 deletions

View file

@ -177,7 +177,8 @@ static inline mbedtls_md_type_t mbedtls_md_type_from_psa_alg(psa_algorithm_t psa
}
#if defined(MBEDTLS_ASN1_WRITE_C)
/** Convert an ECDSA signature from raw format to DER ASN.1 one.
/** Convert an ECDSA signature from raw format (used by PSA APIs) to DER ASN.1
* format (used by legacy crypto APIs).
*
* \param raw Buffer that contains the signature in raw format.
* \param raw_len Length of raw buffer in bytes
@ -195,7 +196,8 @@ int mbedtls_ecdsa_raw_to_der(const unsigned char *raw, size_t raw_len,
#endif /* MBEDTLS_ASN1_WRITE_C */
#if defined(MBEDTLS_ASN1_PARSE_C)
/** Convert an ECDSA signature from DER ASN.1 format to raw.
/** Convert an ECDSA signature from DER ASN.1 format (used by legacy crypto
* APIs) to raw format (used by PSA APIs).
*
* \param der Buffer that contains the signature in DER format.
* \param der_len Size of the der buffer in bytes.