str4d / ed25519-java

Pure Java implementation of EdDSA
Creative Commons Zero v1.0 Universal
220 stars 74 forks source link

Support for COSE Key encoding #66

Open pkbharigopal opened 6 years ago

pkbharigopal commented 6 years ago

FIDO UAF 1.1 specification (https://fidoalliance.org/specs/fido-v2.0-rd-20180702/fido-registry-v2.0-rd-20180702.html) recommends the EdDSA keys to be encoded as per COSE specification as defined in Section 7 of https://tools.ietf.org/html/rfc8152#section-7 . Can someone guide on how to achieve this. Essentially, the getEncoded() on the EdDSAPublicKey object should return the keys in COSE format, and similarly one should be able to construct EdDSAPublicKey object from key bytes [] defined in COSE. Any help is highly appreciated.