AES-GCM(Android API 级别 <= 19)
- 受影响的版本
- Tink Android,所有版本
- 受影响的密钥类型
- AES-GCM
说明
在没有 Google Play 服务的 Android KitKat(API 级别 19)上,AES-GCM
无法正常工作。这是因为 KitKat 使用的是 Bouncy Castle 1.48,而后者不支持 updateAAD
。
如果存在 Google Play 服务,则 AES-GCM
应该可以正常运行。
如果您想支持所有 Android 版本,而不依赖于 Google Play 服务,请为您的 AEAD 使用 CHACHA20-POLY1305
、AES-EAX
或 AES-CTR-HMAC-AEAD
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[null,null,["最后更新时间 (UTC):2023-12-01。"],[[["AES-GCM encryption may not function correctly on Android KitKat (API level 19) devices without Google Play Services due to limitations in Bouncy Castle 1.48."],["If Google Play Services is available on the device, AES-GCM encryption should operate as expected."],["To ensure compatibility across all Android versions without relying on Google Play Services, it is recommended to utilize CHACHA20-POLY1305, AES-EAX, or AES-CTR-HMAC-AEAD for authenticated encryption."],["This issue impacts all versions of Tink for Android and specifically affects the AES-GCM key type."]]],[]]