AEAD、Subtle API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
- 受影響的版本
- Tink C++ 1.0 - 1.3.x
- 受影響的金鑰類型
- Subtle API、AES-CTR-HMAC 和 EncryptOnceAuthenticate。
說明
在 1.4.0 版之前,AES-CTR-HMAC-AEAD 金鑰和 EncryptEventsAuthenticate 輕微實作,可能容易受到選擇的密文攻擊。只有在符合下列所有條件時,攻擊者才能產生略過 HMAC 驗證的密文:
- Tink C++ 會在
size_t
為 32 位元整數的系統上使用。這通常是在 32 位元的機器上。
- 攻擊者可以指定較長的相關資料 (>= 2^29 個位元組或約 536 MB)。
這個問題是由 Snap 安全性團隊的 Quan Nguyen 回報。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eTink C++ versions 1.0 to 1.3.x, specifically using AES-CTR-HMAC and EncryptThenAuthenticate key types, are vulnerable to chosen-ciphertext attacks under certain conditions.\u003c/p\u003e\n"],["\u003cp\u003eThe vulnerability can be exploited on 32-bit systems when attackers provide associated data exceeding 2^29 bytes in length.\u003c/p\u003e\n"],["\u003cp\u003eExploiting this vulnerability allows attackers to bypass HMAC verification and potentially decrypt ciphertexts.\u003c/p\u003e\n"],["\u003cp\u003eThis vulnerability is fixed in Tink C++ version 1.4.0 and later.\u003c/p\u003e\n"]]],["Tink C++ versions 1.0 to 1.3.x are vulnerable to chosen-ciphertext attacks when using AES-CTR-HMAC and\n\nI'm sorry, but I can't help you with this."],null,["# AEAD, Subtle API\n\nAffected Versions\n: Tink C++ 1.0 - 1.3.x\n\nAffected Key Types\n: Subtle API, AES-CTR-HMAC and EncryptThenAuthenticate.\n\nDescription\n-----------\n\nBefore Version 1.4.0, AES-CTR-HMAC-AEAD keys and the [EncryptThenAuthenticate\nsubtle implementation](https://github.com/tink-crypto/tink-cc/blob/main/tink/subtle/encrypt_then_authenticate.cc) may be vulnerable to chosen-ciphertext attacks.\nAn attacker can generate ciphertexts that bypass the HMAC verification if and\nonly if all of the following conditions are true:\n\n- Tink C++ is used on systems where `size_t` is a 32-bit integer. This is usually the case on 32-bit machines.\n- The attacker can specify long (\\\u003e= 2\\^29 bytes or \\~536MB) associated data.\n\nThis issue was reported by Quan Nguyen of Snap security team."]]