]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - sha256/sha256.h
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / sha256 / sha256.h
index 78704f57590f441851001e05756ec8c102a8dd3c..b0fd6d4d12ec95c18fb63338e13c6a282784b0a4 100644 (file)
@@ -1,7 +1,7 @@
 /* sha256.h */
 /*
     This file is part of the AVR-Crypto-Lib.
-    Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -49,9 +49,9 @@
  */
 
 #define SHA256_HASH_BITS  256
-#define SHA256_HASH_BYTES (SHA256_HASH_BITS/8)
+#define SHA256_HASH_BYTES (SHA256_HASH_BITS / 8)
 #define SHA256_BLOCK_BITS 512
-#define SHA256_BLOCK_BYTES (SHA256_BLOCK_BITS/8)
+#define SHA256_BLOCK_BYTES (SHA256_BLOCK_BITS / 8)
 
 /** \typedef sha256_ctx_t
  * \brief SHA-256 context type
@@ -60,7 +60,7 @@
  */
 typedef struct {
        uint32_t h[8];
-       uint64_t length;
+       uint32_t length;
 } sha256_ctx_t;
 
 /** \typedef sha256_hash_t