diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-08 19:00:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-08 19:00:15 +0100 |
| commit | 62f94281437fc54f4806cc65e3aecca5cd118f7c (patch) | |
| tree | bbb44c0266b21f112f4a6d4f64e777d6894b2e8e /test/decryption_test.cc | |
| parent | 321d1b056040a472aba7ac43dc4938087124ec2e (diff) | |
Use openssl's base-64 decoding for KDMs.
Diffstat (limited to 'test/decryption_test.cc')
| -rw-r--r-- | test/decryption_test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/decryption_test.cc b/test/decryption_test.cc index 7f919898..e075a512 100644 --- a/test/decryption_test.cc +++ b/test/decryption_test.cc @@ -67,3 +67,12 @@ BOOST_AUTO_TEST_CASE (decryption_test) BOOST_CHECK_EQUAL (plaintext_frame->size().height, encrypted_frame->size().height); BOOST_CHECK_EQUAL (memcmp (plaintext_frame->data(), encrypted_frame->data(), plaintext_frame->stride() * plaintext_frame->size().height), 0); } + +/** Load in a KDM that didn't work at first */ +BOOST_AUTO_TEST_CASE (failing_kdm_test) +{ + libdcp::KDM kdm ( + "test/data/target.pem.crt.de5d4eba-e683-41ca-bdda-aa4ad96af3f4.kdm.xml", + "test/data/private.key" + ); +} |
