mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 10:35:12 +00:00
TinyCrypt PK wrap: Add short documentation for extract_ecdsa_sig_int
This commit is contained in:
parent
9653d80518
commit
d7e0cd001c
|
@ -475,6 +475,11 @@ const mbedtls_pk_info_t mbedtls_eckeydh_info = {
|
||||||
#endif /* MBEDTLS_ECP_C */
|
#endif /* MBEDTLS_ECP_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_TINYCRYPT)
|
#if defined(MBEDTLS_USE_TINYCRYPT)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* An ASN.1 encoded signature is a sequence of two ASN.1 integers. Parse one of
|
||||||
|
* those integers and convert it to the fixed-length encoding.
|
||||||
|
*/
|
||||||
static int extract_ecdsa_sig_int( unsigned char **from, const unsigned char *end,
|
static int extract_ecdsa_sig_int( unsigned char **from, const unsigned char *end,
|
||||||
unsigned char *to, size_t to_len )
|
unsigned char *to, size_t to_len )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue