KeyLengthCriterion not set in Decrypter

Description

The method buildKeyLengthCriterion in org.opensaml.xmlsec.encryption.support.Decrypter has a bug that leaves the KeyLengthCriterion out from the criteria set being passed to the key encryption resolver ...

If the encryption method is set, null is returned. If it's not, we'll get an NPE.

if (!Strings.isNullOrEmpty(encAlgorithmURI)) {
  return null;
{{}}}

I'm currently building a key info provider for ECDH that will return the key agreement key, and for that I need both the JCA name and the key length. Others may not suffer from this bug ...

Environment

None

Activity

Show:

Brent Putman March 23, 2019 at 12:21 AM

This was just a simple typo, flipped-boolean bug.

Fixed in:

master: 45680ce281fc0f4d46b1415f6cdb08dd07632723
maint-3.4: 7c654d329f919e6c262e250afc6d6cc743aae5ec

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created March 15, 2019 at 7:46 AM
Updated August 6, 2021 at 10:29 PM
Resolved March 23, 2019 at 12:21 AM