|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
#include <dx_license.h>
Public Member Functions | |
| 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 | |
Public Attributes | |
| der::tlv | algorithm{} |
| der::tlv | extensions{} |
| der::tlv | issuer{} |
| der::tlv | key{} |
| int64_t | not_after{} |
| int64_t | not_before{} |
| der::tlv | signature{} |
| tbs: the whole TBSCertificate element (its DER is what is signed); key: subjectPublicKeyInfo | |
| der::tlv | subject{} |
| der::tlv | tbs{} |
|
inlinenoexcept |
an extension's value (the OCTET STRING's content: the value's own DER) by its dotted object identifier; false when absent
|
inlinenoexcept |
the subject's common name starts with prefix (Name ::= SEQUENCE OF SET OF SEQUENCE {type OID, value})
|
inlinenoexcept |
false when the bytes are no certificate
|
inlinenoexcept |
the subject's RSA public key (SubjectPublicKeyInfo ::= SEQUENCE {algorithm, subjectPublicKey BIT STRING {RSAPublicKey ::= SEQUENCE {modulus, publicExponent}}}); false for any other key
|
inlinenoexcept |
the certificate is the issuer's: its issuer name is the issuer's subject and its signature (sha256WithRSAEncryption) verifies with the issuer's key
| der::tlv dx::x509::certificate::algorithm{} |
| der::tlv dx::x509::certificate::extensions{} |
| der::tlv dx::x509::certificate::issuer{} |
| der::tlv dx::x509::certificate::key{} |
| int64_t dx::x509::certificate::not_after{} |
seconds since 1970-01-01 UTC
| int64_t dx::x509::certificate::not_before{} |
| der::tlv dx::x509::certificate::signature{} |
tbs: the whole TBSCertificate element (its DER is what is signed); key: subjectPublicKeyInfo
| der::tlv dx::x509::certificate::subject{} |
| der::tlv dx::x509::certificate::tbs{} |