Update to 0.3.0 (New upstream + new RPC calls)
[novacoin.git] / src / pbkdf2.h
index 960d45b..4c55fd9 100644 (file)
@@ -1,25 +1,27 @@
-#ifndef PBKDF2_H\r
-#define PBKDF2_H\r
-\r
-#include <openssl/sha.h>\r
-#include <stdint.h>\r
-\r
-typedef struct HMAC_SHA256Context {\r
-    SHA256_CTX ictx;\r
-    SHA256_CTX octx;\r
-} HMAC_SHA256_CTX;\r
-\r
-void\r
-HMAC_SHA256_Init(HMAC_SHA256_CTX * ctx, const void * _K, size_t Klen);\r
-\r
-void\r
-HMAC_SHA256_Update(HMAC_SHA256_CTX * ctx, const void *in, size_t len);\r
-\r
-void\r
-HMAC_SHA256_Final(unsigned char digest[32], HMAC_SHA256_CTX * ctx);\r
-\r
-void\r
-PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt,\r
-    size_t saltlen, uint64_t c, uint8_t * buf, size_t dkLen);\r
-\r
-#endif // PBKDF2_H\r
+// Copyright (c) 2013 NovaCoin Developers
+
+#ifndef PBKDF2_H
+#define PBKDF2_H
+
+#include <openssl/sha.h>
+#include <stdint.h>
+
+typedef struct HMAC_SHA256Context {
+    SHA256_CTX ictx;
+    SHA256_CTX octx;
+} HMAC_SHA256_CTX;
+
+void
+HMAC_SHA256_Init(HMAC_SHA256_CTX * ctx, const void * _K, size_t Klen);
+
+void
+HMAC_SHA256_Update(HMAC_SHA256_CTX * ctx, const void *in, size_t len);
+
+void
+HMAC_SHA256_Final(unsigned char digest[32], HMAC_SHA256_CTX * ctx);
+
+void
+PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt,
+    size_t saltlen, uint64_t c, uint8_t * buf, size_t dkLen);
+
+#endif // PBKDF2_H