X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fkey.cc;h=43e59dfc6de756a078731c5cf87687d8bcb614ea;hb=edf35a7acb05289dc024733efd6e13205def5174;hp=8cac04a39416357df8e41badacc43215b7d422ea;hpb=8d6c3c9ae554430582dcb016897e87f6d04d5d78;p=libdcp.git diff --git a/src/key.cc b/src/key.cc index 8cac04a3..43e59dfc 100644 --- a/src/key.cc +++ b/src/key.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,19 +17,23 @@ */ -#include -#include -#include +/** @file src/key.cc + * @brief Key class. + */ + +#include "key.h" #include "AS_DCP.h" #include "KM_prng.h" #include "KM_util.h" -#include "key.h" +#include +#include +#include using std::string; using std::stringstream; using std::setw; using std::setfill; -using namespace libdcp; +using namespace dcp; Key::Key () : _value (new uint8_t[ASDCP::KeyLen]) @@ -86,13 +90,13 @@ Key::hex () const } bool -libdcp::operator== (Key const & a, Key const & b) +dcp::operator== (Key const & a, Key const & b) { return memcmp (a.value(), b.value(), ASDCP::KeyLen) == 0; } bool -libdcp::operator!= (Key const & a, Key const & b) +dcp::operator!= (Key const & a, Key const & b) { return !(a == b); }