6effbf24bc
Postgres contains a “pqcrypto” module that showcases the worst of 90's crypto, including Blowfish and CAST5 in CFB, CBC, and ECB modes. (Also, 64-bit keys for both of those.) In order to minimise the patching needed to build Postgres, put these things in decrepit. Change-Id: I8390c5153dd7227eef07293a4363878d79df8b21 Reviewed-on: https://boringssl-review.googlesource.com/c/34044 Reviewed-by: Adam Langley <agl@google.com> Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: Adam Langley <agl@google.com>
48 lines
884 B
CMake
48 lines
884 B
CMake
include_directories(../include)
|
|
|
|
add_library(
|
|
decrepit
|
|
|
|
bio/base64_bio.c
|
|
blowfish/blowfish.c
|
|
cast/cast.c
|
|
cast/cast_tables.c
|
|
cfb/cfb.c
|
|
des/cfb64ede.c
|
|
dh/dh_decrepit.c
|
|
dsa/dsa_decrepit.c
|
|
evp/dss1.c
|
|
evp/evp_do_all.c
|
|
obj/obj_decrepit.c
|
|
rc4/rc4_decrepit.c
|
|
ripemd/ripemd.c
|
|
rsa/rsa_decrepit.c
|
|
ssl/ssl_decrepit.c
|
|
x509/x509_decrepit.c
|
|
xts/xts.c
|
|
)
|
|
|
|
add_dependencies(decrepit global_target)
|
|
|
|
target_link_libraries(decrepit crypto ssl)
|
|
|
|
add_executable(
|
|
decrepit_test
|
|
|
|
blowfish/blowfish_test.cc
|
|
cast/cast_test.cc
|
|
cfb/cfb_test.cc
|
|
ripemd/ripemd_test.cc
|
|
|
|
$<TARGET_OBJECTS:boringssl_gtest_main>
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
add_dependencies(decrepit_test global_target)
|
|
|
|
target_link_libraries(decrepit_test crypto decrepit boringssl_gtest)
|
|
if(WIN32)
|
|
target_link_libraries(decrepit_test ws2_32)
|
|
endif()
|
|
add_dependencies(all_tests decrepit_test)
|