std1.0.0-beta-7 SafeC docs

Module crypto::asn1

#include <std/crypto/asn1.h> source

a minimal DER (ASN.1) reader for std's crypto.

std-internal ('' names): the TLV walking x509.h's certificate parser, rsa.h's key parsing and ec.h's signature parsing share. An Asn1 is a view of bytes owned elsewhere; reading a TLV advances it. Definite lengths only (DER), at most four length bytes.

Macros

ASN1_TAG_BOOLEAN
ASN1_TAG_INTEGER
ASN1_TAG_BIT_STRING
ASN1_TAG_OCTET_STRING
ASN1_TAG_NULL
ASN1_TAG_OID
ASN1_TAG_UTF8
ASN1_TAG_PRINTABLE
ASN1_TAG_T61
ASN1_TAG_IA5
ASN1_TAG_UTCTIME
ASN1_TAG_GENTIME
ASN1_TAG_BMP
ASN1_TAG_SEQUENCE
ASN1_TAG_SET