Go to the documentation of this file.
27 #ifndef POLARSSL_ASN1_H
28 #define POLARSSL_ASN1_H
32 #if defined(POLARSSL_BIGNUM_C)
50 #define POLARSSL_ERR_ASN1_OUT_OF_DATA -0x0014
51 #define POLARSSL_ERR_ASN1_UNEXPECTED_TAG -0x0016
52 #define POLARSSL_ERR_ASN1_INVALID_LENGTH -0x0018
53 #define POLARSSL_ERR_ASN1_LENGTH_MISMATCH -0x001A
54 #define POLARSSL_ERR_ASN1_INVALID_DATA -0x001C
55 #define POLARSSL_ERR_ASN1_MALLOC_FAILED -0x001E
69 #define ASN1_BOOLEAN 0x01
70 #define ASN1_INTEGER 0x02
71 #define ASN1_BIT_STRING 0x03
72 #define ASN1_OCTET_STRING 0x04
73 #define ASN1_NULL 0x05
75 #define ASN1_UTF8_STRING 0x0C
76 #define ASN1_SEQUENCE 0x10
78 #define ASN1_PRINTABLE_STRING 0x13
79 #define ASN1_T61_STRING 0x14
80 #define ASN1_IA5_STRING 0x16
81 #define ASN1_UTC_TIME 0x17
82 #define ASN1_GENERALIZED_TIME 0x18
83 #define ASN1_UNIVERSAL_STRING 0x1C
84 #define ASN1_BMP_STRING 0x1E
85 #define ASN1_PRIMITIVE 0x00
86 #define ASN1_CONSTRUCTED 0x20
87 #define ASN1_CONTEXT_SPECIFIC 0x80
92 #define OID_SIZE(x) (sizeof(x) - 1)
148 const unsigned char *end,
164 const unsigned char *end,
165 size_t *len,
int tag );
178 const unsigned char *end,
192 const unsigned char *end,
220 const unsigned char *end,
224 #if defined(POLARSSL_BIGNUM_C)
236 const unsigned char *end,