1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 19:02:06 +00:00
serenity/Libraries/LibCrypto
Nico Weber 8d3d0054ed Crypto: Make AES call malloc much less often
ByteBuffer::slice_view() allocates a new ByteBuffer object,
which as a RefPtr and everything.

Nowadays it should probably return a Bytes / Span<u8>, but AES was only
using slice_view() to extract the pointer again.  So just add ady a
range check at the top, and do pointer arithmetic to do the same thing
faster.

Reduces time to run `disasm /bin/id` by a bit under 40%,
from ~8.3s to ~5s (min-of-3 runs).
2020-08-11 16:25:36 +02:00
..
ASN1 LibCrypto: Format the comments in ASN1/PEM.h correctly 2020-08-02 18:57:51 +02:00
Authentication LibCrypto: Add a Hash::Manager that can act as any one of the hashes 2020-05-02 12:24:10 +02:00
BigInt LibCrypto: Do not trim leading zeros in export_data by default 2020-07-31 18:25:20 +02:00
Checksum LibCrypto: Add some checksum algorithms 2020-07-30 17:08:19 +02:00
Cipher Crypto: Make AES call malloc much less often 2020-08-11 16:25:36 +02:00
Hash LibCrypto: Correctly pad blocks with FinalBlockSize < size < BlockSize 2020-06-04 15:58:04 +02:00
NumberTheory LibCrypto: Already using strong crypto 2020-07-28 19:10:10 +02:00
PK LibCrypto: Do not trim leading zeros in export_data by default 2020-07-31 18:25:20 +02:00
CMakeLists.txt LibCrypto: Add some checksum algorithms 2020-07-30 17:08:19 +02:00