From be470c6b6e3bb6879079bcf9d52444e6e45a964c Mon Sep 17 00:00:00 2001 From: Abhinav Adduri Date: Fri, 7 Jul 2017 14:59:42 -0700 Subject: [PATCH] added tagLength property to encrypt and decrypt for functionality in edge --- frontend/src/fileReceiver.js | 3 ++- frontend/src/fileSender.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/fileReceiver.js b/frontend/src/fileReceiver.js index 274b0328..5e363140 100644 --- a/frontend/src/fileReceiver.js +++ b/frontend/src/fileReceiver.js @@ -68,7 +68,8 @@ class FileReceiver extends EventEmitter { { name: 'AES-GCM', iv: hexToArray(fdata.iv), - additionalData: hexToArray(fdata.aad) + additionalData: hexToArray(fdata.aad), + tagLength: 128 }, key, fdata.data diff --git a/frontend/src/fileSender.js b/frontend/src/fileSender.js index cbcbd76d..132b868c 100644 --- a/frontend/src/fileSender.js +++ b/frontend/src/fileSender.js @@ -65,7 +65,8 @@ class FileSender extends EventEmitter { { name: 'AES-GCM', iv: this.iv, - additionalData: this.aad + additionalData: this.aad, + tagLength: 128 }, secretKey, plaintext