16#ifndef LIEF_PE_SIGNATURE_RSA_INFO_H
17#define LIEF_PE_SIGNATURE_RSA_INFO_H
21#include "LIEF/types.hpp"
22#include "LIEF/visibility.h"
33 using rsa_ctx_handle =
void*;
66 operator bool()
const;
68 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const RsaInfo& info);
74 RsaInfo(
const rsa_ctx_handle ctx);
Object that wraps a RSA key.
Definition RsaInfo.hpp:29
bignum_wrapper_t P() const
First prime factor.
bignum_wrapper_t N() const
RSA public modulus.
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.
bignum_wrapper_t D() const
RSA private exponent.
bignum_wrapper_t E() const
RSA public exponent.
std::vector< uint8_t > bignum_wrapper_t
Container for BigInt.
Definition RsaInfo.hpp:34
size_t key_size() const
Size of the public modulus (in bits)
Interface over a x509 certificate.
Definition x509.hpp:43
LIEF namespace.
Definition Abstract/Binary.hpp:32