![]() |
EVE 1.0
|
![]() |
Data Structures | |
struct | asn1_dec_state_t |
struct | asn1_result_t |
Macros | |
#define | ASN1_SEQUENCE (0x30) |
#define | ASN1_INTEGER (0x02) |
#define | ASN1_LENGTH(x) ((uint8_t)((x) >> 0)), ((uint8_t)((x) >> 8)), ((uint8_t)((x) >> 16)), ((uint8_t)((x) >> 24)) |
Enumerations |
Functions | |
void | asn1_dec_init (struct asn1_dec_state_t *s) |
enum asn1_rc_t | asn1_dec (struct asn1_dec_state_t *s, const uint8_t *tplt, struct asn1_result_t *result, uint8_t ch) |
EVE ASN.1 decoder
#define ASN1_SEQUENCE (0x30) |
#define ASN1_INTEGER (0x02) |
#define ASN1_LENGTH | ( | x | ) | ((uint8_t)((x) >> 0)), ((uint8_t)((x) >> 8)), ((uint8_t)((x) >> 16)), ((uint8_t)((x) >> 24)) |
enum asn1_rc_t |
enum asn1_state_t |
void asn1_dec_init | ( | struct asn1_dec_state_t * | s | ) |
Initializes the ASN.1 decoder structure.
s | pointer to the ASN.1 decoder structure |
enum asn1_rc_t asn1_dec | ( | struct asn1_dec_state_t * | s, |
const uint8_t * | tplt, | ||
struct asn1_result_t * | result, | ||
uint8_t | ch | ||
) |
Feeds the encoder with a single character.
s | pointer to the base64 encoder structure |
tplt | parsing template, zero-terminated string of ASN1_XXX macroes |
result | parsing result desctiptors, an array of asn1_result_t elements |
ch | the character to be fed to the encoder |