Crypto++
5.6.4
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
19 : d1(domain), d2(domain) {}
21 : d1(staticDomain), d2(ephemeralDomain) {}
26 {
return d1.AgreedValueLength() + d2.AgreedValueLength();}
29 {
return d1.PrivateKeyLength();}
31 {
return d1.PublicKeyLength();}
33 {d1.GeneratePrivateKey(rng, privateKey);}
35 {d1.GeneratePublicKey(rng, privateKey, publicKey);}
37 {d1.GenerateKeyPair(rng, privateKey, publicKey);}
40 {
return d2.PrivateKeyLength();}
42 {
return d2.PublicKeyLength();}
44 {d2.GeneratePrivateKey(rng, privateKey);}
46 {d2.GeneratePublicKey(rng, privateKey, publicKey);}
48 {d2.GenerateKeyPair(rng, privateKey, publicKey);}
50 bool Agree(
byte *agreedValue,
51 const byte *staticPrivateKey,
const byte *ephemeralPrivateKey,
52 const byte *staticOtherPublicKey,
const byte *ephemeralOtherPublicKey,
53 bool validateStaticOtherPublicKey=
true)
const;
55 #ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
Interface for crypto prameters.
Interface for domains of simple key agreement protocols.
CryptoParameters & AccessCryptoParameters()
Retrieves a reference to Crypto Parameters.
void GenerateStaticKeyPair(RandomNumberGenerator &rng, byte *privateKey, byte *publicKey) const
Generate a static private/public key pair.
unsigned int EphemeralPublicKeyLength() const
Provides the size of ephemeral public key.
void GenerateEphemeralPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
Generate ephemeral public key.
void GenerateStaticPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
Generate a static public key from a private key in this domain.
Interface for domains of authenticated key agreement protocols.
Interface for random number generators.
void GenerateEphemeralPrivateKey(RandomNumberGenerator &rng, byte *privateKey) const
Generate ephemeral private key.
unsigned int EphemeralPrivateKeyLength() const
Provides the size of ephemeral private key.
void GenerateEphemeralKeyPair(RandomNumberGenerator &rng, byte *privateKey, byte *publicKey) const
Generate private/public key pair.
unsigned int StaticPublicKeyLength() const
Provides the size of the static public key.
void GenerateStaticPrivateKey(RandomNumberGenerator &rng, byte *privateKey) const
Generate static private key in this domain.
Crypto++ library namespace.
unsigned int StaticPrivateKeyLength() const
Provides the size of the static private key.
unsigned int AgreedValueLength() const
Provides the size of the agreed value.
Abstract base classes that provide a uniform interface to this library.