mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
5f3f089494
Added basic EC private and public key definitions as well as ASN.1 encoding and decoding. A lot of refactoring can be made around the ASN.1 processing (here and in other parts of the codebase) by utilizing what is available in `LibCrypto::Certificate` as macros, but I think it's outside the scope of implementing ECDH support for WebCryptoAPI.
41 lines
1 KiB
CMake
41 lines
1 KiB
CMake
add_cxx_compile_options(-Wvla)
|
|
|
|
set(SOURCES
|
|
AEAD/ChaCha20Poly1305.cpp
|
|
ASN1/ASN1.cpp
|
|
ASN1/DER.cpp
|
|
ASN1/PEM.cpp
|
|
Authentication/GHash.cpp
|
|
Authentication/Poly1305.cpp
|
|
BigFraction/BigFraction.cpp
|
|
BigInt/Algorithms/BitwiseOperations.cpp
|
|
BigInt/Algorithms/Division.cpp
|
|
BigInt/Algorithms/GCD.cpp
|
|
BigInt/Algorithms/ModularInverse.cpp
|
|
BigInt/Algorithms/ModularPower.cpp
|
|
BigInt/Algorithms/Multiplication.cpp
|
|
BigInt/Algorithms/SimpleOperations.cpp
|
|
BigInt/SignedBigInteger.cpp
|
|
BigInt/UnsignedBigInteger.cpp
|
|
Certificate/Certificate.cpp
|
|
Checksum/Adler32.cpp
|
|
Checksum/cksum.cpp
|
|
Checksum/CRC32.cpp
|
|
Cipher/AES.cpp
|
|
Cipher/Cipher.cpp
|
|
Cipher/ChaCha20.cpp
|
|
Curves/Curve25519.cpp
|
|
Curves/Ed25519.cpp
|
|
Curves/X25519.cpp
|
|
Curves/X448.cpp
|
|
Hash/BLAKE2b.cpp
|
|
Hash/MD5.cpp
|
|
Hash/SHA1.cpp
|
|
Hash/SHA2.cpp
|
|
NumberTheory/ModularFunctions.cpp
|
|
PK/RSA.cpp
|
|
PK/EC.cpp
|
|
)
|
|
|
|
serenity_lib(LibCrypto crypto)
|
|
target_link_libraries(LibCrypto PRIVATE LibCore)
|