Ok, i've managed to convert the bytes to Integers and use function
DEREncode with BufferedTransformation (FileSink). But when I try to load
the keys with BERDecode... this happens:
terminate called after throwing an instance of 'CryptoPP::BERDecodeErr'
what(): BER decode error
I've tried this:
string filename5 = "ecc-pubkeyA.der";
string filename6 = "ecc-pubkeyB.der";
FileSource fs5(filename5.c_str(), true);
FileSource fs6(filename6.c_str(), true);
Integer pubkey_A(fs5);
Integer pubkey_B(fs6);
and this:
Integer pubkey_A(pubA, dhA.PublicKeyLength());
Integer pubkey_B(pubB, dhB.PublicKeyLength());
string filename5 = "ecc-pubkeyA.der";
string filename6 = "ecc-pubkeyB.der";
FileSource fs5(filename5.c_str(), true);
FileSource fs6(filename6.c_str(), true);
pubkey_A.BERDecode(fs5);
pubkey_B.BERDecode(fs6);
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.