47 bool GetVoidValue(
const char *
name,
const std::type_info &valueType,
void *pValue)
const;
97 bool GetVoidValue(
const char *
name,
const std::type_info &valueType,
void *pValue)
const;
118 void PrecomputeTweakedRoots()
const;
138 template <
class STANDARD,
class H>
virtual void AssignFrom(const NameValuePairs &source)=0
Assign values to this object.
Rabin-Williams trapdoor function using the private key.
virtual void SavePrecomputation(BufferedTransformation &storedPrecomputation) const
Save precomputation for later use.
#define CRYPTOPP_STATIC_CONSTEXPR
void Load(BufferedTransformation &bt)
Loads a key from a BufferedTransformation.
void SetModulus(const Integer &n)
#define NAMESPACE_BEGIN(x)
Abstract base classes that provide a uniform interface to this library.
virtual void Precompute(unsigned int unused=0) const
const Integer & GetMultiplicativeInverseOfPrime2ModPrime1() const
Interface for random number generators.
Integer ImageBound() const
Returns the maximum size of a message after the trapdoor function is applied.
Interface for private keys.
virtual CRYPTOPP_DLL bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const =0
Get a named value.
Applies the inverse of the trapdoor function.
virtual void LoadPrecomputation(BufferedTransformation &storedPrecomputation)
Retrieve previously saved precomputation.
Rabin-Williams trapdoor function using the public key.
virtual bool Validate(RandomNumberGenerator &rng, unsigned int level) const =0
Check this object for errors.
virtual bool SupportsPrecomputation() const
Determines whether the object supports precomputation.
const Integer & GetPrime2() const
void Initialize(RandomNumberGenerator &rng, unsigned int modulusBits)
Create a Rabin-Williams private key.
bool Validate(int, bool, const char *)
Multiple precision integer with arithmetic operations.
CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName()
Applies the trapdoor function.
void Load(BufferedTransformation &bt)
Loads a key from a BufferedTransformation.
virtual Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const =0
Calculates the inverse of an element.
void Save(BufferedTransformation &bt) const
Saves a key to a BufferedTransformation.
void BERDecode(BufferedTransformation &bt)
void Initialize(const Integer &n)
Initialize a Rabin-Williams public key.
Rabin-Williams signature scheme.
#define CRYPTOPP_UNUSED(x)
virtual void GenerateRandom(RandomNumberGenerator &rng, const NameValuePairs ¶ms=g_nullNameValuePairs)
Generate a random key or crypto parameters.
void GenerateRandomWithKeySize(RandomNumberGenerator &rng, unsigned int keySize)
Generate a random key or crypto parameters.
Multiple precision integer with arithmetic operations.
const Integer & GetPrime1() const
const Integer & GetModulus() const
void DEREncode(BufferedTransformation &bt) const
Interface for public keys.
virtual void Precompute(unsigned int unused=0)
Perform precomputation.
void SetPrime1(const Integer &p)
Integer PreimageBound() const
Returns the maximum size of a message before the trapdoor function is applied.
void Save(BufferedTransformation &bt) const
Saves a key to a BufferedTransformation.
InvertibleRWFunction PrivateKey
InvertibleRWFunction ThisClass
InvertibleRWFunction()
Construct an InvertibleRWFunction.
void SetMultiplicativeInverseOfPrime2ModPrime1(const Integer &u)
Interface for retrieving values given their names.
void SetPrime2(const Integer &q)
Trapdoor Function (TF) Signature Scheme.