| 1 |
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */ |
| 2 |
/* SPDX-License-Identifier: Unlicense */ |
| 3 |
#include "tomcrypt_private.h" |
| 4 |
|
| 5 |
|
| 6 |
/** |
| 7 |
@file der_decode_sequence_ex.c |
| 8 |
ASN.1 DER, decode a SEQUENCE, Tom St Denis |
| 9 |
*/ |
| 10 |
|
| 11 |
#ifdef LTC_DER |
| 12 |
|
| 13 |
/** |
| 14 |
Decode a SEQUENCE |
| 15 |
@param in The DER encoded input |
| 16 |
@param inlen The size of the input |
| 17 |
@param list The list of items to decode |
| 18 |
@param outlen The number of items in the list |
| 19 |
@param flags c.f. enum ltc_der_seq |
| 20 |
@return CRYPT_OK on success |
| 21 |
*/ |
| 22 |
int der_decode_sequence_ex(const unsigned char *in, unsigned long inlen, |
| 23 |
ltc_asn1_list *list, unsigned long outlen, unsigned int flags) |
| 24 |
{ |
| 25 |
return der_decode_custom_type_ex(in, inlen, NULL, list, outlen, flags); |
| 26 |
} |
| 27 |
|
| 28 |
#endif |