aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/sha1_ia32/sha1_ia32.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-29 20:41:56 +0000
committerlloyd <[email protected]>2008-09-29 20:41:56 +0000
commit4f5482b113907d8cf3b39532a61daf2b4653574c (patch)
tree4180225fb57a8abda958a0b47cab08451ab6a30a /src/hash/sha1_ia32/sha1_ia32.cpp
parent5a2001846f4470d90dff2a72896e1f19630e4fc2 (diff)
Derive x86, x86-64, and SSE2 implementations of SHA-1 directly from SHA_160
Diffstat (limited to 'src/hash/sha1_ia32/sha1_ia32.cpp')
-rw-r--r--src/hash/sha1_ia32/sha1_ia32.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/hash/sha1_ia32/sha1_ia32.cpp b/src/hash/sha1_ia32/sha1_ia32.cpp
index 4e24b0793..ff6e67001 100644
--- a/src/hash/sha1_ia32/sha1_ia32.cpp
+++ b/src/hash/sha1_ia32/sha1_ia32.cpp
@@ -23,27 +23,4 @@ void SHA_160_IA32::hash(const byte input[])
botan_sha160_ia32_compress(digest, input, W);
}
-/*************************************************
-* Copy out the digest *
-*************************************************/
-void SHA_160_IA32::copy_out(byte output[])
- {
- for(u32bit j = 0; j != OUTPUT_LENGTH; ++j)
- output[j] = get_byte(j % 4, digest[j/4]);
- }
-
-/*************************************************
-* Clear memory of sensitive data *
-*************************************************/
-void SHA_160_IA32::clear() throw()
- {
- MDx_HashFunction::clear();
- W.clear();
- digest[0] = 0x67452301;
- digest[1] = 0xEFCDAB89;
- digest[2] = 0x98BADCFE;
- digest[3] = 0x10325476;
- digest[4] = 0xC3D2E1F0;
- }
-
}