chiark / gitweb /
Fix for new key-data interface.
[tripe] / tripe-protocol.h
index bce8f1dcf9c0a66cb601307acadba5319c705fb9..ebf7a71d9fe8d60e0d4343be0e398a76bbd73e3f 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: tripe-protocol.h,v 1.1 2003/10/15 09:30:18 mdw Exp $
+ * $Id$
  *
  * Protocol definition for TrIPE
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: tripe-protocol.h,v $
- * Revision 1.1  2003/10/15 09:30:18  mdw
- * Add support for Ethereal protocol analysis.
- *
- */
-
 #ifndef TRIPE_PROTOCOL_H
 #define TRIPE_PROTOCOL_H
 
 #define KX_SWITCHOK 5u
 #define KX_NMSG 6u
 
+/* --- Miscellaneous packets --- */
+
+#define MSG_MISC 0x20
+
+#define MISC_NOP 0u                    /* Do nothing; ignore me */
+#define MISC_PING 1u                   /* Transport-level ping */
+#define MISC_PONG 2u                   /* Transport-level ping response */
+#define MISC_EPING 3u                  /* Encrypted ping */
+#define MISC_EPONG 4u                  /* Encrypted ping response */
+
 /* --- Symmetric encryption and keysets --- *
  *
  * Packets consist of an 80-bit MAC, a 32-bit sequence number, and the
  * encrypted payload.
  *
  * The plaintext is encrypted using Blowfish in CBC mode with ciphertext
- * stealing (as described in [Schneier].  The initialization vector is
+ * stealing (as described in [Schneier]).  The initialization vector is
  * selected randomly, and prepended to the actual ciphertext.
  *
  * The MAC is computed using the HMAC construction with RIPEMD160 over the