mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 23:18:39 +03:00
added tagLength property to encrypt and decrypt for functionality in edge
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user