You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
COSE::Key::EC2#to_pkey raises NoMethodError for a key that has d but no x and y #84
COSE::Key::EC2.new accepts a private-only key (a key that has d but no x and y). But #to_pkey always builds the public point from x and y, so it fails on that key with a NoMethodError.
For private keys, it is REQUIRED that 'crv' and 'd' be present in the structure. For private keys, it is RECOMMENDED that 'x' and 'y' also be present, but they can be recomputed from the required elements, and omitting them saves on space.
Activity