diff options
author | lloyd <[email protected]> | 2006-08-12 18:38:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-12 18:38:24 +0000 |
commit | c30d7f559935d4f973ac6c2c0c1ac9d28e6c8ae5 (patch) | |
tree | 6dffc668f43553ce295d5d94a0cb4f9442b0d102 | |
parent | bae2a1447f6620d44a977e38587779b8e47be665 (diff) |
Remove the C implementations of the round functions, no longer used
-rw-r--r-- | modules/sha_x86/sha160.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/modules/sha_x86/sha160.cpp b/modules/sha_x86/sha160.cpp index 99afb4a46..d802dcec9 100644 --- a/modules/sha_x86/sha160.cpp +++ b/modules/sha_x86/sha160.cpp @@ -8,46 +8,6 @@ namespace Botan { -namespace { - -/************************************************* -* SHA-160 F1 Function * -*************************************************/ -inline void F1(u32bit A, u32bit& B, u32bit C, u32bit D, u32bit& E, u32bit msg) - { - E += (D ^ (B & (C ^ D))) + msg + 0x5A827999 + rotate_left(A, 5); - B = rotate_left(B, 30); - } - -/************************************************* -* SHA-160 F2 Function * -*************************************************/ -inline void F2(u32bit A, u32bit& B, u32bit C, u32bit D, u32bit& E, u32bit msg) - { - E += (B ^ C ^ D) + msg + 0x6ED9EBA1 + rotate_left(A, 5); - B = rotate_left(B, 30); - } - -/************************************************* -* SHA-160 F3 Function * -*************************************************/ -inline void F3(u32bit A, u32bit& B, u32bit C, u32bit D, u32bit& E, u32bit msg) - { - E += ((B & C) | ((B | C) & D)) + msg + 0x8F1BBCDC + rotate_left(A, 5); - B = rotate_left(B, 30); - } - -/************************************************* -* SHA-160 F4 Function * -*************************************************/ -inline void F4(u32bit A, u32bit& B, u32bit C, u32bit D, u32bit& E, u32bit msg) - { - E += (B ^ C ^ D) + msg + 0xCA62C1D6 + rotate_left(A, 5); - B = rotate_left(B, 30); - } - -} - extern "C" void sha160_core(u32bit[5], const byte[64], u32bit[80]); /************************************************* |