crypto: reject short AES-KW inputs · nodejs/node@d4af11e · GitHub
Skip to content

Commit d4af11e

Browse files
panvaaduh95
authored andcommitted
crypto: reject short AES-KW inputs
Enforce the minimum key-wrap input lengths before the empty-input shortcut, including the integrity-check block when unwrapping. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: #66237 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent 78374c8 commit d4af11e

2 files changed

Lines changed: 56 additions & 2 deletions

File tree

‎src/crypto/crypto_aes.cc‎

Lines changed: 7 additions & 2 deletions
Lines changed: 49 additions & 0 deletions

0 commit comments

Comments
 (0)