InvertibleRSAFunction Class Reference

_ More...

#include <rsa.h>

Inheritance diagram for InvertibleRSAFunction:

RSAFunction TrapdoorFunctionInverse PKCS8PrivateKey TrapdoorFunction X509PublicKey RandomizedTrapdoorFunctionInverse ASN1CryptoMaterial< PrivateKey > RandomizedTrapdoorFunction ASN1CryptoMaterial< PublicKey > ASN1Object TrapdoorFunctionBounds ASN1Object

List of all members.

Public Member Functions

void Initialize (RandomNumberGenerator &rng, unsigned int modulusBits, const Integer &e=17)
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)
void Initialize (const Integer &n, const Integer &e, const Integer &d)
 factor n given private exponent
void BERDecode (BufferedTransformation &bt)
 decode this object from a BufferedTransformation, using BER (Basic Encoding Rules)
void DEREncode (BufferedTransformation &bt) const
 encode this object into a BufferedTransformation, using DER (Distinguished Encoding Rules)
void Load (BufferedTransformation &bt)
void Save (BufferedTransformation &bt) const
OID GetAlgorithmID () const
void BERDecodePrivateKey (BufferedTransformation &bt, bool parametersPresent, size_t size)
 decode privateKey part of privateKeyInfo, without the OCTET STRING header
void DEREncodePrivateKey (BufferedTransformation &bt) const
 encode privateKey part of privateKeyInfo, without the OCTET STRING header
Integer CalculateInverse (RandomNumberGenerator &rng, const Integer &x) const
bool Validate (RandomNumberGenerator &rng, unsigned int level) const
void GenerateRandom (RandomNumberGenerator &rng, const NameValuePairs &alg)
bool GetVoidValue (const char *name, const std::type_info &valueType, void *pValue) const
void AssignFrom (const NameValuePairs &source)
const IntegerGetPrime1 () const
const IntegerGetPrime2 () const
const IntegerGetPrivateExponent () const
const IntegerGetModPrime1PrivateExponent () const
const IntegerGetModPrime2PrivateExponent () const
const IntegerGetMultiplicativeInverseOfPrime2ModPrime1 () const
void SetPrime1 (const Integer &p)
void SetPrime2 (const Integer &q)
void SetPrivateExponent (const Integer &d)
void SetModPrime1PrivateExponent (const Integer &dp)
void SetModPrime2PrivateExponent (const Integer &dq)
void SetMultiplicativeInverseOfPrime2ModPrime1 (const Integer &u)
void Initialize (const Integer &n, const Integer &e)
void BERDecodePublicKey (BufferedTransformation &bt, bool parametersPresent, size_t size)
 decode subjectPublicKey part of subjectPublicKeyInfo, without the BIT STRING header
void DEREncodePublicKey (BufferedTransformation &bt) const
 encode subjectPublicKey part of subjectPublicKeyInfo, without the BIT STRING header
Integer ApplyFunction (const Integer &x) const
Integer PreimageBound () const
Integer ImageBound () const
const IntegerGetModulus () const
const IntegerGetPublicExponent () const
void SetModulus (const Integer &n)
void SetPublicExponent (const Integer &e)
Integer ApplyRandomizedFunction (RandomNumberGenerator &rng, const Integer &x) const
bool IsRandomized () const
virtual Integer MaxPreimage () const
virtual Integer MaxImage () const
virtual bool BERDecodeAlgorithmParameters (BufferedTransformation &bt)
virtual bool DEREncodeAlgorithmParameters (BufferedTransformation &bt) const
virtual void BEREncode (BufferedTransformation &bt) const
 encode this object into a BufferedTransformation, using BER
Integer CalculateRandomizedInverse (RandomNumberGenerator &rng, const Integer &x) const
bool IsRandomized () const
virtual bool BERDecodeAlgorithmParameters (BufferedTransformation &bt)
virtual bool DEREncodeAlgorithmParameters (BufferedTransformation &bt) const
virtual void BERDecodeOptionalAttributes (BufferedTransformation &bt)
 decode optional attributes including context-specific tag
virtual void DEREncodeOptionalAttributes (BufferedTransformation &bt) const
 encode optional attributes including context-specific tag

Protected Attributes

Integer m_d
Integer m_p
Integer m_q
Integer m_dp
Integer m_dq
Integer m_u
Integer m_n
Integer m_e
ByteQueue m_optionalAttributes


Detailed Description

_

Definition at line 53 of file rsa.h.


Member Function Documentation

void InvertibleRSAFunction::GenerateRandom ( RandomNumberGenerator rng,
const NameValuePairs alg 
)

virtual void ASN1Object::BEREncode ( BufferedTransformation bt  )  const [inline, virtual, inherited]

encode this object into a BufferedTransformation, using BER

this may be useful if DEREncode() would be too inefficient

Definition at line 1597 of file cryptlib.h.

void PKCS8PrivateKey::BERDecodeOptionalAttributes ( BufferedTransformation bt  )  [virtual, inherited]

decode optional attributes including context-specific tag

/note default implementation stores attributes to be output in DEREncodeOptionalAttributes

Definition at line 583 of file asn.cpp.

Referenced by PKCS8PrivateKey::BERDecode().


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

Generated on Mon Oct 27 02:45:05 2008 for Crypto++ by  doxygen 1.5.7.1