Everywhere: Hoist the Libraries folder to the top-level

This commit is contained in:
Timothy Flynn
2024-11-09 12:25:08 -05:00
committed by Andreas Kling
parent 950e819ee7
commit 93712b24bf
4547 changed files with 104 additions and 113 deletions

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024, Ben Wiederhake
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCrypto/Cipher/Cipher.h>
namespace Crypto::Cipher {
bool padding_always_needs_extra_block(PaddingMode mode)
{
switch (mode) {
case PaddingMode::CMS:
return true;
case PaddingMode::RFC5246:
case PaddingMode::Null:
case PaddingMode::Bit:
case PaddingMode::Random:
case PaddingMode::Space:
case PaddingMode::ZeroLength:
return false;
}
VERIFY_NOT_REACHED();
}
}