From a3dc86bc89a445cd22dd36c0045b146b227a844d Mon Sep 17 00:00:00 2001 From: khrice Date: Tue, 11 Sep 2018 10:29:56 -0400 Subject: [PATCH 1/2] Update README for IE and Edge Changes to comments for IE and Edge, which require additionalData and tagLength --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee36558..b06b642 100644 --- a/README.md +++ b/README.md @@ -1134,10 +1134,10 @@ window.crypto.subtle.encrypt( //Recommended to use 12 bytes length iv: window.crypto.getRandomValues(new Uint8Array(12)), - //Additional authentication data (optional) + //Additional authentication data (optional, except for on IE and Edge which require it with a non-zero value ie: new Uint8Array(1)) additionalData: ArrayBuffer, - //Tag length (optional) + //Tag length (optional, except for on IE and Edge) tagLength: 128, //can be 32, 64, 96, 104, 112, 120 or 128 (default) }, key, //from generateKey or importKey above From b443bd0a24c6fc0e6cd767ea73b3f75520810fe6 Mon Sep 17 00:00:00 2001 From: khrice Date: Tue, 11 Sep 2018 10:32:09 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b06b642..b1daecc 100644 --- a/README.md +++ b/README.md @@ -1134,10 +1134,10 @@ window.crypto.subtle.encrypt( //Recommended to use 12 bytes length iv: window.crypto.getRandomValues(new Uint8Array(12)), - //Additional authentication data (optional, except for on IE and Edge which require it with a non-zero value ie: new Uint8Array(1)) + //Additional authentication data (optional on all browsers except for on IE 11 and Edge which require it with a non-zero value ie: new Uint8Array(1)) additionalData: ArrayBuffer, - //Tag length (optional, except for on IE and Edge) + //Tag length (optional on all browsers except for IE 11 and Edge which require it) tagLength: 128, //can be 32, 64, 96, 104, 112, 120 or 128 (default) }, key, //from generateKey or importKey above