diff options
Diffstat (limited to 'src/lib/crypto.cc')
| -rw-r--r-- | src/lib/crypto.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/crypto.cc b/src/lib/crypto.cc index b02a3d34c..c67fc27fa 100644 --- a/src/lib/crypto.cc +++ b/src/lib/crypto.cc @@ -29,7 +29,6 @@ #include <boost/scoped_array.hpp> using std::string; -using boost::shared_array; using namespace dcpomatic; /** The cipher that this code uses */ @@ -43,7 +42,7 @@ dcpomatic::random_iv () RAND_bytes (iv.data().get(), iv.size()); return iv; } - + dcp::Data dcpomatic::encrypt (string plaintext, dcp::Data key, dcp::Data iv) { @@ -101,7 +100,7 @@ dcpomatic::decrypt (dcp::Data ciphertext, dcp::Data key, dcp::Data iv) } int plaintext_len = len; - + r = EVP_DecryptFinal_ex (ctx, plaintext.data().get() + len, &len); if (r != 1) { throw CryptoError ("could not finish decryption"); |
