summaryrefslogtreecommitdiff
path: root/src/util/sha1.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-04-07 08:50:17 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-04-07 08:50:17 +0200
commitf7088f69ab7406ea9fefa853fa7ce11f914e88cf (patch)
treea2457b54c9f5ed6ea65342b3a1fadeeee036d501 /src/util/sha1.h
parentb751c59f43e04f698f517383b62a9c4e1f82523e (diff)
downloadminetest-f7088f69ab7406ea9fefa853fa7ce11f914e88cf.tar.gz
minetest-f7088f69ab7406ea9fefa853fa7ce11f914e88cf.tar.bz2
minetest-f7088f69ab7406ea9fefa853fa7ce11f914e88cf.zip
Clang-format: fix some header files and remove them from whitelist
Diffstat (limited to 'src/util/sha1.h')
-rw-r--r--src/util/sha1.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/util/sha1.h b/src/util/sha1.h
index c04947373..0ac08c67b 100644
--- a/src/util/sha1.h
+++ b/src/util/sha1.h
@@ -29,22 +29,23 @@ typedef unsigned int Uint32;
class SHA1
{
- private:
- // fields
- Uint32 H0, H1, H2, H3, H4;
- unsigned char bytes[64];
- int unprocessedBytes;
- Uint32 size;
- void process();
- public:
- SHA1();
- ~SHA1();
- void addBytes( const char* data, int num );
- unsigned char* getDigest();
- // utility methods
- static Uint32 lrot( Uint32 x, int bits );
- static void storeBigEndianUint32( unsigned char* byte, Uint32 num );
- static void hexPrinter( unsigned char* c, int l );
+private:
+ // fields
+ Uint32 H0, H1, H2, H3, H4;
+ unsigned char bytes[64];
+ int unprocessedBytes;
+ Uint32 size;
+ void process();
+
+public:
+ SHA1();
+ ~SHA1();
+ void addBytes(const char *data, int num);
+ unsigned char *getDigest();
+ // utility methods
+ static Uint32 lrot(Uint32 x, int bits);
+ static void storeBigEndianUint32(unsigned char *byte, Uint32 num);
+ static void hexPrinter(unsigned char *c, int l);
};
#define SHA1_HEADER