summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-17 22:30:39 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-17 22:30:39 +0000
commit2b6effbf29cb4f7aa85e4f697c79c473cc4c9ea4 (patch)
tree921c12d4b1e184d1778897292ade547f204aeec5
parent2103a2283b68d0bc147905259f5d7ac94bce6f60 (diff)
downloaduxp-2b6effbf29cb4f7aa85e4f697c79c473cc4c9ea4.tar.gz
Issue #1743 - Update CK_GCM_PARAMS use for PKCS11 v3.0 in WebCryptoTask
-rw-r--r--dom/crypto/WebCryptoTask.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/crypto/WebCryptoTask.cpp b/dom/crypto/WebCryptoTask.cpp
index 57fb3c3c86..122afd793b 100644
--- a/dom/crypto/WebCryptoTask.cpp
+++ b/dom/crypto/WebCryptoTask.cpp
@@ -690,6 +690,7 @@ private:
case CKM_AES_GCM:
gcmParams.pIv = mIv.Elements();
gcmParams.ulIvLen = mIv.Length();
+ gcmParams.ulIvBits = gcmParams.ulIvLen * 8;
gcmParams.pAAD = mAad.Elements();
gcmParams.ulAADLen = mAad.Length();
gcmParams.ulTagBits = mTagLength;