summaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/key.h b/src/key.h
index 690799f3..d51150c4 100644
--- a/src/key.h
+++ b/src/key.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -31,21 +31,26 @@
files in the program, then also delete it here.
*/
+
/** @file src/key.h
- * @brief Key class.
+ * @brief Key class
*/
+
#ifndef LIBDCP_KEY_H
#define LIBDCP_KEY_H
+
#include <asdcp/AS_DCP.h>
#include <stdint.h>
#include <string>
+
namespace dcp {
+
/** @class Key
- * @brief A key for decrypting/encrypting assets.
+ * @brief A key for decrypting/encrypting assets
*/
class Key
{
@@ -78,13 +83,15 @@ public:
private:
/** Raw key value */
- uint8_t* _value;
- int _length;
+ uint8_t* _value = nullptr;
+ int _length = 0;
};
+
extern bool operator== (Key const & a, Key const & b);
extern bool operator!= (Key const & a, Key const & b);
+
}
#endif