Skip to content

Commit

Permalink
Merge pull request #148 from aidangarske/SignVer_PEM
Browse files Browse the repository at this point in the history
Sign and Verify Support with PEM format key ED25519, RSA, and ECC
  • Loading branch information
lealem47 authored Aug 29, 2024
2 parents 2a30f0f + 625022d commit 6f4757a
Show file tree
Hide file tree
Showing 10 changed files with 1,191 additions and 644 deletions.
587 changes: 411 additions & 176 deletions src/genkey/clu_genkey.c

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/genkey/clu_genkey_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ int wolfCLU_genKeySetup(int argc, char** argv)
format = argv[ret+1];
}
ret = wolfCLU_checkOutform(format);
if (ret == PEM_FORM || ret == DER_FORM) {
WOLFCLU_LOG(WOLFCLU_L0, "OUTPUT A %s FILE", (ret == PEM_FORM)? "PEM": "DER");
if (ret == PEM_FORM || ret == DER_FORM || ret == RAW_FORM) {
const char* formatStr = (ret == PEM_FORM) ? "PEM" :
(ret == DER_FORM) ? "DER" :
"RAW";

WOLFCLU_LOG(WOLFCLU_L0, "OUTPUT A %s FILE", formatStr);
formatArg = ret;
}
else {
Expand Down
Loading

0 comments on commit 6f4757a

Please sign in to comment.