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/pearsonhash.h | 54 ++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'src/stable/pearsonhash.h') diff --git a/src/stable/pearsonhash.h b/src/stable/pearsonhash.h index ca377c1..ece1d40 100644 --- a/src/stable/pearsonhash.h +++ b/src/stable/pearsonhash.h @@ -12,35 +12,35 @@ namespace Bu { - /** - * A pearson hash is a non-cryptographically secure hashing function that - * is very light on resources, very fast, and produces a single byte - * as it's output. It is strongly dependant on every byte in the input, - * which means that it's a good choice for adding to short messages to - * ensure that the contents of the messages are unchanged. - * - * Pearson hash is named for it's inventor Peter K. Pearson who described - * it in his article "Fast hashing of variable-length text strings" - * published in 1990 by ACM. I haven't read it, because you have to pay to - * get a copy :-P - */ - class PearsonHash : public Bu::CryptoHash - { - public: - PearsonHash(); - virtual ~PearsonHash(); + /** + * A pearson hash is a non-cryptographically secure hashing function that + * is very light on resources, very fast, and produces a single byte + * as it's output. It is strongly dependant on every byte in the input, + * which means that it's a good choice for adding to short messages to + * ensure that the contents of the messages are unchanged. + * + * Pearson hash is named for it's inventor Peter K. Pearson who described + * it in his article "Fast hashing of variable-length text strings" + * published in 1990 by ACM. I haven't read it, because you have to pay to + * get a copy :-P + */ + class PearsonHash : public Bu::CryptoHash + { + public: + PearsonHash(); + virtual ~PearsonHash(); - virtual void reset(); - virtual void setSalt( const Bu::String &sSalt ); - virtual void addData( const void *sData, int iSize ); - using Bu::CryptoHash::addData; - virtual String getResult(); - virtual void writeResult( Stream &sOut ); + virtual void reset(); + virtual void setSalt( const Bu::String &sSalt ); + virtual void addData( const void *sData, int iSize ); + using Bu::CryptoHash::addData; + virtual String getResult(); + virtual void writeResult( Stream &sOut ); - private: - static uint8_t aSBox[256]; - uint8_t iValue; - }; + private: + static uint8_t aSBox[256]; + uint8_t iValue; + }; }; #endif -- cgit v1.2.3