Prefer repository-cryptopp to system installed one

This commit is contained in:
Sebastian Messmer 2018-05-20 13:33:16 -07:00
parent ccdb091a84
commit ca68102a50
531 changed files with 19 additions and 18 deletions

View File

@ -1,6 +1,6 @@
#include "cpp-utils/crypto/cryptopp_byte.h"
#include "Gzip.h"
#include <cryptopp/gzip.h>
#include <vendor_cryptopp/gzip.h>
using cpputils::Data;

View File

@ -2,7 +2,7 @@
#ifndef _CPPUTILS_CRYPTO_CRYPTOPP_BYTE_H
#define _CPPUTILS_CRYPTO_CRYPTOPP_BYTE_H
#include <cryptopp/cryptlib.h>
#include <vendor_cryptopp/cryptlib.h>
// If we're running an older CryptoPP version, CryptoPP::byte isn't defined yet.
// Define it. Refer to "byte" type in the global namespace (placed by CryptoPP).

View File

@ -1,6 +1,6 @@
#include "Hash.h"
#include <cpp-utils/random/Random.h>
#include <cryptopp/sha.h>
#include <vendor_cryptopp/sha.h>
using cpputils::Random;
using CryptoPP::SHA512;

View File

@ -1,5 +1,5 @@
#include "Scrypt.h"
#include <cryptopp/scrypt.h>
#include <vendor_cryptopp/scrypt.h>
using std::string;

View File

@ -7,7 +7,7 @@
#include "../../data/Data.h"
#include "../../random/Random.h"
#include <boost/optional.hpp>
#include <cryptopp/modes.h>
#include <vendor_cryptopp/modes.h>
#include "Cipher.h"
#include "EncryptionKey.h"

View File

@ -6,7 +6,7 @@
#include "../../data/FixedSizeData.h"
#include "../../data/Data.h"
#include "../../random/Random.h"
#include <cryptopp/gcm.h>
#include <vendor_cryptopp/gcm.h>
#include "Cipher.h"
#include "EncryptionKey.h"

View File

@ -2,11 +2,11 @@
#ifndef MESSMER_CPPUTILS_CRYPTO_SYMMETRIC_CIPHERS_H_
#define MESSMER_CPPUTILS_CRYPTO_SYMMETRIC_CIPHERS_H_
#include <cryptopp/aes.h>
#include <cryptopp/twofish.h>
#include <cryptopp/serpent.h>
#include <cryptopp/cast.h>
#include <cryptopp/mars.h>
#include <vendor_cryptopp/aes.h>
#include <vendor_cryptopp/twofish.h>
#include <vendor_cryptopp/serpent.h>
#include <vendor_cryptopp/cast.h>
#include <vendor_cryptopp/mars.h>
#include "GCM_Cipher.h"
#include "CFB_Cipher.h"

View File

@ -1,6 +1,6 @@
#include "Data.h"
#include <stdexcept>
#include <cryptopp/hex.h>
#include <vendor_cryptopp/hex.h>
#include <cpp-utils/crypto/cryptopp_byte.h>
using std::istream;

View File

@ -2,7 +2,7 @@
#ifndef MESSMER_CPPUTILS_DATA_FIXEDSIZEDATA_H_
#define MESSMER_CPPUTILS_DATA_FIXEDSIZEDATA_H_
#include <cryptopp/hex.h>
#include <vendor_cryptopp/hex.h>
#include <string>
#include <cstring>
#include "../assert/assert.h"

View File

@ -4,7 +4,7 @@
#include "cpp-utils/crypto/cryptopp_byte.h"
#include "RandomGenerator.h"
#include <cryptopp/osrng.h>
#include <vendor_cryptopp/osrng.h>
namespace cpputils {
class OSRandomGenerator final : public RandomGenerator {

View File

@ -4,7 +4,7 @@
#include "../thread/LoopThread.h"
#include "ThreadsafeRandomDataBuffer.h"
#include <cryptopp/osrng.h>
#include <vendor_cryptopp/osrng.h>
namespace cpputils {
//TODO Test

View File

@ -1,7 +1,7 @@
#include "BasedirMetadata.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <cryptopp/sha.h>
#include <vendor_cryptopp/sha.h>
#include <boost/filesystem/operations.hpp>
#include "LocalStateDir.h"

View File

@ -3,7 +3,7 @@
#include <vector>
#include <boost/filesystem.hpp>
#include <cpp-utils/data/Data.h>
#include <cryptopp/hex.h>
#include <vendor_cryptopp/hex.h>
#include <cpp-utils/crypto/symmetric/ciphers.h>
#include <cpp-utils/tempfile/TempFile.h>
#include <cryfs/config/CryConfigFile.h>

View File

@ -1,6 +1,7 @@
project(mycryptopp)
add_library(cryptopp dummy.cpp)
# note: include directory is called vendor_cryptopp instead of cryptopp to avoid include clashes with system headers
target_include_directories(cryptopp SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
find_package(OpenMP)
@ -17,7 +18,7 @@ set(BUILD_TESTING OFF)
set(BUILD_DOCUMENTATION OFF)
set(BUILD_SHARED OFF)
set(BUILD_STATIC ON)
add_subdirectory(cryptopp EXCLUDE_FROM_ALL)
add_subdirectory(vendor_cryptopp EXCLUDE_FROM_ALL)
target_link_libraries(cryptopp PRIVATE cryptopp-static)

Some files were not shown because too many files have changed in this diff Show More