11 #include <botan/if_algo.h>
12 #include <botan/pk_ops.h>
13 #include <botan/reducer.h>
14 #include <botan/blinding.h>
83 size_t bits,
size_t exp = 65537);
121 n(rsa.get_n()), powermod_e_n(rsa.get_e(), rsa.get_n())
145 return powermod_e_n(m);
149 Fixed_Exponent_Power_Mod powermod_e_n;
size_t max_input_bits() const
SecureVector< byte > encrypt(const byte msg[], size_t msg_len, RandomNumberGenerator &)
std::string algo_name() const
SecureVector< byte > verify_mr(const byte msg[], size_t msg_len)
RSA_PrivateKey(RandomNumberGenerator &rng, const BigInt &p, const BigInt &q, const BigInt &e, const BigInt &d=0, const BigInt &n=0)
std::invalid_argument Invalid_Argument
static SecureVector< byte > encode(const BigInt &n, Base base=Binary)
RSA_PublicKey(const BigInt &n, const BigInt &e)
RandomNumberGenerator * rng
bool with_recovery() const
size_t max_input_bits() const
RSA_PublicKey(const AlgorithmIdentifier &alg_id, const MemoryRegion< byte > &key_bits)
RSA_Public_Operation(const RSA_PublicKey &rsa)
RSA_PrivateKey(const AlgorithmIdentifier &alg_id, const MemoryRegion< byte > &key_bits, RandomNumberGenerator &rng)
static SecureVector< byte > encode_1363(const BigInt &n, size_t bytes)