boringssl/crypto/cipher/CMakeLists.txt
Adam Langley cc8fcf45bb Add 40-bit RC2 support.
As useless as it might seem, the certificates in PKCS#12 files appear to
always be encrypted with 40-bit RC2. OpenSSL, NSS and Windows are all
the same on this point. Thus, in order to be able to import PKCS#12
files we need RC2 support.

RC2 has deliberately not been added to EVP_get_cipherbynid so that the
linker can drop the RC2 code unless the PKCS#12 functions are actually
called.

Change-Id: I5b2062fdf78cb622a8038c326da01aac8fb58962
Reviewed-on: https://boringssl-review.googlesource.com/1590
Reviewed-by: Adam Langley <agl@google.com>
2014-08-25 21:37:20 +00:00

35 lines
366 B
CMake

include_directories(. .. ../../include)
add_library(
cipher
OBJECT
cipher.c
cipher_error.c
derive_key.c
aead.c
e_null.c
e_rc2.c
e_rc4.c
e_des.c
e_aes.c
e_chacha20poly1305.c
)
add_executable(
cipher_test
cipher_test.c
)
add_executable(
aead_test
aead_test.c
)
target_link_libraries(cipher_test crypto)
target_link_libraries(aead_test crypto)