Skip to content

Commit

Permalink
tools: in ndnsec-key-gen, change default key type to ECDSA
Browse files Browse the repository at this point in the history
Change-Id: Ib80da42d2969bb6288ee7949e6588c260476ef39
  • Loading branch information
Pesa committed Apr 23, 2020
1 parent 4c68b6e commit 702467b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/manpages/ndnsec-key-gen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Options

.. option:: -t <type>, --type <type>

Type of key to generate. "r" for RSA (the default), "e" for ECDSA.
Type of key to generate. "r" for RSA, "e" for ECDSA (the default).

.. option:: -k <keyidtype>, --keyid-type <keyidtype>

Expand Down
2 changes: 1 addition & 1 deletion tools/ndnsec/key-gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ndnsec_key_gen(int argc, char** argv)
("help,h", "produce help message")
("identity,i", po::value<Name>(&identityName), "identity name, e.g., /ndn/edu/ucla/alice")
("not-default,n", po::bool_switch(&wantNotDefault), "do not set the identity as default")
("type,t", po::value<char>(&keyTypeChoice)->default_value('r'),
("type,t", po::value<char>(&keyTypeChoice)->default_value('e'),
"key type: 'r' for RSA, 'e' for ECDSA")
("keyid-type,k", po::value<char>(&keyIdTypeChoice),
"key id type: 'h' for the SHA-256 of the public key, 'r' for a 64-bit "
Expand Down

0 comments on commit 702467b

Please sign in to comment.