diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
commit | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch) | |
tree | d4d1fded5c14350eb003a665ca8de500a0440cea /modules/encryption/enc_md5.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/encryption/enc_md5.cpp')
-rw-r--r-- | modules/encryption/enc_md5.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/encryption/enc_md5.cpp b/modules/encryption/enc_md5.cpp index 83b74ea09..68a72ba04 100644 --- a/modules/encryption/enc_md5.cpp +++ b/modules/encryption/enc_md5.cpp @@ -86,7 +86,8 @@ static const uint32_t md5_iv[4] = 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476 }; -class MD5Context : public Encryption::Context +class MD5Context + : public Encryption::Context { unsigned state[4]; /* state (ABCD) */ unsigned count[2]; /* number of bits, modulo 2^64 (lsb first) */ @@ -318,7 +319,8 @@ public: } }; -class MD5Provider : public Encryption::Provider +class MD5Provider + : public Encryption::Provider { public: MD5Provider(Module *creator) : Encryption::Provider(creator, "md5") { } @@ -337,7 +339,8 @@ public: } }; -class EMD5 : public Module +class EMD5 + : public Module { MD5Provider md5provider; |