@@ -181,6 +181,13 @@ void bad_input()
181
181
BOOST_TEST_EQ (unsigned_null_message_len[1 ], 0x0 );
182
182
BOOST_TEST_EQ (unsigned_null_message_len[2 ], 0x0 );
183
183
BOOST_TEST_EQ (unsigned_null_message_len[3 ], 0x0 );
184
+
185
+ std::string test_str {" Test string" };
186
+ const auto reveresed_input {boost::crypt::detail::md5 (test_str.end (), test_str.begin ())};
187
+ BOOST_TEST_EQ (reveresed_input[0 ], 0x0 );
188
+ BOOST_TEST_EQ (reveresed_input[1 ], 0x0 );
189
+ BOOST_TEST_EQ (reveresed_input[2 ], 0x0 );
190
+ BOOST_TEST_EQ (reveresed_input[3 ], 0x0 );
184
191
}
185
192
186
193
void test_class ()
@@ -263,6 +270,7 @@ void test_random_piecewise_values()
263
270
264
271
boost_hasher.process_bytes (str, current_str_len);
265
272
boost_hasher.process_bytes (str_2, current_str_len);
273
+ boost_hasher.process_byte (52 ); // "4"
266
274
unsigned char digest[16 ];
267
275
boost_hasher.get_digest (digest);
268
276
@@ -274,6 +282,7 @@ void test_random_piecewise_values()
274
282
275
283
md5_hasher.process_bytes (str, current_str_len);
276
284
md5_hasher.process_bytes (str_2, current_str_len);
285
+ md5_hasher.process_byte (52 ); // "4"
277
286
const auto crypt_res {md5_hasher.get_digest ()};
278
287
279
288
for (std::size_t j {}; j < crypt_res.size (); ++j)
0 commit comments