diff --git a/Userland/Libraries/LibCrypto/Cipher/Mode/CBC.h b/Userland/Libraries/LibCrypto/Cipher/Mode/CBC.h index 4bf5065bdc0..a32a0874e31 100644 --- a/Userland/Libraries/LibCrypto/Cipher/Mode/CBC.h +++ b/Userland/Libraries/LibCrypto/Cipher/Mode/CBC.h @@ -19,7 +19,7 @@ class CBC : public Mode { public: constexpr static size_t IVSizeInBits = 128; - virtual ~CBC() { } + virtual ~CBC() = default; template explicit constexpr CBC(Args... args) : Mode(args...) diff --git a/Userland/Libraries/LibCrypto/Cipher/Mode/CTR.h b/Userland/Libraries/LibCrypto/Cipher/Mode/CTR.h index 730f06e0bc1..8a0d5570831 100644 --- a/Userland/Libraries/LibCrypto/Cipher/Mode/CTR.h +++ b/Userland/Libraries/LibCrypto/Cipher/Mode/CTR.h @@ -88,7 +88,7 @@ class CTR : public Mode { public: constexpr static size_t IVSizeInBits = 128; - virtual ~CTR() { } + virtual ~CTR() = default; // Must intercept `Intent`, because AES must always be set to // Encryption, even when decrypting AES-CTR. diff --git a/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h b/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h index 32558210c48..228b79faead 100644 --- a/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h +++ b/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h @@ -24,7 +24,7 @@ class GCM : public CTR { public: constexpr static size_t IVSizeInBits = 128; - virtual ~GCM() { } + virtual ~GCM() = default; template explicit constexpr GCM(Args... args) diff --git a/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h b/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h index 4eaf75725fd..50c39f9f0c0 100644 --- a/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h +++ b/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h @@ -17,7 +17,7 @@ namespace Cipher { template class Mode { public: - virtual ~Mode() { } + virtual ~Mode() = default; virtual void encrypt(ReadonlyBytes in, Bytes& out, ReadonlyBytes ivec = {}, Bytes* ivec_out = nullptr) = 0; virtual void decrypt(ReadonlyBytes in, Bytes& out, ReadonlyBytes ivec = {}) = 0; diff --git a/Userland/Libraries/LibCrypto/PK/PK.h b/Userland/Libraries/LibCrypto/PK/PK.h index 40558fd3137..75159db4c0f 100644 --- a/Userland/Libraries/LibCrypto/PK/PK.h +++ b/Userland/Libraries/LibCrypto/PK/PK.h @@ -25,9 +25,7 @@ public: { } - PKSystem() - { - } + PKSystem() = default; virtual void encrypt(ReadonlyBytes in, Bytes& out) = 0; virtual void decrypt(ReadonlyBytes in, Bytes& out) = 0; diff --git a/Userland/Libraries/LibCrypto/PK/RSA.h b/Userland/Libraries/LibCrypto/PK/RSA.h index 137f1f2f5ff..97867c30556 100644 --- a/Userland/Libraries/LibCrypto/PK/RSA.h +++ b/Userland/Libraries/LibCrypto/PK/RSA.h @@ -60,9 +60,7 @@ public: { } - RSAPrivateKey() - { - } + RSAPrivateKey() = default; const Integer& modulus() const { return m_modulus; } const Integer& private_exponent() const { return m_private_exponent; }