mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Implement ChaCha20-Poly1305 AEAD using OpenSSL and expose it through the WebCrypto API, including key management and AEAD parameters. Add WPT: /encrypt_decrypt/chacha20_poly1305.tentative.https.any.worker.html
40 lines
881 B
CMake
40 lines
881 B
CMake
add_cxx_compile_options(-Wvla)
|
|
|
|
set(SOURCES
|
|
OpenSSL.cpp
|
|
ASN1/ASN1.cpp
|
|
ASN1/DER.cpp
|
|
ASN1/PEM.cpp
|
|
Authentication/HMAC.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)
|