added tagLength property to encrypt and decrypt for functionality in edge

This commit is contained in:
Abhinav Adduri 2017-07-07 14:59:42 -07:00
parent 1ce24f7e08
commit be470c6b6e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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