added tagLength property to encrypt and decrypt for functionality in edge
This commit is contained in:
parent
1ce24f7e08
commit
be470c6b6e
|
@ -68,7 +68,8 @@ class FileReceiver extends EventEmitter {
|
||||||
{
|
{
|
||||||
name: 'AES-GCM',
|
name: 'AES-GCM',
|
||||||
iv: hexToArray(fdata.iv),
|
iv: hexToArray(fdata.iv),
|
||||||
additionalData: hexToArray(fdata.aad)
|
additionalData: hexToArray(fdata.aad),
|
||||||
|
tagLength: 128
|
||||||
},
|
},
|
||||||
key,
|
key,
|
||||||
fdata.data
|
fdata.data
|
||||||
|
|
|
@ -65,7 +65,8 @@ class FileSender extends EventEmitter {
|
||||||
{
|
{
|
||||||
name: 'AES-GCM',
|
name: 'AES-GCM',
|
||||||
iv: this.iv,
|
iv: this.iv,
|
||||||
additionalData: this.aad
|
additionalData: this.aad,
|
||||||
|
tagLength: 128
|
||||||
},
|
},
|
||||||
secretKey,
|
secretKey,
|
||||||
plaintext
|
plaintext
|
||||||
|
|
Loading…
Reference in New Issue