mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 12:25:08 +00:00
LibCrypto: Format all files with clang-format 10
This commit is contained in:
parent
d52ea37717
commit
d497521d2b
4 changed files with 85 additions and 86 deletions
|
@ -89,7 +89,7 @@ struct AESCipherKey : public CipherKey {
|
||||||
expand_decrypt_key(user_key, key_bits);
|
expand_decrypt_key(user_key, key_bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~AESCipherKey() override {}
|
virtual ~AESCipherKey() override { }
|
||||||
|
|
||||||
size_t rounds() const { return m_rounds; }
|
size_t rounds() const { return m_rounds; }
|
||||||
size_t length() const { return m_bits / 8; }
|
size_t length() const { return m_bits / 8; }
|
||||||
|
|
|
@ -137,4 +137,3 @@ private:
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,13 +33,13 @@
|
||||||
namespace Crypto {
|
namespace Crypto {
|
||||||
namespace Cipher {
|
namespace Cipher {
|
||||||
|
|
||||||
template <typename T>
|
template<typename T>
|
||||||
class CBC : public Mode<T> {
|
class CBC : public Mode<T> {
|
||||||
public:
|
public:
|
||||||
constexpr static size_t IVSizeInBits = 128;
|
constexpr static size_t IVSizeInBits = 128;
|
||||||
|
|
||||||
virtual ~CBC() {}
|
virtual ~CBC() { }
|
||||||
template <typename... Args>
|
template<typename... Args>
|
||||||
explicit constexpr CBC<T>(Args... args)
|
explicit constexpr CBC<T>(Args... args)
|
||||||
: Mode<T>(args...)
|
: Mode<T>(args...)
|
||||||
{
|
{
|
||||||
|
@ -126,7 +126,7 @@ namespace Cipher {
|
||||||
out.trim(offset);
|
out.trim(offset);
|
||||||
this->prune_padding(out);
|
this->prune_padding(out);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -219,7 +219,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
~RSA_PKCS1_EME() {}
|
~RSA_PKCS1_EME() { }
|
||||||
|
|
||||||
virtual void encrypt(const ByteBuffer& in, ByteBuffer& out) override;
|
virtual void encrypt(const ByteBuffer& in, ByteBuffer& out) override;
|
||||||
virtual void decrypt(const ByteBuffer& in, ByteBuffer& out) override;
|
virtual void decrypt(const ByteBuffer& in, ByteBuffer& out) override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue