LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::PE::RsaInfo Class Reference

Object that wraps a RSA key. More...

#include <RsaInfo.hpp>

Public Types

using rsa_ctx_handle = void*
 
using bignum_wrapper_t = std::vector<uint8_t>
 Container for BigInt.
 

Public Member Functions

 RsaInfo (const RsaInfo &other)
 
 RsaInfo (RsaInfo &&other)
 
RsaInfooperator= (RsaInfo other)
 
bool has_public_key () const
 True if it embeds a public key.
 
bool has_private_key () const
 True if it embeds a private key.
 
bignum_wrapper_t N () const
 RSA public modulus.
 
bignum_wrapper_t E () const
 RSA public exponent.
 
bignum_wrapper_t D () const
 RSA private exponent.
 
bignum_wrapper_t P () const
 First prime factor.
 
bignum_wrapper_t Q () const
 Second prime factor.
 
size_t key_size () const
 Size of the public modulus (in bits)
 
void swap (RsaInfo &other)
 
 operator bool () const
 
 ~RsaInfo ()
 

Detailed Description

Object that wraps a RSA key.

Member Typedef Documentation

◆ bignum_wrapper_t

using LIEF::PE::RsaInfo::bignum_wrapper_t = std::vector<uint8_t>

Container for BigInt.

◆ rsa_ctx_handle

Constructor & Destructor Documentation

◆ RsaInfo() [1/2]

LIEF::PE::RsaInfo::RsaInfo ( const RsaInfo & other)

◆ RsaInfo() [2/2]

LIEF::PE::RsaInfo::RsaInfo ( RsaInfo && other)

◆ ~RsaInfo()

LIEF::PE::RsaInfo::~RsaInfo ( )

Member Function Documentation

◆ D()

bignum_wrapper_t LIEF::PE::RsaInfo::D ( ) const

RSA private exponent.

◆ E()

bignum_wrapper_t LIEF::PE::RsaInfo::E ( ) const

RSA public exponent.

◆ has_private_key()

bool LIEF::PE::RsaInfo::has_private_key ( ) const

True if it embeds a private key.

◆ has_public_key()

bool LIEF::PE::RsaInfo::has_public_key ( ) const

True if it embeds a public key.

◆ key_size()

size_t LIEF::PE::RsaInfo::key_size ( ) const

Size of the public modulus (in bits)

◆ N()

bignum_wrapper_t LIEF::PE::RsaInfo::N ( ) const

RSA public modulus.

◆ operator bool()

LIEF::PE::RsaInfo::operator bool ( ) const

◆ operator=()

RsaInfo & LIEF::PE::RsaInfo::operator= ( RsaInfo other)

◆ P()

bignum_wrapper_t LIEF::PE::RsaInfo::P ( ) const

First prime factor.

◆ Q()

bignum_wrapper_t LIEF::PE::RsaInfo::Q ( ) const

Second prime factor.

◆ swap()

void LIEF::PE::RsaInfo::swap ( RsaInfo & other)

The documentation for this class was generated from the following file: