diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-23 15:35:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-23 15:35:24 +0100 |
| commit | 6c37cc1979b2a01205a888c4c98f3334685ee8dd (patch) | |
| tree | 9de52a3053e57bdf79a7986319cb097b33e46b5c /src/key.h | |
| parent | b75d977a38f039fd68ed5d4055ae70b4bf631603 (diff) | |
Tidying.
Diffstat (limited to 'src/key.h')
| -rw-r--r-- | src/key.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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 |
