Skip to content

Commit

Permalink
Display error message when signing with X25519 key
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Jan 29, 2024
1 parent b9f0255 commit 8200607
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tool/yubico-piv-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,10 @@ static bool sign_file(ykpiv_state *state, const char *input, const char *output,
if(algo == 0) {
goto out;
}
if(algo == YKPIV_ALGO_X25519) {
fprintf(stderr, "Signing with X25519 key is not supported\n");
goto out;
}

{
EVP_MD_CTX *mdctx;
Expand Down

0 comments on commit 8200607

Please sign in to comment.