summaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-04-08 21:14:19 +0100
committerCarl Hetherington <cth@carlh.net>2019-04-08 21:14:19 +0100
commitd9d117d8dd56322fed12f8e12c574cf08fe22500 (patch)
treea10caad60c43a8adb58b56a694681306f1236919 /src/key.h
parentb785a1a76e0863fc98d0acc98a098d328929d493 (diff)
Fix previous and add unit test for Key::hex.
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/key.h b/src/key.h
index 0464296f..690799f3 100644
--- a/src/key.h
+++ b/src/key.h
@@ -51,7 +51,7 @@ class Key
{
public:
/** Create a new, random key */
- Key (int length = ASDCP::KeyLen);
+ explicit Key (int length = ASDCP::KeyLen);
/** Create a Key from a raw key value */
explicit Key (uint8_t const *, int length = ASDCP::KeyLen);
@@ -60,10 +60,10 @@ public:
explicit Key (std::string);
Key (Key const &);
- ~Key ();
-
Key& operator= (Key const &);
+ ~Key ();
+
/** @return Raw key value */
uint8_t const * value () const {
return _value;