From 801e7de1f85656746d832508baf4583907826420 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 23 Apr 2010 15:14:00 +0000 Subject: Minor updates to the List class, unchecked corner cases. The CsvWriter now writes csv. It understands both excel formatting and c-style, which I made up myself (it's just c-style escape sequences). Sha1 is converted to work with the CryptoHash API and it does indeed work. --- src/md5.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/md5.cpp') diff --git a/src/md5.cpp b/src/md5.cpp index cfb1e6e..abf4bfa 100644 --- a/src/md5.cpp +++ b/src/md5.cpp @@ -98,24 +98,6 @@ void Bu::Md5::writeResult( Bu::Stream &sOut ) sOut.write( lsum, 4*4 ); } -Bu::FString Bu::Md5::getHexResult() -{ - static const char hex_tab[] = {"0123456789abcdef"}; - char str[33]; - - long lsum[4]; - compCap( lsum ); - - int k = 0; - for( int i = 0; i < 16; i++ ) - { - str[k++] = hex_tab[(lsum[i>>2] >> ((i%4)*8+4)) & 0xF]; - str[k++] = hex_tab[(lsum[i>>2] >> ((i%4)*8 )) & 0xF]; - } - - return Bu::FString( str, 32 ); -} - void Bu::Md5::compCap( long *sumout ) { memcpy( sumout, sum, 4*4 ); -- cgit v1.2.3