From ceaeb80ab00f4f0535ee628e3a5514fcf2833d74 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sun, 1 Sep 2024 15:39:47 +0000 Subject: [PATCH] aes: skip small gcm nonce wycheproof tests --- test/aes.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/aes.test.js b/test/aes.test.js index 4a3b35f..1949dcf 100644 --- a/test/aes.test.js +++ b/test/aes.test.js @@ -96,6 +96,7 @@ describe('AES', () => { const msg = hex.decode(t.msg); const cipher = CIPHERS[c.cipher]; if (t.result === 'valid') { + if (t.flags.includes('SmallIv')) return; // skip test, we don't support iv < 8b const a = cipher(hex.decode(t.key), hex.decode(t.iv), hex.decode(t.aad || '')); const ct = concatBytes(hex.decode(t.ct), hex.decode(t.tag || '')); deepStrictEqual(a.decrypt(ct), msg);