Yes, have found it:

dh = CryptoPP::ECDH<CryptoPP::ECP, 
CryptoPP::NoCofactorMultiplication>::Domain(curve);
CryptoPP::DH2 dh2(dh);
...
string foreign_ephemeral_pub_key("...some base64...");//accepting ephemeral 
pub key from googlePay request
string google_ephemeral_pub_key_decoded = 
base64_decode(foreign_ephemeral_pub_key);

CryptoPP::SecByteBlock google_pubKey((const CryptoPP::byte*) 
google_public_key.data(), dh2.StaticPublicKeyLength());//here 
using google_public_key, just from google, also base64, also decoded. 
Refreshes sometimes, you may update it one time a day
CryptoPP::SecByteBlock google_ephKey((const CryptoPP::byte*) 
google_ephemeral_pub_key.data(), dh2.EphemeralPublicKeyLength());

And then just moving further - to combined secret and so on.
I planned prepare full googlePay-decoder code for wiki, but really, don't 
have time for it.

Hope, that helps.

-- 
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.

Reply via email to