Skip to content

Commit

Permalink
Remove comments about COSE-Java workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Feb 15, 2024
1 parent 7667c0e commit abcb0e0
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,10 @@ static PublicKey importCosePublicKey(ByteArray key)
final int kty = cose.get(CBORObject.FromObject(1)).AsInt32();
switch (kty) {
case 1:
// COSE-JAVA is hardcoded to ed25519-java provider ("EdDSA") which would require an
// additional dependency to parse EdDSA keys via the OneKey constructor
return importCoseEdDsaPublicKey(cose);
case 2:
return importCoseEcdsaPublicKey(cose);
case 3:
// COSE-JAVA supports RSA in v1.1.0 but not in v1.0.0
return importCoseRsaPublicKey(cose);
default:
throw new IllegalArgumentException("Unsupported key type: " + kty);
Expand Down

0 comments on commit abcb0e0

Please sign in to comment.