PcapPlusPlus
Next
|
#include <X509Decoder.h>
Public Member Functions | |
X509TBSCertificate | getTbsCertificate () const |
X509AlgorithmIdentifier | getSignatureAlgorithm () const |
X509Key | getSignature () const |
Asn1SequenceRecord * | getAsn1Root () const |
std::vector< uint8_t > | encode () |
Static Public Member Functions | |
static std::unique_ptr< X509Certificate > | decode (const uint8_t *data, size_t dataLen) |
Internal class for handling X.509 certificate parsing and encoding
|
static |
Decodes an X.509 certificate from binary data
[in] | data | Pointer to the binary certificate data |
[in] | dataLen | Length of the binary data |
std::vector<uint8_t> pcpp::X509Internal::X509Certificate::encode | ( | ) |
Encodes the certificate to binary DER format
Asn1SequenceRecord* pcpp::X509Internal::X509Certificate::getAsn1Root | ( | ) | const |
Gets the root ASN.1 record of the certificate
X509Key pcpp::X509Internal::X509Certificate::getSignature | ( | ) | const |
Gets the signature value from the certificate
X509AlgorithmIdentifier pcpp::X509Internal::X509Certificate::getSignatureAlgorithm | ( | ) | const |
Gets the signature algorithm used to sign the certificate
X509TBSCertificate pcpp::X509Internal::X509Certificate::getTbsCertificate | ( | ) | const |
Gets the TBS (To Be Signed) portion of the certificate