#include <dx_license.h>
|
| bool | extension (const char *dotted, const uint8_t *&value, size_t &size) const noexcept |
| | an extension's value (the OCTET STRING's content: the value's own DER) by its dotted object identifier; false when absent
|
| bool | named (const char *prefix) const noexcept |
| | the subject's common name starts with prefix (Name ::= SEQUENCE OF SET OF SEQUENCE {type OID, value})
|
| bool | parse (const uint8_t *bytes, size_t size) noexcept |
| | false when the bytes are no certificate
|
| bool | rsa (crypto::rsa &key) const noexcept |
| | the subject's RSA public key (SubjectPublicKeyInfo ::= SEQUENCE {algorithm, subjectPublicKey BIT STRING {RSAPublicKey ::= SEQUENCE {modulus, publicExponent}}}); false for any other key
|
| bool | signed_by (const certificate &issuer, crypto::rsa &key) const noexcept |
| | the certificate is the issuer's: its issuer name is the issuer's subject and its signature (sha256WithRSAEncryption) verifies with the issuer's key
|
◆ extension()
| bool dx::x509::certificate::extension |
( |
const char * | dotted, |
|
|
const uint8_t *& | value, |
|
|
size_t & | size ) const |
|
inlinenoexcept |
an extension's value (the OCTET STRING's content: the value's own DER) by its dotted object identifier; false when absent
◆ named()
| bool dx::x509::certificate::named |
( |
const char * | prefix | ) |
const |
|
inlinenoexcept |
the subject's common name starts with prefix (Name ::= SEQUENCE OF SET OF SEQUENCE {type OID, value})
◆ parse()
| bool dx::x509::certificate::parse |
( |
const uint8_t * | bytes, |
|
|
size_t | size ) |
|
inlinenoexcept |
false when the bytes are no certificate
◆ rsa()
| bool dx::x509::certificate::rsa |
( |
crypto::rsa & | key | ) |
const |
|
inlinenoexcept |
the subject's RSA public key (SubjectPublicKeyInfo ::= SEQUENCE {algorithm, subjectPublicKey BIT STRING {RSAPublicKey ::= SEQUENCE {modulus, publicExponent}}}); false for any other key
◆ signed_by()
the certificate is the issuer's: its issuer name is the issuer's subject and its signature (sha256WithRSAEncryption) verifies with the issuer's key
◆ algorithm
| der::tlv dx::x509::certificate::algorithm {} |
◆ extensions
| der::tlv dx::x509::certificate::extensions {} |
◆ issuer
| der::tlv dx::x509::certificate::issuer {} |
◆ key
◆ not_after
| int64_t dx::x509::certificate::not_after {} |
seconds since 1970-01-01 UTC
◆ not_before
| int64_t dx::x509::certificate::not_before {} |
◆ signature
| der::tlv dx::x509::certificate::signature {} |
tbs: the whole TBSCertificate element (its DER is what is signed); key: subjectPublicKeyInfo
◆ subject
| der::tlv dx::x509::certificate::subject {} |
◆ tbs
The documentation for this struct was generated from the following file: