From 469bbcf0701e1eb8a6670c23145b0da87357e178 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 25 Mar 2012 20:00:08 +0000 Subject: Code is all reorganized. We're about ready to release. I should write up a little explenation of the arrangement. --- src/stable/cryptohash.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/stable/cryptohash.h (limited to 'src/stable/cryptohash.h') diff --git a/src/stable/cryptohash.h b/src/stable/cryptohash.h new file mode 100644 index 0000000..bc5435f --- /dev/null +++ b/src/stable/cryptohash.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2007-2011 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#ifndef BU_CRYPTO_HASH_H +#define BU_CRYPTO_HASH_H + +#include "bu/string.h" + +namespace Bu +{ + class Stream; + + class CryptoHash + { + public: + CryptoHash(); + virtual ~CryptoHash(); + + virtual void reset() = 0; + virtual void setSalt( const Bu::String &sSalt ) = 0; + virtual void addData( const void *sData, int iSize ) = 0; + virtual void addData( const Bu::String &sData ); + virtual String getResult() = 0; + virtual void writeResult( Stream &sOut ) = 0; + virtual Bu::String getHexResult(); + }; +}; + +#endif -- cgit v1.2.3