From 98c14509534dc916f698b17d8f23bab922dff143 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 21 Aug 2006 02:57:38 +0000 Subject: Let SHA_160::W be resized dynamically; potentially the asm version could use a little extra workspace, this makes that simpler to do. --- src/sha160.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sha160.cpp') diff --git a/src/sha160.cpp b/src/sha160.cpp index a61c556aa..d1b5ad006 100644 --- a/src/sha160.cpp +++ b/src/sha160.cpp @@ -120,4 +120,12 @@ void SHA_160::clear() throw() digest[4] = 0xC3D2E1F0; } +/************************************************* +* SHA_160 Constructor * +*************************************************/ +SHA_160::SHA_160() : MDx_HashFunction(20, 64, true, true), W(80) + { + clear(); + } + } -- cgit v1.2.3