mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
fix: missing taglength for msrcrypto
This commit is contained in:
parent
0b31971678
commit
502dd9a3db
2
sea.js
2
sea.js
@ -576,7 +576,7 @@
|
||||
bufiv = shim.Buffer.from(json.iv, opt.encode || 'base64');
|
||||
bufct = shim.Buffer.from(json.ct, opt.encode || 'base64');
|
||||
var ct = await aeskey(key, buf, opt).then((aes) => (/*shim.ossl ||*/ shim.subtle).decrypt({ // Keeping aesKey scope as private as possible...
|
||||
name: opt.name || 'AES-GCM', iv: new Uint8Array(bufiv)
|
||||
name: opt.name || 'AES-GCM', iv: new Uint8Array(bufiv), tagLength: 128
|
||||
}, aes, new Uint8Array(bufct)));
|
||||
}catch(e){
|
||||
if('utf8' === opt.encode){ throw "Could not decrypt" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user