projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Two's complement I/O fixes.
[u/mdw/catacomb]
/
hmac.h
diff --git
a/hmac.h
b/hmac.h
index
097371a
..
e9c8d78
100644
(file)
--- a/
hmac.h
+++ b/
hmac.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: hmac.h,v 1.
5 2001/04/03 19:35
:45 mdw Exp $
+ * $Id: hmac.h,v 1.
6 2001/04/19 18:24
:45 mdw Exp $
*
* Generic code for HMAC and NMAC
*
*
* Generic code for HMAC and NMAC
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: hmac.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: hmac.h,v $
+ * Revision 1.6 2001/04/19 18:24:45 mdw
+ * Provide correct key sizes for NMAC, HMAC and SSLMAC.
+ *
* Revision 1.5 2001/04/03 19:35:45 mdw
* Support the SSL HMAC variant (untested).
*
* Revision 1.5 2001/04/03 19:35:45 mdw
* Support the SSL HMAC variant (untested).
*
@@
-107,7
+110,9
@@
typedef struct pre##_macctx { \
\
/* --- Other useful constants --- */ \
\
\
/* --- Other useful constants --- */ \
\
-extern const octet pre##_mackeysz[]; \
+extern const octet pre##_hmackeysz[]; \
+extern const octet pre##_nmackeysz[]; \
+extern const octet pre##_sslmackeysz[]; \
\
/* --- @pre_nmacinit@ --- * \
* \
\
/* --- @pre_nmacinit@ --- * \
* \
@@
-197,7
+202,9
@@
extern void pre##_macdone(pre##_macctx */*ctx*/, void */*mac*/); \
\
/* --- Generic MAC interface --- */ \
\
\
/* --- Generic MAC interface --- */ \
\
-extern const gcmac pre##_hmac;
+extern const gcmac pre##_hmac; \
+extern const gcmac pre##_nmac; \
+extern const gcmac pre##_sslmac;
/*----- That's all, folks -------------------------------------------------*/
/*----- That's all, folks -------------------------------------------------*/