36 OID GetAlgorithmID()
const;
42 bool GetVoidValue(
const char *
name,
const std::type_info &valueType,
void *pValue)
const;
90 {m_n = n; m_e =
e; m_d =
d; m_p = p; m_q = q; m_dp = dp; m_dq = dq; m_u = u;}
120 bool GetVoidValue(
const char *
name,
const std::type_info &valueType,
void *pValue)
const;
177 template <
class STANDARD>
189 template <
class STANDARD,
class H>
227 #ifdef CRYPTOPP_DOXYGEN_PROCESSING 268 #endif // CRYPTOPP_DOXYGEN_PROCESSING virtual void AssignFrom(const NameValuePairs &source)=0
Assign values to this object.
virtual void BERDecodePrivateKey(BufferedTransformation &bt, bool parametersPresent, size_t size)=0
decode privateKey part of privateKeyInfo, without the OCTET STRING header
const Integer & GetMultiplicativeInverseOfPrime2ModPrime1() const
void DEREncode(BufferedTransformation &bt) const
Encode this object into a BufferedTransformation.
void Load(BufferedTransformation &bt)
Loads a key from a BufferedTransformation.
Trapdoor Function (TF) encryption scheme.
#define CRYPTOPP_STATIC_CONSTEXPR
Classes and functions for various padding schemes used in public key algorithms.
const Integer & GetPrivateExponent() const
Encodes and decodesprivateKeyInfo.
#define NAMESPACE_BEGIN(x)
Abstract base classes that provide a uniform interface to this library.
RSASS< PKCS1v15, Weak1::MD5 >::Verifier RSASSA_PKCS1v15_MD5_Verifier
InvertibleRSAFunction_ISO PrivateKey
void DEREncode(BufferedTransformation &bt) const
Encode this object into a BufferedTransformation.
Interface for random number generators.
OID GetAlgorithmID() const
Retrieves the OID of the algorithm.
virtual void DEREncodePrivateKey(BufferedTransformation &bt) const =0
encode privateKey part of privateKeyInfo, without the OCTET STRING header
void BERDecode(BufferedTransformation &bt)
Decode this object from a BufferedTransformation.
virtual CRYPTOPP_DLL bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const =0
Get a named value.
void SetPrime2(const Integer &q)
Applies the inverse of the trapdoor function.
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API StaticAlgorithmName()
Classes for PKCS padding schemes.
void SetModPrime1PrivateExponent(const Integer &dp)
virtual bool Validate(RandomNumberGenerator &rng, unsigned int level) const =0
Check this object for errors.
const Integer & GetModulus() const
void Save(BufferedTransformation &bt) const
Saves a key to a BufferedTransformation.
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API StaticAlgorithmName()
bool Validate(int, bool, const char *)
void SetPublicExponent(const Integer &e)
Multiple precision integer with arithmetic operations.
const Integer & GetPrime1() const
RSA trapdoor function using the private key.
void Initialize(const Integer &n, const Integer &e)
Initialize a RSA public key.
Applies the trapdoor function.
RSASS< PKCS1v15, Weak1::MD2 >::Signer RSASSA_PKCS1v15_MD2_Signer
const Integer & GetPublicExponent() const
void BERDecode(BufferedTransformation &bt)
Decode this object from a BufferedTransformation.
RSASS< PKCS1v15, SHA >::Signer RSASSA_PKCS1v15_SHA_Signer
virtual Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const =0
Calculates the inverse of an element.
void SetPrime1(const Integer &p)
Classes and functions for working with ANS.1 objects.
Integer PreimageBound() const
Returns the maximum size of a message before the trapdoor function is applied.
RSASS< PKCS1v15, SHA >::Verifier RSASSA_PKCS1v15_SHA_Verifier
void SetModulus(const Integer &n)
void Initialize(const Integer &n, const Integer &e, const Integer &d, const Integer &p, const Integer &q, const Integer &dp, const Integer &dq, const Integer &u)
Initialize a RSA private key.
DOCUMENTED_TYPEDEF(RSAES< PKCS1v15 >::Decryptor, RSAES_PKCS1v15_Decryptor)
RSAES<PKCS1v15>::Decryptor typedef
const Integer & GetModPrime1PrivateExponent() const
uint8_t const size_t const size
void SetMultiplicativeInverseOfPrime2ModPrime1(const Integer &u)
virtual void GenerateRandom(RandomNumberGenerator &rng, const NameValuePairs ¶ms=g_nullNameValuePairs)
Generate a random key or crypto parameters.
Integer ImageBound() const
Returns the maximum size of a message after the trapdoor function is applied.
const Integer & GetModPrime2PrivateExponent() const
OID GetAlgorithmID() const
Retrieves the OID of the algorithm.
RSA encryption algorithm.
Multiple precision integer with arithmetic operations.
RSA trapdoor function using the public key.
Integer ApplyFunction(const Integer &x) const
Applies the trapdoor.
RSAFunction_ISO PublicKey
Encodes and decodes subjectPublicKeyInfo.
InvertibleRSAFunction ThisClass
Integer PreimageBound() const
Returns the maximum size of a message before the trapdoor function is applied.
InvertibleRSAFunction PrivateKey
RSASS< PKCS1v15, Weak1::MD2 >::Verifier RSASSA_PKCS1v15_MD2_Verifier
const Integer & GetPrime2() const
void SetModPrime2PrivateExponent(const Integer &dq)
RSASS< PKCS1v15, Weak1::MD5 >::Signer RSASSA_PKCS1v15_MD5_Signer
void SetPrivateExponent(const Integer &d)
Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const
Calculates the inverse of an element.
Integer PreimageBound() const
Returns the maximum size of a message before the trapdoor function is applied.
RSA trapdoor function using the public key.
Interface for retrieving values given their names.
Template implementing constructors for public key algorithm classes.
Trapdoor Function (TF) Signature Scheme.
RSA trapdoor function using the private key.