mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
Add a LibCrypto::Authentication::KMAC helper over OpenSSL. Add keygen/import/export logic into WebCrypto. Register KMAC128/KMAC256 operations with SubtleCrypto.
41 lines
909 B
CMake
41 lines
909 B
CMake
add_cxx_compile_options(-Wvla)
|
|
|
|
set(SOURCES
|
|
OpenSSL.cpp
|
|
ASN1/ASN1.cpp
|
|
ASN1/DER.cpp
|
|
ASN1/PEM.cpp
|
|
Authentication/HMAC.cpp
|
|
Authentication/KMAC.cpp
|
|
BigFraction/BigFraction.cpp
|
|
BigInt/SignedBigInteger.cpp
|
|
BigInt/UnsignedBigInteger.cpp
|
|
Certificate/Certificate.cpp
|
|
Cipher/AES.cpp
|
|
Cipher/ChaCha.cpp
|
|
Curves/EdwardsCurve.cpp
|
|
Curves/SECPxxxr1.cpp
|
|
Hash/Argon2.cpp
|
|
Hash/SHAKE.cpp
|
|
Hash/BLAKE2b.cpp
|
|
Hash/HKDF.cpp
|
|
Hash/MD5.cpp
|
|
Hash/PBKDF2.cpp
|
|
Hash/SHA1.cpp
|
|
Hash/SHA2.cpp
|
|
Hash/SHA3.cpp
|
|
PK/EC.cpp
|
|
PK/MLDSA.cpp
|
|
PK/MLKEM.cpp
|
|
PK/RSA.cpp
|
|
)
|
|
|
|
ladybird_lib(LibCrypto crypto)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(libtommath REQUIRED IMPORTED_TARGET libtommath)
|
|
target_link_libraries(LibCrypto PRIVATE PkgConfig::libtommath)
|
|
|
|
find_package(OpenSSL REQUIRED)
|
|
target_link_libraries(LibCrypto PUBLIC OpenSSL::Crypto)
|