1 // SPDX-License-Identifier: BSD-2-Clause
2 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 *
4 * LibTomCrypt is a library that provides various cryptographic
5 * algorithms in a highly modular and flexible manner.
6 *
7 * The library is free for all purposes without any express
8 * guarantee it works.
9 */
10 #include "tomcrypt_private.h"
11
12
13 /**
14 @file der_decode_sequence_ex.c
15 ASN.1 DER, decode a SEQUENCE, Tom St Denis
16 */
17
18 #ifdef LTC_DER
19
20 /**
21 Decode a SEQUENCE
22 @param in The DER encoded input
23 @param inlen The size of the input
24 @param list The list of items to decode
25 @param outlen The number of items in the list
26 @param flags c.f. enum ltc_der_seq
27 @return CRYPT_OK on success
28 */
der_decode_sequence_ex(const unsigned char * in,unsigned long inlen,ltc_asn1_list * list,unsigned long outlen,unsigned int flags)29 int der_decode_sequence_ex(const unsigned char *in, unsigned long inlen,
30 ltc_asn1_list *list, unsigned long outlen, unsigned int flags)
31 {
32 return der_decode_custom_type_ex(in, inlen, NULL, list, outlen, flags);
33 }
34
35 #endif
36
37 /* ref: $Format:%D$ */
38 /* git commit: $Format:%H$ */
39 /* commit time: $Format:%ai$ */
40