x509_csr_parse.c
X.509 certificate parsing.
error_t x509ParseSubjectPublicKeyInfo(const uint8_t *data, size_t length, size_t *totalLength, X509SubjectPublicKeyInfo *publicKeyInfo)
Parse SubjectPublicKeyInfo structure.
Definition: x509_key_parse.c:56
OID (Object Identifier)
error_t x509ParseExtendedKeyUsage(bool_t critical, const uint8_t *data, size_t length, X509ExtendedKeyUsage *extKeyUsage)
Parse ExtendedKeyUsage extension.
Definition: x509_cert_ext_parse.c:699
const uint8_t X509_EXTENDED_KEY_USAGE_OID[3]
Definition: x509_common.c:115
const uint8_t X509_CHALLENGE_PASSWORD_OID[9]
Definition: x509_common.c:164
error_t x509ParseCsr(const uint8_t *data, size_t length, X509CsrInfo *csrInfo)
Parse a CSR (Certificate Signing Request)
Definition: x509_csr_parse.c:57
error_t x509ParseCertRequestInfo(const uint8_t *data, size_t length, size_t *totalLength, X509CertRequestInfo *certReqInfo)
Parse CertificationRequestInfo structure.
Definition: x509_csr_parse.c:133
error_t asn1ReadTag(const uint8_t *data, size_t length, Asn1Tag *tag)
Read an ASN.1 tag from the input stream.
Definition: asn1.c:52
X.509 extension parsing.
int_t oidComp(const uint8_t *oid1, size_t oidLen1, const uint8_t *oid2, size_t oidLen2)
Compare object identifiers.
Definition: oid.c:103
error_t asn1ReadOid(const uint8_t *data, size_t length, Asn1Tag *tag)
Read an object identifier from the input stream.
Definition: asn1.c:218
error_t x509ParseAttribute(const uint8_t *data, size_t length, size_t *totalLength, X509Attribute *attribute)
Parse CSR attribute.
Definition: x509_csr_parse.c:305
error_t x509ParseNsCertType(bool_t critical, const uint8_t *data, size_t length, X509NsCertType *nsCertType)
Parse NetscapeCertType extension.
Definition: x509_cert_ext_parse.c:1478
X509SubjectPublicKeyInfo subjectPublicKeyInfo
Definition: x509_common.h:1263
error_t x509CheckDuplicateExtension(const uint8_t *oid, size_t oidLen, const uint8_t *data, size_t length)
Check whether the specified extension is a duplicate.
Definition: x509_cert_ext_parse.c:1555
error_t x509ParseName(const uint8_t *data, size_t length, size_t *totalLength, X509Name *name)
Parse Name structure.
Definition: x509_cert_parse.c:535
error_t x509ParseExtension(const uint8_t *data, size_t length, size_t *totalLength, X509Extension *extension)
Parse X.509 certificate extension.
Definition: x509_cert_ext_parse.c:267
error_t x509ParseBasicConstraints(bool_t critical, const uint8_t *data, size_t length, X509BasicConstraints *basicConstraints)
Parse BasicConstraints extension.
Definition: x509_cert_ext_parse.c:354
error_t asn1ReadInt32(const uint8_t *data, size_t length, Asn1Tag *tag, int32_t *value)
Read a 32-bit integer from the input stream.
Definition: asn1.c:285
General definitions for cryptographic algorithms.
error_t x509ParseAuthKeyId(bool_t critical, const uint8_t *data, size_t length, X509AuthKeyId *authKeyId)
Parse AuthorityKeyIdentifier extension.
Definition: x509_cert_ext_parse.c:939
error_t x509ParseChallengePassword(const uint8_t *data, size_t length, X509ChallengePassword *challengePwd)
Parse ChallengePassword attribute.
Definition: x509_csr_parse.c:367
error_t x509ParseSignatureValue(const uint8_t *data, size_t length, size_t *totalLength, X509OctetString *signature)
Parse SignatureValue field.
Definition: x509_sign_parse.c:119
error_t x509ParseSubjectAltName(bool_t critical, const uint8_t *data, size_t length, X509SubjectAltName *subjectAltName)
Parse SubjectAltName extension.
Definition: x509_cert_ext_parse.c:862
error_t x509ParseSignatureAlgo(const uint8_t *data, size_t length, size_t *totalLength, X509SignAlgoId *signatureAlgo)
Parse SignatureAlgorithm structure.
Definition: x509_sign_parse.c:53
error_t x509ParseNameConstraints(bool_t critical, const uint8_t *data, size_t length, X509NameConstraints *nameConstraints)
Parse NameConstraints extension.
Definition: x509_cert_ext_parse.c:445
error_t x509ParseKeyUsage(bool_t critical, const uint8_t *data, size_t length, X509KeyUsage *keyUsage)
Parse KeyUsage extension.
Definition: x509_cert_ext_parse.c:630
Parsing of ASN.1 encoded keys.
error_t asn1ReadSequence(const uint8_t *data, size_t length, Asn1Tag *tag)
Read an ASN.1 sequence from the input stream.
Definition: asn1.c:163
CSR (Certificate Signing Request) parsing.
error_t x509ParseExtensionRequest(const uint8_t *data, size_t length, X509Extensions *extensionReq)
Parse ExtensionRequest attribute.
Definition: x509_csr_parse.c:399
error_t asn1CheckTag(const Asn1Tag *tag, bool_t constructed, uint_t objClass, uint_t objType)
Enforce the type of a specified tag.
Definition: asn1.c:653
Debugging facilities.
error_t x509ParseAttributes(const uint8_t *data, size_t length, size_t *totalLength, X509Attributes *attributes)
Parse CSR attributes.
Definition: x509_csr_parse.c:216
ASN.1 (Abstract Syntax Notation One)
error_t x509ParseSubjectKeyId(bool_t critical, const uint8_t *data, size_t length, X509SubjectKeyId *subjectKeyId)
Parse SubjectKeyIdentifier extension.
Definition: x509_cert_ext_parse.c:902