mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibCrypto: Remove all uses of VLAs
This removes all uses of VLAs with either Vectors with inline capacity for the expected soft upper bound, or the occasional heap allocation.
This commit is contained in:
committed by
Andreas Kling
parent
0d50d3ed1e
commit
b05beb79d4
Notes:
sideshowbarker
2024-07-18 18:14:19 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/b05beb79d48 Pull-request: https://github.com/SerenityOS/serenity/pull/7074 Issue: https://github.com/SerenityOS/serenity/issues/7071
@@ -21,8 +21,8 @@ public:
|
||||
|
||||
using DigestType = DigestT;
|
||||
|
||||
static size_t block_size() { return BlockSize; };
|
||||
static size_t digest_size() { return DigestSize; };
|
||||
constexpr static size_t block_size() { return BlockSize; };
|
||||
constexpr static size_t digest_size() { return DigestSize; };
|
||||
|
||||
virtual void update(const u8*, size_t) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user