summaryrefslogtreecommitdiff
path: root/test/crypto_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-01 23:40:01 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-02 23:10:04 +0100
commit6fa9748f382302fa88292b4219598bb81edc7bd0 (patch)
tree83f0859c934da2293913efb2c5ba029526e5634d /test/crypto_test.cc
parentb639b7b20f1ab341194bcd5c76700ca419254d11 (diff)
Replace dcp::Data with dcp::ArrayData
Diffstat (limited to 'test/crypto_test.cc')
-rw-r--r--test/crypto_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/crypto_test.cc b/test/crypto_test.cc
index e1069b42f..26c6748b8 100644
--- a/test/crypto_test.cc
+++ b/test/crypto_test.cc
@@ -29,12 +29,12 @@ using std::list;
BOOST_AUTO_TEST_CASE (crypto_test)
{
- dcp::Data key (dcpomatic::crypto_key_length());
- dcp::Data iv = dcpomatic::random_iv ();
+ dcp::ArrayData key (dcpomatic::crypto_key_length());
+ dcp::ArrayData iv = dcpomatic::random_iv ();
- RAND_bytes (key.data().get(), dcpomatic::crypto_key_length());
+ RAND_bytes (key.data(), dcpomatic::crypto_key_length());
- dcp::Data ciphertext = dcpomatic::encrypt ("Can you see any fish?", key, iv);
+ dcp::ArrayData ciphertext = dcpomatic::encrypt ("Can you see any fish?", key, iv);
BOOST_REQUIRE_EQUAL (dcpomatic::decrypt (ciphertext, key, iv), "Can you see any fish?");
key.data()[5]++;