From 8e732a756cfd6f8eb49f1d6f1effe5b553f70db8 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 21 Nov 1989 16:32:43 +0000 Subject: [PATCH] move stuff around 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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/include/krb5/mit-des.h b/src/include/krb5/mit-des.h index 9ead12f69..54b237ff2 100644 --- a/src/include/krb5/mit-des.h +++ b/src/include/krb5/mit-des.h @@ -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__ */ -- 2.26.2