Check length of symmetric key in JsonWebKeyType::compatible_with
#29
Labels
release:0.1
Issues which must be solved for the 0.1 release
JsonWebKeyType::compatible_with
#29
Currently, any symmetric algorithm is accepted for any symmetric key. However, depending on the algorithm, there should be additional checks regarding the key length to check if a key is compatible with an algorithm.
Example
Hmac::Hs256
should not be compatible with anOctetSequence
key that is only 16 bytes long.The text was updated successfully, but these errors were encountered: