PcapPlusPlus  Next
pcpp::internal::CryptographicKey< CryptoKey > Class Template Reference

#include <CryptoKeyDecoder.h>

Public Member Functions

std::vector< uint8_t > toDER () const
 
std::string toPEM () const
 

Detailed Description

template<typename CryptoKey>
class pcpp::internal::CryptographicKey< CryptoKey >

A base class for different types of private and public cryptographic keys

Member Function Documentation

◆ toDER()

template<typename CryptoKey >
std::vector<uint8_t> pcpp::internal::CryptographicKey< CryptoKey >::toDER ( ) const
inline

Converts the cryptographic key to DER-encoded format

Returns
A byte vector containing the DER-encoded data

◆ toPEM()

template<typename CryptoKey >
std::string pcpp::internal::CryptographicKey< CryptoKey >::toPEM ( ) const
inline

Converts the cryptographic key to PEM-encoded format

Returns
A string containing the PEM-encoded data