~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
symm/hmac-def.h: Base key sizes on the hash size, not state size.
[catacomb]
/
symm
/
hmac-def.h
diff --git
a/symm/hmac-def.h
b/symm/hmac-def.h
index
e3f12ce
..
9ac8fb9
100644
(file)
--- a/
symm/hmac-def.h
+++ b/
symm/hmac-def.h
@@
-68,12
+68,11
@@
/* --- Useful constants --- */ \
\
const octet pre##_hmackeysz[] = \
/* --- Useful constants --- */ \
\
const octet pre##_hmackeysz[] = \
- { KSZ_ANY | KSZ_16BIT, PRE##_
STATESZ/256, PRE##_STATESZ%256 };
\
+ { KSZ_ANY | KSZ_16BIT, PRE##_
HASHSZ/256, PRE##_HASHSZ%256 };
\
const octet pre##_sslmackeysz[] = \
const octet pre##_sslmackeysz[] = \
- { KSZ_ANY | KSZ_16BIT, PRE##_
STATESZ/256, PRE##_STATESZ%256 };
\
+ { KSZ_ANY | KSZ_16BIT, PRE##_
HASHSZ/256, PRE##_HASHSZ%256 };
\
const octet pre##_nmackeysz[] = \
const octet pre##_nmackeysz[] = \
- { KSZ_SET | KSZ_16BIT, \
- 2*PRE##_STATESZ/256, 2*PRE##_STATESZ%256, 0, 0 }; \
+ { KSZ_SET | KSZ_16BIT, 2*PRE##_HASHSZ/256, 2*PRE##_HASHSZ%256, 0, 0 }; \
\
/* --- @pre_nmacinit@ --- * \
* \
\
/* --- @pre_nmacinit@ --- * \
* \