diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-15 21:21:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-17 00:42:54 +0200 |
| commit | 5f4a41f20a189ec2863760cd1f5117435277f40f (patch) | |
| tree | 36d1814cfe9071150c3b4384d4444f5fa28da153 /src/lib/crypto.cc | |
| parent | e9cca90a162e3e4b1db4a5e5188831beaa69d44e (diff) | |
Remove some unnecessary using statements.
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"); |
