mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
This adds a thin wrapper to LibCrypto for generating cryptographically secure random values and replaces current usages of PRNG within LibCrypto as well.
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
shared_library("LibCrypto") {
|
|
output_name = "crypto"
|
|
include_dirs = [ "//Userland/Libraries" ]
|
|
cflags_cc = [ "-Wvla" ]
|
|
deps = [
|
|
"//AK",
|
|
"//Meta/gn/build/libs/openssl",
|
|
"//Userland/Libraries/LibCore",
|
|
]
|
|
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",
|
|
"Checksum/Adler32.cpp",
|
|
"Checksum/CRC32.cpp",
|
|
"Checksum/cksum.cpp",
|
|
"Cipher/AES.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",
|
|
"SecureRandom.cpp",
|
|
]
|
|
}
|