Header file for ASN.1 Decoder for Distinguished Encoding Rules DER.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | tstrAsn1Context |
struct | tstrAsn1Element |
Macros | |
#define | ASN1_BIT_STRING 0x03 |
#define | ASN1_BOOLEAN 0x01 |
#define | ASN1_FAIL -1 |
#define | ASN1_GENERALIZED_TIME 0x18 |
#define | ASN1_INTEGER 0x02 |
#define | ASN1_INVALID 0x00 |
#define | ASN1_NULL 0x05 |
#define | ASN1_OBJECT_IDENTIFIER 0x06 |
#define | ASN1_OCTET_STRING 0x04 |
#define | ASN1_PRINTABLE_STRING 0x13 |
#define | ASN1_SEQUENCE 0x30 |
#define | ASN1_SET 0x31 |
#define | ASN1_SUCCESS 0 |
#define | ASN1_TELETEX_STRING 0x14 |
#define | ASN1_UTC_TIME 0x17 |
#define | ASN1_UTF8_DTRING 0x0C |
Functions | |
uint16 | ASN1_GetNextElement (tstrAsn1Context *pstrAsn1Ctxt, tstrAsn1Element *pstrElement) |
uint16 | ASN1_Read (tstrAsn1Context *pstrAsn1Cxt, uint32 u32ReadLength, uint8 *pu8ReadBuffer) |
#define ASN1_BIT_STRING 0x03 |
Referenced by Cert_DecodeECCPubKey(), Cert_DecodeRSAPubKey(), and Cert_DecodeSignature().
#define ASN1_BOOLEAN 0x01 |
#define ASN1_FAIL -1 |
Referenced by Cert_DecodeDistinguishedName().
#define ASN1_GENERALIZED_TIME 0x18 |
#define ASN1_INTEGER 0x02 |
Referenced by Cert_DecodeRSAPubKey(), and X509_DecodeEcdsaSignature().
#define ASN1_INVALID 0x00 |
Referenced by Cert_DecodeValidity().
#define ASN1_NULL 0x05 |
Referenced by ASN1_GetNextElement(), Cert_DecodeECCPubKey(), and Cert_DecodeRSAPubKey().
#define ASN1_OBJECT_IDENTIFIER 0x06 |
Referenced by Cert_DecodeAlgID(), Cert_DecodeDistinguishedName(), Cert_DecodeECCPubKey(), and ParsePrivKey().
#define ASN1_OCTET_STRING 0x04 |
#define ASN1_PRINTABLE_STRING 0x13 |
#define ASN1_SEQUENCE 0x30 |
#define ASN1_SET 0x31 |
Referenced by Cert_DecodeX520Name().
#define ASN1_SUCCESS 0 |
#define ASN1_TELETEX_STRING 0x14 |
#define ASN1_UTC_TIME 0x17 |
#define ASN1_UTF8_DTRING 0x0C |
uint16 ASN1_GetNextElement | ( | tstrAsn1Context * | pstrAsn1Ctxt, |
tstrAsn1Element * | pstrElement | ||
) |
References ASN1_NULL, BIT7, NULL, tstrAsn1Context::pstrTlsBuffer, TLS_BufferRead(), tstrAsn1Element::u32Length, and tstrAsn1Element::u8Tag.
Referenced by Cert_DecodeAlgID(), Cert_DecodeDistinguishedName(), Cert_DecodeECCPubKey(), Cert_DecodeRSAPubKey(), Cert_DecodeSignature(), Cert_DecodeSubjectPubKey(), Cert_DecodeTBSCertificate(), Cert_DecodeValidity(), Cert_DecodeX520Name(), ParsePrivKey(), ParseRsaPrivKey(), X509_DecodeEcdsaSignature(), and X509Cert_Decode().
uint16 ASN1_Read | ( | tstrAsn1Context * | pstrAsn1Cxt, |
uint32 | u32ReadLength, | ||
uint8 * | pu8ReadBuffer | ||
) |
References NULL, tstrAsn1Context::pstrTlsBuffer, and TLS_BufferRead().
Referenced by Cert_DecodeAlgID(), Cert_DecodeDistinguishedName(), Cert_DecodeECCPubKey(), Cert_DecodeRSAPubKey(), Cert_DecodeSignature(), Cert_DecodeTBSCertificate(), Cert_DecodeValidity(), ParsePrivKey(), ParseRsaPrivKey(), and X509_DecodeEcdsaSignature().