projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New source files and tests.
[u/mdw/catacomb]
/
sha256.h
diff --git
a/sha256.h
b/sha256.h
index
c35a38e
..
50d61fa
100644
(file)
--- a/
sha256.h
+++ b/
sha256.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: sha256.h,v 1.
1 2000/10/15 17:48:15
mdw Exp $
+ * $Id: sha256.h,v 1.
2 2000/10/15 19:09:20
mdw Exp $
*
* Implementation of the SHA-256 hash function
*
*
* Implementation of the SHA-256 hash function
*
@@
-30,6
+30,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: sha256.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: sha256.h,v $
+ * Revision 1.2 2000/10/15 19:09:20 mdw
+ * Support HMAC mode for hash functions which need to store more state than
+ * the hash output size.
+ *
* Revision 1.1 2000/10/15 17:48:15 mdw
* New SHA variants with longer outputs.
*
* Revision 1.1 2000/10/15 17:48:15 mdw
* New SHA variants with longer outputs.
*
@@
-62,6
+66,7
@@
#define SHA256_BUFSZ 64
#define SHA256_HASHSZ 32
#define SHA256_BUFSZ 64
#define SHA256_HASHSZ 32
+#define SHA256_STATESZ 32
/*----- Data structures ---------------------------------------------------*/
/*----- Data structures ---------------------------------------------------*/