Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/com/google/cose/CoseKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ public static CoseKey generateKey(Algorithm algorithm) throws CborException, Cos
switch (algorithm) {
case SIGNING_ALGORITHM_EDDSA:
return OkpSigningKey.generateKey();
case SIGNING_ALGORITHM_MLDSA_44:
case SIGNING_ALGORITHM_MLDSA_65:
case SIGNING_ALGORITHM_MLDSA_87:
return AkpSigningKey.generateKey(algorithm, AkpKey.CONSCRYPT_PROVIDER);
case SIGNING_ALGORITHM_ECDSA_SHA_256:
Expand Down
2 changes: 1 addition & 1 deletion src/com/google/cose/utils/CoseUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public static void verifyCoseSign1Message(CoseKey key, Sign1Message message,
((AkpSigningKey) key)
.verify(algorithm, encodedStructure, message.getSignature(), AkpKey.CONSCRYPT_PROVIDER);
} else {
new CoseException("Incompatible key used.");
throw new CoseException("Incompatible key used.");
}
}

Expand Down
Loading