mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17: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
|
@ -35,8 +35,14 @@ public:
|
|||
return ByteBuffer::create_uninitialized(input_size + T::block_size() - remainder);
|
||||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
virtual String class_name() const = 0;
|
||||
T& cipher() { return m_cipher; }
|
||||
#endif
|
||||
|
||||
T& cipher()
|
||||
{
|
||||
return m_cipher;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual void prune_padding(Bytes& data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue