From 4309066dff46f52690998bbd1f60ec8b1631f142 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 19 Feb 2009 23:44:57 +0000 Subject: We have the new Bu::CryptoHash base class and Bu::Md5 is here and ready to rock. sha1 is still only a shell, I dunno if/when I'm going to implement that one. So far Bu::Md5 is 100% compatible with md5sum in all tests performed so far, in fact the test program's output is compatible with md5sum in every way (and it's so cute and little too!) Oh, minor update for stdstream and the formatter, they can handle more handy types now. --- src/cryptohash.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/cryptohash.cpp (limited to 'src/cryptohash.cpp') diff --git a/src/cryptohash.cpp b/src/cryptohash.cpp new file mode 100644 index 0000000..0fa2a25 --- /dev/null +++ b/src/cryptohash.cpp @@ -0,0 +1,15 @@ +#include "bu/cryptohash.h" + +Bu::CryptoHash::CryptoHash() +{ +} + +Bu::CryptoHash::~CryptoHash() +{ +} + +void Bu::CryptoHash::addData( const Bu::FString &sData ) +{ + addData( sData.getStr(), sData.getSize() ); +} + -- cgit v1.2.3