/* -*-c-*-
*
- * $Id: tripe.h,v 1.9 2001/06/22 19:40:36 mdw Exp $
+ * $Id: tripe.h,v 1.10 2002/01/13 14:54:58 mdw Exp $
*
* Main header file for TrIPE
*
/*----- Revision history --------------------------------------------------*
*
* $Log: tripe.h,v $
+ * Revision 1.10 2002/01/13 14:54:58 mdw
+ * Provide MGF macros.
+ *
* Revision 1.9 2001/06/22 19:40:36 mdw
* Support expiry of other peers' public keys.
*
#include <catacomb/blowfish.h>
#include <catacomb/blowfish-cbc.h>
+#include <catacomb/blowfish-counter.h>
#include <catacomb/rmd160.h>
#include <catacomb/rmd160-hmac.h>
#define HASH_DONE rmd160_done
#define HASHSZ RMD160_HASHSZ
+#define MGF_CTX blowfish_counterctx
+#define MGF_INIT blowfish_counterinit
+#define MGF_CRYPT blowfish_counterencrypt
+
#define SEQSZ 4
#define IVSZ BLOWFISH_BLKSZ
#define MACSZ 10
unsigned f; /* Various useful flags */
sel_timer t; /* Response timer for challenge */
octet hc[HASHSZ]; /* Hash of his challenge */
- octet hrx[HASHSZ]; /* My expected reply hash */
+ mp *ck; /* The check value */
octet hswrq_in[HASHSZ]; /* Inbound switch request message */
octet hswok_in[HASHSZ]; /* Inbound switch confirmation */
octet hswrq_out[HASHSZ]; /* Outbound switch request message */