Skip to content

Commit

Permalink
aes: skip small gcm nonce wycheproof tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Sep 1, 2024
1 parent 1b153a5 commit ceaeb80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/aes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ceaeb80

Please sign in to comment.