public 密钥和 Android 支付中的临时 public 密钥有区别吗?

is there a difference between public key and ephemeral public key in Android Pay?

我正在浏览 Google Android 付费页面:https://developers.google.com/android-pay/integration/payment-token-cryptography。我有一个问题:

我们生成的 public 密钥(例如从 openSSL)然后提交给 MaskedWalletRequest 中的 Google 和支付方式令牌中所谓的 "ephemeral public key" 之间有区别吗回复?

它们是否完全相同的 Base64 字符串?如果不是,有什么区别?

谢谢!

您的应用提供给 Android Pay API 的 public 密钥是您生成的 public 密钥,并且正在传递给 Android支付 API 以加密支付凭据包。 https://developers.google.com/android-pay/integration/payment-token-cryptography#setting-a-public-key

临时 public 密钥与加密消息一起从 Android Pay API 返回,并作为加密过程的一部分生成。您将使用临时 public 密钥来解密加密的消息。关于椭圆曲线的更多信息,请参阅https://en.wikipedia.org/wiki/Elliptic_curve_Diffie%E2%80%93Hellman