X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/c77f9bb925046e634f0ca3fb2ca45a27dc71a3a9..c148759dc94794db3faa3ed556583b65d40ae799:/symm/hmac-def.h diff --git a/symm/hmac-def.h b/symm/hmac-def.h index 612cc996..8e869358 100644 --- a/symm/hmac-def.h +++ b/symm/hmac-def.h @@ -67,9 +67,13 @@ \ /* --- Useful constants --- */ \ \ -const octet pre##_hmackeysz[] = { KSZ_ANY, PRE##_STATESZ }; \ -const octet pre##_sslmackeysz[] = { KSZ_ANY, PRE##_STATESZ }; \ -const octet pre##_nmackeysz[] = { KSZ_SET, 2 * PRE##_STATESZ, 0 }; \ +const octet pre##_hmackeysz[] = \ + { KSZ_ANY | KSZ_16BIT, PRE##_STATESZ/256, PRE##_STATESZ%256 }; \ +const octet pre##_sslmackeysz[] = \ + { KSZ_ANY | KSZ_16BIT, PRE##_STATESZ/256, PRE##_STATESZ%256 }; \ +const octet pre##_nmackeysz[] = \ + { KSZ_SET | KSZ_16BIT, \ + 2*PRE##_STATESZ/256, 2*PRE##_STATESZ%256, 0, 0 }; \ \ /* --- @pre_nmacinit@ --- * \ * \