X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcrypto.h;h=41a93010d795e1a5c1798a542d3247becb481ffe;hb=dba7e1137282b52a1bd6ad1d56fe6371a8c97e30;hp=ea46162a4ab9151f56ce49073e186d5a2f74cc89;hpb=5ab0c3bc04e4aa5acd883bb8126fc6b185c6c5d6;p=dcpomatic.git diff --git a/src/lib/crypto.h b/src/lib/crypto.h index ea46162a4..41a93010d 100644 --- a/src/lib/crypto.h +++ b/src/lib/crypto.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,14 +18,18 @@ */ -#include + +#include + namespace dcpomatic { - -boost::shared_array random_iv (); -dcp::Data encrypt (std::string plaintext, boost::shared_array key, boost::shared_array iv); -std::string decrypt (dcp::Data ciphertext, boost::shared_array key, boost::shared_array iv); -int crypto_key_length (); + + +dcp::ArrayData random_iv (); +dcp::ArrayData encrypt (std::string plaintext, dcp::ArrayData key, dcp::ArrayData iv); +std::string decrypt (dcp::ArrayData ciphertext, dcp::ArrayData key, dcp::ArrayData iv); +int crypto_key_length (); + }