AES-GCM (Android API Level <= 19)
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
- הגרסאות שהושפעו
- Tink Android, כל הגרסאות
- סוגי המפתח המושפעים
- AES-GCM
התיאור
ב-Android KitKat (רמת API 19) ללא Google Play Services,, AES-GCM
לא פועל בצורה תקינה. הסיבה לכך היא ש-KitKat משתמשת בגרסה 1.48 של Bouncy Castle גרסה 1.48,
שלא תומכת ב-updateAAD
.
אם שירותי Google Play קיימים, האפליקציה AES-GCM
אמורה לפעול כראוי.
אם רוצים לתמוך בכל הגרסאות של Android בלי להסתמך על Google Play Services, צריך להשתמש ב-CHACHA20-POLY1305
, ב-AES-EAX
או ב-AES-CTR-HMAC-AEAD
בקובץ AEAD.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-01 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2023-12-01 (שעון UTC)."],[[["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."]]],["Android KitKat without Google Play Services has a known issue where AES-GCM encryption does not function correctly due to an outdated Bouncy Castle version lacking `updateAAD` support. If Google Play Services is available, AES-GCM functions as expected. For universal Android support without Play Services dependency, utilize CHACHA20-POLY1305, AES-EAX, or AES-CTR-HMAC-AEAD instead of AES-GCM. This affects all versions of Tink Android.\n"]]