1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

LibCrypto: Fix some issues preventing compilation w/ clang 10

This commit is contained in:
AnotherTest 2020-05-29 19:54:23 +04:30 committed by Andreas Kling
parent d497521d2b
commit 2a241a11bb
3 changed files with 2 additions and 3 deletions

View file

@ -265,7 +265,7 @@ constexpr static bool der_length_sequence(ASN1::List* list, size_t in_length, si
return true;
}
static bool der_decode_sequence(const u8* in, size_t in_length, ASN1::List* list, size_t out_length, bool ordered = true)
static inline bool der_decode_sequence(const u8* in, size_t in_length, ASN1::List* list, size_t out_length, bool ordered = true)
{
if (in_length < 2) {
dbg() << "header too small";

View file

@ -53,7 +53,7 @@ public:
return builder.build();
}
virtual size_t IV_length() const { return IVSizeInBits / 8; }
virtual size_t IV_length() const override { return IVSizeInBits / 8; }
virtual Optional<ByteBuffer> encrypt(const ByteBuffer& in, ByteBuffer& out, Optional<ByteBuffer> ivec = {}) override
{