mbedtls_ecdsa_der_to_raw() function
Convert an ECDSA signature from DER ASN.1 format to raw format.
Arguments
bits
Size of each coordinate in bits.
der
Buffer that contains the signature in DER format.
der_len
Size of \p der in bytes.
raw
Buffer that will be filled with the converted raw signature. It can overlap with der buffer.
raw_size
Size of \p raw in bytes. Must be at least 2 * PSA_BITS_TO_BYTES(bits) bytes.
raw_len
On success it is updated with the amount of valid data (in bytes) written to \p raw. It's undefined in case of failure.
mbedtls_ecdsa_der_to_raw() calls 2 functions:
![]()
mbedtls_ecdsa_der_to_raw()
mbedtls_ecdsa_der_to_raw():
![]()
mbedtls_ecdsa_der_to_raw()