Skip to content

Commit 5df188d

Browse files
committed
readme
1 parent 0aebf37 commit 5df188d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ const data_ = chacha.decrypt(ciphertext);
140140
#### AES: gcm, siv, ctr, cfb, cbc, ecb, aeskw
141141

142142
```js
143-
import { gcm, gcmsiv, ctr, cfb, cbc, ecb } from '@noble/ciphers/aes.js';
143+
import { gcm, gcmsiv, aessiv, ctr, cfb, cbc, ecb } from '@noble/ciphers/aes.js';
144144
import { randomBytes } from '@noble/ciphers/utils.js';
145145
const plaintext = new Uint8Array(32).fill(16);
146-
for (let cipher of [gcm, gcmsiv]) {
146+
for (let cipher of [gcm, gcmsiv, aessiv]) {
147147
const key = randomBytes(32); // 24 for AES-192, 16 for AES-128
148148
const nonce = randomBytes(12);
149149
const ciphertext_ = cipher(key, nonce).encrypt(plaintext);

0 commit comments

Comments
 (0)