PcapPlusPlus  Next
pcpp::RSAPublicKey Class Reference

Represents an RSA public key in PKCS#1 format This class provides methods to decode and access the components of an RSA public key. More...

#include <CryptoKeyDecoder.h>

Inheritance diagram for pcpp::RSAPublicKey:
pcpp::internal::CryptographicKey< RSAPublicKey > pcpp::internal::CryptoDataReader< RSAPublicKey >

Public Member Functions

std::string getModulus () const
 
uint64_t getPublicExponent () const
 
- Public Member Functions inherited from pcpp::internal::CryptographicKey< RSAPublicKey >
std::vector< uint8_t > toDER () const
 
std::string toPEM () const
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::internal::CryptoDataReader< RSAPublicKey >
static std::unique_ptr< RSAPublicKeyfromDER (uint8_t *derData, size_t derDataLen, bool ownDerData=false)
 
static std::unique_ptr< RSAPublicKeyfromDER (const std::string &derData)
 
static std::unique_ptr< RSAPublicKeyfromDERFile (const std::string &derFileName)
 
static std::unique_ptr< RSAPublicKeyfromPEM (const std::string &pemData)
 
static std::unique_ptr< RSAPublicKeyfromPEMFile (const std::string &pemFileName)
 

Detailed Description

Represents an RSA public key in PKCS#1 format This class provides methods to decode and access the components of an RSA public key.

Member Function Documentation

◆ getModulus()

std::string pcpp::RSAPublicKey::getModulus ( ) const
Returns
The modulus of the RSA public key

◆ getPublicExponent()

uint64_t pcpp::RSAPublicKey::getPublicExponent ( ) const
Returns
The public exponent of the RSA public key