X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/36c67859bdb3aae4d5b837290939548bd24ad842..962dd3329d51f1d18313a17eb0cb4695ee4421a0:/hmac.h diff --git a/hmac.h b/hmac.h index 097371a..e9c8d78 100644 --- a/hmac.h +++ b/hmac.h @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,9 @@ /*----- 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). * @@ -107,7 +110,9 @@ typedef struct pre##_macctx { \ \ /* --- 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@ --- * \ * \ @@ -197,7 +202,9 @@ extern void pre##_macdone(pre##_macctx */*ctx*/, void */*mac*/); \ \ /* --- 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 -------------------------------------------------*/