Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openpgpjs/openpgpjs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/mode/eax.js')
-rw-r--r--src/crypto/mode/eax.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crypto/mode/eax.js b/src/crypto/mode/eax.js
index 024ea6f7..2dfff46e 100644
--- a/src/crypto/mode/eax.js
+++ b/src/crypto/mode/eax.js
@@ -50,8 +50,7 @@ async function OMAC(key) {
async function CTR(key) {
if (
util.getWebCrypto() &&
- key.length !== 24 && // WebCrypto (no 192 bit support) see: https://www.chromium.org/blink/webcrypto#TOC-AES-support
- (!navigator.userAgent || navigator.userAgent.indexOf('Edge') === -1)
+ key.length !== 24 // WebCrypto (no 192 bit support) see: https://www.chromium.org/blink/webcrypto#TOC-AES-support
) {
key = await webCrypto.importKey('raw', key, { name: 'AES-CTR', length: key.length * 8 }, false, ['encrypt']);
return async function(pt, iv) {