2024-07-19 15:54:52 -06:00
|
|
|
add_cxx_compile_options(-Wvla)
|
2021-05-13 12:14:35 +04:30
|
|
|
|
2020-05-06 18:40:06 +03:00
|
|
|
set(SOURCES
|
2024-12-23 18:15:15 +01:00
|
|
|
OpenSSL.cpp
|
2021-02-14 14:50:42 +03:30
|
|
|
ASN1/ASN1.cpp
|
|
|
|
|
ASN1/DER.cpp
|
|
|
|
|
ASN1/PEM.cpp
|
2025-02-23 12:10:27 +01:00
|
|
|
Authentication/HMAC.cpp
|
2022-01-16 12:28:51 +01:00
|
|
|
BigFraction/BigFraction.cpp
|
2020-06-04 22:46:18 +04:30
|
|
|
BigInt/SignedBigInteger.cpp
|
2020-08-15 23:20:33 +02:00
|
|
|
BigInt/UnsignedBigInteger.cpp
|
2024-11-24 21:55:03 +01:00
|
|
|
Certificate/Certificate.cpp
|
2020-05-06 18:40:06 +03:00
|
|
|
Cipher/AES.cpp
|
2025-02-16 13:02:13 +01:00
|
|
|
Curves/EdwardsCurve.cpp
|
2025-01-26 21:09:02 +01:00
|
|
|
Curves/SECPxxxr1.cpp
|
2025-01-12 17:17:51 +01:00
|
|
|
Hash/BLAKE2b.cpp
|
2025-02-16 17:38:58 +01:00
|
|
|
Hash/HKDF.cpp
|
2025-01-12 17:17:51 +01:00
|
|
|
Hash/MD5.cpp
|
2025-02-16 17:38:58 +01:00
|
|
|
Hash/PBKDF2.cpp
|
2025-01-12 17:17:51 +01:00
|
|
|
Hash/SHA1.cpp
|
|
|
|
|
Hash/SHA2.cpp
|
2020-05-06 18:40:06 +03:00
|
|
|
PK/RSA.cpp
|
2024-11-26 18:11:15 +01:00
|
|
|
PK/EC.cpp
|
2024-12-20 10:32:11 -06:00
|
|
|
SecureRandom.cpp
|
2020-05-06 18:40:06 +03:00
|
|
|
)
|
|
|
|
|
|
2025-06-30 08:11:44 -07:00
|
|
|
ladybird_lib(LibCrypto crypto)
|
2024-12-20 09:06:14 +01:00
|
|
|
|
2025-04-26 11:53:09 +02:00
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
|
pkg_check_modules(libtommath REQUIRED IMPORTED_TARGET libtommath)
|
|
|
|
|
target_link_libraries(LibCrypto PRIVATE PkgConfig::libtommath)
|
|
|
|
|
|
2024-12-20 09:06:14 +01:00
|
|
|
find_package(OpenSSL REQUIRED)
|
|
|
|
|
target_link_libraries(LibCrypto PUBLIC OpenSSL::Crypto)
|