mirror of
https://github.com/trussed-dev/cosey.git
synced 2026-06-20 04:16:33 -07:00
The algorithm field is optional, see RFC 8152 ยง 7:
COSE_Key = {
1 => tstr / int, ; kty
? 2 => bstr, ; kid
? 3 => tstr / int, ; alg
? 4 => [+ (tstr / int) ], ; key_ops
? 5 => bstr, ; Base IV
* label => values
}
alg: This parameter is used to restrict the algorithm that is used
with the key. If this parameter is present in the key structure,
the application MUST verify that this algorithm matches the
algorithm for which the key is being used.
Fixes: https://github.com/trussed-dev/cosey/issues/3