Skip to content

Commit 4a885a1

Browse files
Changes to support AES GCM 128 & 192 decryption
1 parent 32c70c9 commit 4a885a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/mcapi/crypto/jwe-crypto.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ function JweCrypto(config) {
122122
let decryptionEncoding = JSON.parse(jweHeader).enc;
123123
let gcmMode = true;
124124
switch (decryptionEncoding) {
125+
case "A128GCM":
126+
decryptionEncoding = "AES-128-GCM";
127+
break;
128+
case "A192GCM":
129+
decryptionEncoding = "AES-192-GCM";
130+
break;
125131
case "A256GCM":
126132
decryptionEncoding = "AES-256-GCM";
127133
break;

0 commit comments

Comments
 (0)