Hello another time!
Question is:
trying to use existing keys in ECDH:
string priv_key_accepted("
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgWV4oK8c/MZkCLk4qSCNjW0Zm6H0CBCtSYxkXkC9FBHehRANCAAQPldOnhO2/oXjdJD1dwlFPiNs6fcdoRgFu3/Z0iKj24SjTGyLRGAtYWLGXBZcDdPj3T2bJRHRVhE8Bc2AjkT7n
")
//not my, but from
google:
https://developers.google.com/pay/api/payment-data-cryptography#encrypt-spec
. But my generated the same way.
//base64_decoding using CryptoPP::Base64Decoder
const CryptoPP::byte *priv_key_ptr = (const CryptoPP::byte*)
priv_key.data();
CryptoPP::SecByteBlock privKey(*priv_key_ptr);
//the same for other keys...
Is CryptoPP::SecByteBlock privKey ready for pushing to DH2 Agree? Or should
I read it another way?
CryptoPP::DH2 dh2;
dh2.Agree(...
Thank you very much! Your help is badly needed.
--
You received this message because you are subscribed to "Crypto++ Users". More
information about Crypto++ and this group is available at
http://www.cryptopp.com and
http://groups.google.com/forum/#!forum/cryptopp-users.
---
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.