1 #ifndef CRYPTOPP_XTRCRYPT_H
2 #define CRYPTOPP_XTRCRYPT_H
12 NAMESPACE_BEGIN(CryptoPP)
28 bool GetVoidValue(
const char *name,
const std::type_info &valueType,
void *pValue)
const;
37 bool Agree(byte *agreedValue,
const byte *privateKey,
const byte *otherPublicKey,
bool validateOtherPublicKey=
true)
const;
39 const Integer &GetModulus()
const {
return m_p;}
40 const Integer &GetSubgroupOrder()
const {
return m_q;}
41 const GFP2Element &GetSubgroupGenerator()
const {
return m_g;}
43 void SetModulus(
const Integer &p) {m_p = p;}
44 void SetSubgroupOrder(
const Integer &q) {m_q = q;}
45 void SetSubgroupGenerator(
const GFP2Element &g) {m_g = g;}
48 unsigned int ExponentBitLength()
const;
unsigned int PublicKeyLength() const
Provides the size of the public key.
Abstract base classes that provide a uniform interface to this library.
Interface for random number generators.
Interface for domains of simple key agreement protocols.
XTR-DH with key validation.
CryptoParameters & AccessCryptoParameters()
Retrieves a reference to Crypto Parameters.
The XTR public key system.
unsigned int AgreedValueLength() const
Provides the size of the agreed value.
Multiple precision integer with arithmetic operations.
Multiple precision integer with arithmetic operations.
Interface for crypto prameters.
unsigned int PrivateKeyLength() const
Provides the size of the private key.
Interface for retrieving values given their names.