Hello!

Climbing through 
https://developers.google.com/pay/api/payment-data-cryptography#encrypt-spec 
. 
At this point, ECDH deriving shared secret works with our keys + random 
generated, but not with Google ephemeral and public.

Am I right, that outer public and ephemeral should be 65 bytes long? 
On auto-generated keys by DH2 it is so. (Using curve P-256, it is sec256r1 
in CryptoPP  )

Grabbing google key (public outer) from 
here: https://payments.developers.google.com/paymentmethodtoken/keys.json . 
After base64 decoding it is 91 byte length, not 65. is it because of it is 
in X509?

This question may be trivial - I'm a newbie in cpp and crypting.

Thank you very much!

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