We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import crypto from 'node:crypto'; import { Buffer } from 'node:buffer'; const none = new Buffer(12); const key = new Buffer(16); const gcm = crypto.createCipheriv('aes-128-gcm', key, none); const ciphertext = []; ciphertext.push(gcm.update('hello', 'utf8')); ciphertext.push(gcm.update('world', 'utf8')); gcm.final(); const tag = gcm.getAuthTag(); ciphertext.push(tag); ciphertext.forEach((buf) => { console.log(buf.toString('hex')); });
Expected:
6bedb6a20f c1cce09f4c bf6d20a38e0c828bea3de63b7ff1dfbd
Actual:
6bedb6a20f 80fad8c72d eb073fa01597da4e7d1458984d1405d3
The text was updated successfully, but these errors were encountered:
fix(ext/node): update aead-gcm-stream to 0.3
20a7777
Fixes denoland#25260 Fixes denoland#25254 Fixes denoland#23693 Verified that `web-push` GCM decryption works in the browser.
fix(ext/node): update aead-gcm-stream to 0.3 (#25261)
3394c4d
Fixes #25260 Fixes #25254 Fixes #23693 Verified that `web-push` GCM decryption works in the browser. See `aead-gcm-stream` changes [here](littledivy/aead-gcm-stream@a9ffd0c)
a025475
Successfully merging a pull request may close this issue.
Expected:
Actual:
The text was updated successfully, but these errors were encountered: