Skip to content

Commit c3a5849

Browse files
committed
A128GCMKW family of keywraps removed
1 parent 94e49f1 commit c3a5849

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/main/java/org/oidc/msg/oidc/util/AlgorithmResolver.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ public static Algorithm resolveKeyTransportAlgorithmForEncryption(Key key, Strin
232232
return Algorithm.AES192Keywrap(((SYMKey) key).getKey(false).getEncoded());
233233
case "A256KW":
234234
return Algorithm.AES256Keywrap(((SYMKey) key).getKey(false).getEncoded());
235-
// TODO: Add missing algorithms -->
236-
case "A128GCMKW":
237-
return Algorithm.A128GCM(CipherParams.getInstance("A128GCM"));
238235
default:
239236
break;
240237
}
@@ -330,18 +327,6 @@ public static Algorithm resolveKeyTransportAlgorithmForDecryption(Key key, Decod
330327
decodedJWT.getHeaderClaim("apv").asString(),
331328
decodedJWT.getHeaderClaim("enc").asString(),
332329
Algorithm.getAlgorithmKeydataLen(decodedJWT.getHeaderClaim("enc").asString()));
333-
case "A128GCMKW":
334-
CipherParams cipherParams = new CipherParams(((SYMKey) key).encryptionKey().getEncoded(),
335-
Base64.decodeBase64(decodedJWT.getIV()));
336-
return Algorithm.A128GCM(cipherParams);
337-
case "A192GCMKW":
338-
cipherParams = new CipherParams(((SYMKey) key).encryptionKey().getEncoded(),
339-
Base64.decodeBase64(decodedJWT.getIV()));
340-
return Algorithm.A192GCM(cipherParams);
341-
case "A256GCMKW":
342-
cipherParams = new CipherParams(((SYMKey) key).encryptionKey().getEncoded(),
343-
Base64.decodeBase64(decodedJWT.getIV()));
344-
return Algorithm.A256GCM(cipherParams);
345330
default:
346331
break;
347332
}

0 commit comments

Comments
 (0)