security: Renaming EcdsaKeyParams to EcKeyParams
Change-Id: If27faf095474f5be3f8f454925b389b97bf4425d
Refs: #3135
diff --git a/tests/unit-tests/security/tpm/back-end.t.cpp b/tests/unit-tests/security/tpm/back-end.t.cpp
index 01b9e6c..8dc93a4 100644
--- a/tests/unit-tests/security/tpm/back-end.t.cpp
+++ b/tests/unit-tests/security/tpm/back-end.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2016 Regents of the University of California.
+ * Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -149,11 +149,11 @@
T wrapper;
BackEnd& tpm = wrapper.getTpm();
- // create an ecdsa key
- Name identity("/Test/Ecdsa/KeyName");
+ // create an ec key
+ Name identity("/Test/Ec/KeyName");
- unique_ptr<KeyHandle> key = tpm.createKey(identity, EcdsaKeyParams());
- Name ecdsaKeyName = key->getKeyName();
+ unique_ptr<KeyHandle> key = tpm.createKey(identity, EcKeyParams());
+ Name ecKeyName = key->getKeyName();
const uint8_t content[] = {0x01, 0x02, 0x03, 0x04};
Block sigBlock(tlv::SignatureValue, key->sign(DigestAlgorithm::SHA256, content, sizeof(content)));
@@ -171,8 +171,8 @@
}
BOOST_CHECK_EQUAL(result, true);
- tpm.deleteKey(ecdsaKeyName);
- BOOST_CHECK_EQUAL(tpm.hasKey(ecdsaKeyName), false);
+ tpm.deleteKey(ecKeyName);
+ BOOST_CHECK_EQUAL(tpm.hasKey(ecKeyName), false);
}
BOOST_AUTO_TEST_CASE_TEMPLATE(ImportExport, T, TestBackEnds)