ladybird/Tests/LibCrypto
devgianlu 0fc02d4d00 LibCrypto: Make PKSystem methods return a ByteBuffer directly
It used to be that the caller would supply a buffer to write the output
to. This created an anti-pattern in multiple places where the caller
would allocate a `ByteBuffer` and then use `.bytes()` to provide it to
the `PKSystem` method. Then the callee would resize the output buffer
and reassign it, but because the resize was on `Bytes` and not on
`ByteBuffer`, the caller using the latter would cause a bug.

Additionally, in pretty much all cases the buffer was pre-allocated
shortly before.
2025-01-13 17:00:18 +01:00
..
CMakeLists.txt LibCrypto: Implement and test HKDF 2024-10-23 11:33:58 -06:00
TestAES.cpp LibCrypto: Implement AES-KW 2024-12-17 11:00:14 +01:00
TestASN1.cpp LibCrypto: Add a minimal DER encoder 2024-03-16 01:17:02 -06:00
TestBigFraction.cpp LibCrypto: Convert BigFraction stringification to String 2024-12-04 08:01:35 -05:00
TestBigInteger.cpp LibCrypto: Protect the SignedBigInteger ctor against integer overflow 2024-12-19 23:37:30 +01:00
TestChaCha20.cpp LibCrypto: Add ChaCha20 2022-04-13 09:13:17 +04:30
TestChacha20Poly1305.cpp Everywhere: Prefer _string when constructing strings from literals 2024-02-08 11:01:10 -05:00
TestChecksum.cpp LibCrypto: Avoid needless ByteString usage in unit tests 2024-04-04 11:23:21 +02:00
TestCurves.cpp LibCrypto+LibTLS: Switch to the generic SECPxxxr1 implementation 2023-11-27 09:43:07 +03:30
TestEd25519.cpp LibCrypto: Add Ed25519 2022-05-12 23:47:13 +04:30
TestHash.cpp LibCrypto: Replace all hashes implementation with OpenSSL 2024-12-22 18:53:45 +01:00
TestHKDF.cpp LibCrypto: Implement and test HKDF 2024-10-23 11:33:58 -06:00
TestHMAC.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
TestMGF.cpp LibCrypto: Add MGF1 2024-04-08 09:34:49 -06:00
TestOAEP.cpp LibCrypto: Make PKSystem methods return a ByteBuffer directly 2025-01-13 17:00:18 +01:00
TestPBKDF2.cpp LibCrypto: Add PBKDF2 2023-04-09 17:05:18 -06:00
TestPoly1305.cpp LibCrypto: Add Poly1305 2022-04-08 14:02:02 +04:30
TestRSA.cpp LibCrypto: Make PKSystem methods return a ByteBuffer directly 2025-01-13 17:00:18 +01:00