1 #ifndef CRYPTOPP_XTRCRYPT_H 2 #define CRYPTOPP_XTRCRYPT_H 28 bool GetVoidValue(
const char *name,
const std::type_info &valueType,
void *pValue)
const;
30 CryptoParameters & AccessCryptoParameters() {
return *
this;}
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
return length of public keys in this domain
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.
"The XTR public key system" by Arjen K.
unsigned int AgreedValueLength() const
return length of agreed value produced
Multiple precision integer with arithmetic operations.
Interface for crypto prameters.
Crypto++ library namespace.
unsigned int PrivateKeyLength() const
return length of private keys in this domain
Interface for retrieving values given their names.