[java-oidc-common] branch main updated: Key wrapping validates the key encryption key against content enc alg
Codeberg
noreply at shibboleth.net
Tue Nov 24 18:41:49 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/cf2caefe64495f7b1df2cc5798836dad27a745e6
The following commit(s) were added to refs/heads/main by this push:
new cf2caefe Key wrapping validates the key encryption key against content enc alg
cf2caefe is described below
commit cf2caefe64495f7b1df2cc5798836dad27a745e6
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