-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(node): crypto.{Cipheriv,Decipheriv}.setAutoPadding()
#22228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also enable parallel/test-crypto-padding-aes256.js
test
Cipheriv.setAutoPadding()
(Cipheriv|Decipheriv).setAutoPadding()
(Cipheriv|Decipheriv).setAutoPadding()
crypto.{Cipheriv,Decipheriv}.setAutoPadding()
@littledivy, are you able to see where I went wrong? Also, I thought |
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
buf, | ||
this.#authTag || NO_TAG, | ||
this.#autoPadding, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are failing because buf
is a fixed buffer of size 16 (block size).
When auto padding is disabled, buf
should be sliced from (0, len]
where len
is the length of the unpadded block returned by decrypt_block_b2b_mut
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
This reverts commit b52deba.
@iuioiua FYI I don't think I'll have time to get this in for 1.41. It's a little more work than I thought - will keep you updated |
Closing in favor #24940. |
Closes #21804