mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:07:35 +00:00
LibCrypto: Exclude class_name() methods from the Kernel
These are only used by Userland and contain infallible String allocations, so let's just ifdef them out of the Kernel.
This commit is contained in:
parent
6959e7f778
commit
c8db8d6152
16 changed files with 119 additions and 21 deletions
|
@ -7,10 +7,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/ByteReader.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Endian.h>
|
||||
#include <AK/Types.h>
|
||||
#include <LibCrypto/Hash/HashFunction.h>
|
||||
|
||||
#ifndef KERNEL
|
||||
# include <AK/String.h>
|
||||
#endif
|
||||
|
||||
namespace Crypto {
|
||||
namespace Authentication {
|
||||
|
||||
|
@ -44,7 +48,12 @@ public:
|
|||
|
||||
constexpr static size_t digest_size() { return TagType::Size; }
|
||||
|
||||
String class_name() const { return "GHash"; }
|
||||
#ifndef KERNEL
|
||||
String class_name() const
|
||||
{
|
||||
return "GHash";
|
||||
}
|
||||
#endif
|
||||
|
||||
TagType process(ReadonlyBytes aad, ReadonlyBytes cipher);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue