move stuff around
authorJohn Kohl <jtkohl@mit.edu>
Tue, 21 Nov 1989 16:32:43 +0000 (16:32 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 21 Nov 1989 16:32:43 +0000 (16:32 +0000)
add sizes of stuff

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@29 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/mit-des.h

index 9ead12f69aa36f7fd2255f51e9e2400575412782..54b237ff2d4375c6200e9a0a0d71ea10b0c255e9 100644 (file)
@@ -21,12 +21,16 @@ typedef octet des_cblock[8];        /* crypto-block size */
 /* Key schedule--used internally by DES routines to gain some speed */
 typedef struct des_ks_struct { des_cblock _; } des_key_schedule[16];
 
-#define DES_KEY_SZ     (8*sizeof(octet))
+#define DES_ENCRYPT    1
+#define DES_DECRYPT    0
 
 /* the first byte of the key is already in the keyblock */
 #define DES_KEYBLOCK_SZ        (sizeof(krb5_keyblock)+sizeof(des_cblock)-sizeof(octet))
 
-#define DES_ENCRYPT    1
-#define DES_DECRYPT    0
+#define DES_BLOCK_LENGTH               (8*sizeof(octet))
+#define        DES_CBC_CRC_PAD_MINIMUM         CRC32_CKSUM_LENGTH
+#define DES_KEYSIZE                    (8*sizeof(octet))
+
+#define DES_CBC_CKSUM_LENGTH           (4*sizeof(octet)) /* XXX ? */
 
 #endif /* __MIT_DES__ */