mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibCrypto: Fix some issues preventing compilation w/ clang 10
This commit is contained in:
parent
d497521d2b
commit
2a241a11bb
3 changed files with 2 additions and 3 deletions
|
@ -265,7 +265,7 @@ constexpr static bool der_length_sequence(ASN1::List* list, size_t in_length, si
|
||||||
return true;
|
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) {
|
if (in_length < 2) {
|
||||||
dbg() << "header too small";
|
dbg() << "header too small";
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
return builder.build();
|
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
|
virtual Optional<ByteBuffer> encrypt(const ByteBuffer& in, ByteBuffer& out, Optional<ByteBuffer> ivec = {}) override
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,7 +61,6 @@ constexpr const char* DEFAULT_DIGEST_SUITE { "HMAC-SHA256" };
|
||||||
constexpr const char* DEFAULT_HASH_SUITE { "SHA256" };
|
constexpr const char* DEFAULT_HASH_SUITE { "SHA256" };
|
||||||
constexpr const char* DEFAULT_CIPHER_SUITE { "AES_CBC" };
|
constexpr const char* DEFAULT_CIPHER_SUITE { "AES_CBC" };
|
||||||
constexpr const char* DEFAULT_SERVER { "www.google.com" };
|
constexpr const char* DEFAULT_SERVER { "www.google.com" };
|
||||||
constexpr int DEFAULT_PORT { 443 };
|
|
||||||
|
|
||||||
// listAllTests
|
// listAllTests
|
||||||
// Cipher
|
// Cipher
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue