[java-oidc-common] 01/05: Key wrapping validates the key encryption key against content enc alg
Codeberg
noreply at shibboleth.net
Fri Nov 27 12:42:57 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch maint-3.4
in repository java-oidc-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/65392aecce69f0b2ec5ff5ce38e1b59a93431511
commit 65392aecce69f0b2ec5ff5ce38e1b59a93431511
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Nov 24 18:41:37 2026 +0000
Key wrapping validates the key encryption key against content enc alg
- Works fine now, because they are both generalised to AES for KEK and
Content algorithm, but that is not future proof.
---
.../main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java
index 457d577f..ec96b08d 100644
--- a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java
+++ b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java
@@ -406,7 +406,7 @@ public class JWETokenDecrypter {
}
try {
validateKeyManagmentAlgorithm(encryptedObject, (JWKCredential)cred);
- validateContentEncryptionAlgorithm(encryptedObject,(JWKCredential) cred);
+ validateContentEncryptionAlgorithm(encryptedObject);
final JWEDecrypter decrypter = new AESDecrypter(cred.getSecretKey());
encryptedObject.decrypt(decrypter);
return;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list