diff options
| author | Nils Maier <maierman@web.de> | 2014-06-10 13:09:08 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2014-06-24 20:45:05 +0200 |
| commit | 85876699954e64e2a19b137d71d9434caa9d6514 (patch) | |
| tree | ff0381e32161e30cfeee850226f325125fc2d50f /test | |
| parent | 60032bf0abc7a8cbb83e649d5cb5cebe803f7f94 (diff) | |
Fix big endianess support in InternalMessageDigest and PBKDF2
- Replace sha1/md5 implementation by ones from https://github.com/nmaier/crypto
- Add endianess functionality fro https://github.com/nmaier/crypto
Closes GH-239
Diffstat (limited to 'test')
| -rw-r--r-- | test/HttpResponseTest.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/HttpResponseTest.cc b/test/HttpResponseTest.cc index 959fe2cb..6c97ffd0 100644 --- a/test/HttpResponseTest.cc +++ b/test/HttpResponseTest.cc @@ -685,20 +685,14 @@ void HttpResponseTest::testGetDigest() "MD5=LJDK2+9ClF8Nz/K5WZd/+A=="); std::vector<Checksum> result; httpResponse.getDigest(result); -#ifdef USE_INTERNAL_MD - CPPUNIT_ASSERT_EQUAL((size_t)2, result.size()); -#else // USE_INTERNAL_MD CPPUNIT_ASSERT_EQUAL((size_t)3, result.size()); -#endif // USE_INTERNAL_MD Checksum c = result[0]; -#ifndef USE_INTERNAL_MD CPPUNIT_ASSERT_EQUAL(std::string("sha-256"), c.getHashType()); CPPUNIT_ASSERT_EQUAL(std::string("f83f271ae773dc6fe4a6454a41e0eb237c43e7bbf451e426cc60993a4d379ec5"), util::toHex(c.getDigest())); c = result[1]; -#endif CPPUNIT_ASSERT_EQUAL(std::string("sha-1"), c.getHashType()); CPPUNIT_ASSERT_EQUAL(std::string("f36003f22b462ffa184390533c500d8989e9f681"), util::toHex(c.getDigest())); |
