Go to the documentation of this file.
16#ifndef LIEF_PE_SIGNATURE_RSA_INFO_H
17#define LIEF_PE_SIGNATURE_RSA_INFO_H
33 using rsa_ctx_handle =
void*;
34 using bignum_wrapper_t = std::vector<uint8_t>;
46 bignum_wrapper_t
N()
const;
49 bignum_wrapper_t
E()
const;
52 bignum_wrapper_t
D()
const;
55 bignum_wrapper_t
P()
const;
58 bignum_wrapper_t
Q()
const;
66 operator bool()
const;
74 RsaInfo(
const rsa_ctx_handle ctx);
Object that wraps a RSA key.
Definition RsaInfo.hpp:29
void swap(RsaInfo &other)
bignum_wrapper_t P() const
First prime factor.
bignum_wrapper_t N() const
RSA public modulus.
RsaInfo & operator=(RsaInfo other)
bignum_wrapper_t Q() const
Second prime factor.
bool has_public_key() const
True if it embeds a public key.
bool has_private_key() const
True if it embeds a private key.
friend std::ostream & operator<<(std::ostream &os, const RsaInfo &info)
bignum_wrapper_t D() const
RSA private exponent.
bignum_wrapper_t E() const
RSA public exponent.
size_t key_size() const
Size of the public modulus (in bits)
RsaInfo(const RsaInfo &other)
Interface over a x509 certificate.
Definition x509.hpp:43
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41