1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:07:36 +00:00

LibCrypto: Exclude AESCipher{Block, Key}::to_string() from the Kernel

These use infallible Strings and are not actually used in the Kernel,
so let's just ifdef them out for now.
This commit is contained in:
Idan Horowitz 2022-02-15 21:22:11 +02:00 committed by Andreas Kling
parent 7bd409dbdf
commit 6959e7f778
2 changed files with 12 additions and 1 deletions

View file

@ -24,6 +24,7 @@ constexpr void swap_keys(u32* keys, size_t i, size_t j)
keys[j] = temp;
}
#ifndef KERNEL
String AESCipherBlock::to_string() const
{
StringBuilder builder;
@ -39,6 +40,7 @@ String AESCipherKey::to_string() const
builder.appendff("{:02x}", m_rd_keys[i]);
return builder.build();
}
#endif
void AESCipherKey::expand_encrypt_key(ReadonlyBytes user_key, size_t bits)
{