Hi. I am trying to use crypto++ implementation of DH2. I am having some difficulty trying to instantiate a DH2 variable. I have also noticed that no example code in the Benchmark file or any of the other library files is given, so I guessed. I noticed that to instatiate a DH2 variable it takes a SimpleKeyAgreement Domain. I also understand that DH2 derives from an Authenticated key agreement rather than a SimpleKeyAgreement. I have copied and pasted the AuthenticatedKeyAgreement function in the benchmark to simply test DH2. I am still having trouble instantiating it. Here is the block of code:
FileSource f("dh2048.dat", true, new HexDecoder());
DH dh(f);
DH2 dh2(dh);
v = AuthenticatedKeyAgreementValidate(dh2);
I have DH2 take a DH argument simply because DH derives from a
SimpleKeyDomain (I am probably way off with this though). Here is the
error I get:
CryptoExample.cpp: In function `void do_DH2()':
CryptoExample.cpp:549: error: cannot declare variable `dh2' to be of
type `
CryptoPP::DH2'
CryptoExample.cpp:549: error: because the following virtual functions
are
abstract:
cryptlib.h:1072: error: virtual CryptoPP::CryptoParameters&
CryptoPP::KeyAgreementAlgorithm::AccessCryptoParameters()
Your help in this matter would be greatly appreciated. Thanks.
(PS Dont flame me too bad if this is way off :) ).
--
Clayton Bluhm [EMAIL PROTECTED]
Computer Engineering Student http://www.auburn.edu/~bluhmcc/
signature.asc
Description: This is a digitally signed message part
