Skip to content

Commit 7ec15c8

Browse files
save file
1 parent 69a9c93 commit 7ec15c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blog/26-04-26/x509-certificates-in-js---encrypt-decrypt-data/ex/aes-encrypt-decrypt-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ TypedArray.prototype.slice() : https://developer.mozilla.org/en-US/docs/Web
119119

120120
async function aesEncrypt(key_blob,blob,iv_bits=96){
121121

122-
var key = await blob_buf(key_blob);
122+
var key = await importAesKey(key_blob);
123123
var buf = await blob.arrayBuffer();
124124
// 96-bit IV recommended ( 12 bytes )
125125
var bytes = iv_bits/8;

0 commit comments

Comments
 (0)