Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test/parallel/test-crypto-cipheriv-decipheriv.js
  • Loading branch information
panva authored Dec 7, 2022
commit e9c81a8c824a70a8d03c0f2a914e23ce393ed6b6
10 changes: 5 additions & 5 deletions test/parallel/test-crypto-cipheriv-decipheriv.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ for (let n = minIvLength; n < maxIvLength; n += 1) {
}

{
// overflowing
assert.throws(() => crypto.createCipheriv('aes-128-gcm', Buffer.alloc(16), Buffer.alloc(12))
.update(Buffer.allocUnsafeSlow(2 ** 31 - 1)), {
name: 'Error',
});
// https://github.com/nodejs/node/issues/45757
// eslint-disable-next-line no-restricted-syntax
assert.throws(() =>
crypto.createCipheriv('aes-128-gcm', Buffer.alloc(16), Buffer.alloc(12))
.update(Buffer.allocUnsafeSlow(2 ** 31 - 1)));
Comment thread
panva marked this conversation as resolved.
}