security: Renaming EcdsaKeyParams to EcKeyParams

Change-Id: If27faf095474f5be3f8f454925b389b97bf4425d
Refs: #3135
diff --git a/tools/ndnsec/dsk-gen.hpp b/tools/ndnsec/dsk-gen.hpp
index 207100e..4996383 100644
--- a/tools/ndnsec/dsk-gen.hpp
+++ b/tools/ndnsec/dsk-gen.hpp
@@ -44,7 +44,7 @@
     ("identity,i", po::value<std::string>(&identityName),
      "identity name, for example, /ndn/ucla.edu/alice")
     ("type,t", po::value<char>(&keyType)->default_value('r'),
-     "optional, key type, r for RSA key (default), e for ECDSA key.")
+     "optional, key type, r for RSA key (default), e for EC key.")
     // ("size,s", po::value<int>(&keySize)->default_value(2048),
     //  "optional, key size, 2048 (default)")
     ;
@@ -134,10 +134,10 @@
       }
     case 'e':
       {
-        EcdsaKeyParams params;
-        newKeyName = keyChain.generateEcdsaKeyPair(Name(identityName), false, params.getKeySize());
+        EcKeyParams params;
+        newKeyName = keyChain.generateEcKeyPair(Name(identityName), false, params.getKeySize());
         if (0 == newKeyName.size()) {
-          std::cerr << "ERROR: Fail to generate ECDSA key!" << std::endl;
+          std::cerr << "ERROR: Fail to generate EC key!" << std::endl;
           return 1;
         }
         break;
diff --git a/tools/ndnsec/key-gen.hpp b/tools/ndnsec/key-gen.hpp
index 5be5ce7..cd19ded 100644
--- a/tools/ndnsec/key-gen.hpp
+++ b/tools/ndnsec/key-gen.hpp
@@ -49,7 +49,7 @@
      "the default identity of the system")
     ("dsk,d", "generate Data-Signing-Key (DSK) instead of the default Key-Signing-Key (KSK)")
     ("type,t", po::value<char>(&keyType)->default_value('r'),
-    "optional, key type, r for RSA key (default), e for ECDSA key")
+    "optional, key type, r for RSA key (default), e for EC key")
     // ("size,s", po::value<int>(&keySize)->default_value(2048),
     // "optional, key size, 2048 (default)")
     ;
@@ -94,8 +94,7 @@
       keyName = keyChain.generateRsaKeyPair(Name(identityName), isKsk, RsaKeyParams().getKeySize());
       break;
     case 'e':
-      keyName = keyChain.generateEcdsaKeyPair(Name(identityName), isKsk,
-                                              EcdsaKeyParams().getKeySize());
+      keyName = keyChain.generateEcKeyPair(Name(identityName), isKsk, EcKeyParams().getKeySize());
       break;
     default:
       std::cerr << "Unrecongized key type" << "\n";