From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/stable/sha1.h | 70 +++++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'src/stable/sha1.h') diff --git a/src/stable/sha1.h b/src/stable/sha1.h index e861f94..f882473 100644 --- a/src/stable/sha1.h +++ b/src/stable/sha1.h @@ -13,41 +13,41 @@ namespace Bu { - /** - * Calculates SHA-1 sums. This is based strongly on code from Michael D. - * Leonhard who released his code under the terms of the MIT license, - * thank you! Check out his website http://tamale.net he has a lot of - * cool stuff there. - */ - class Sha1 : public CryptoHash - { - public: - Sha1(); - virtual ~Sha1(); - - virtual void reset(); - virtual void setSalt( const Bu::String &sSalt ); - virtual void addData( const void *sData, int iSize ); - using CryptoHash::addData; - virtual String getResult(); - virtual void writeResult( Stream &sOut ); - - void update( const char* data, int num ); - unsigned char* getDigest(); - - // utility methods - - private: - static uint32_t lrot( uint32_t x, int bits ); - static void toBigEndian( uint32_t in, unsigned char* out ); - void process(); - - private: - uint32_t uH0, uH1, uH2, uH3, uH4; - unsigned char uBytes[64]; - int iUnprocessedBytes; - uint32_t uTotalBytes; - }; + /** + * Calculates SHA-1 sums. This is based strongly on code from Michael D. + * Leonhard who released his code under the terms of the MIT license, + * thank you! Check out his website http://tamale.net he has a lot of + * cool stuff there. + */ + class Sha1 : public CryptoHash + { + public: + Sha1(); + virtual ~Sha1(); + + virtual void reset(); + virtual void setSalt( const Bu::String &sSalt ); + virtual void addData( const void *sData, int iSize ); + using CryptoHash::addData; + virtual String getResult(); + virtual void writeResult( Stream &sOut ); + + void update( const char* data, int num ); + unsigned char* getDigest(); + + // utility methods + + private: + static uint32_t lrot( uint32_t x, int bits ); + static void toBigEndian( uint32_t in, unsigned char* out ); + void process(); + + private: + uint32_t uH0, uH1, uH2, uH3, uH4; + unsigned char uBytes[64]; + int iUnprocessedBytes; + uint32_t uTotalBytes; + }; }; #endif -- cgit v1.2.3