Several of the class names under JWE::Alg aren't cased correctly to match the output from JWE.param_to_class_name. This mismatch means that perfectly valid algs throw a NotImplementedError.
For example:
With JWE.encrypt(jwt, secret, alg: 'A256KW'), JWE.param_to_class_name converts the alg to "A256kw". Then const_get looks for a matching class name, but doesn't find one because the class is A256Kw.
Several of the class names under
JWE::Alg
aren't cased correctly to match the output fromJWE.param_to_class_name
. This mismatch means that perfectly valid algs throw aNotImplementedError.
For example: With
JWE.encrypt(jwt, secret, alg: 'A256KW')
,JWE.param_to_class_name
converts the alg to"A256kw"
. Thenconst_get
looks for a matching class name, but doesn't find one because the class isA256Kw.
This should be a real quick fix.