Skip to content

Commit 65c665e

Browse files
committed
minor style update
1 parent 19f90e8 commit 65c665e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

hash/include/cpp-utilities/md5.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class md5 {
138138
update(s);
139139
}
140140

141-
md5() = default;
142-
md5(const md5 &other) = default;
141+
md5() = default;
142+
md5(const md5 &other) = default;
143143
md5 &operator=(const md5 &rhs) = default;
144144

145145
public:

hash/include/cpp-utilities/sha1.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class sha1 {
110110
update(s);
111111
}
112112

113-
sha1() = default;
114-
sha1(const sha1 &other) = default;
113+
sha1() = default;
114+
sha1(const sha1 &other) = default;
115115
sha1 &operator=(const sha1 &rhs) = default;
116116

117117
public:
@@ -129,7 +129,7 @@ class sha1 {
129129
state_.length_ += 8;
130130

131131
if (state_.index_ == state::BlockSize) {
132-
processMessageBlock(&state_, &digest_);
132+
process_block(&state_, &digest_);
133133
}
134134

135135
return *this;
@@ -163,7 +163,7 @@ class sha1 {
163163
s.block_[s.index_++] = 0;
164164
}
165165

166-
processMessageBlock(&s, &d);
166+
process_block(&s, &d);
167167
}
168168

169169
while (s.index_ < 56) {
@@ -179,13 +179,13 @@ class sha1 {
179179
s.block_[61] = (s.length_ >> 16) & 0xff;
180180
s.block_[62] = (s.length_ >> 8) & 0xff;
181181
s.block_[63] = (s.length_) & 0xff;
182-
processMessageBlock(&s, &d);
182+
process_block(&s, &d);
183183

184184
return d;
185185
}
186186

187187
private:
188-
static void processMessageBlock(state *state, digest *digest) {
188+
static void process_block(state *state, digest *digest) {
189189
static constexpr uint32_t K[] = {
190190
0x5a827999,
191191
0x6ed9eba1,

0 commit comments

Comments
 (0)