/* * $Source$ * $Author$ * $Id$ * * Copyright 1989 by the Massachusetts Institute of Technology. * * For copying and distribution information, please see the file * . * * MIT Data Encryption Standard software implementation declarations. */ #include #ifndef KRB5_MIT_DES__ #define KRB5_MIT_DES__ typedef krb5_krb5_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_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(krb5_octet)) #define DES_BLOCK_LENGTH (8*sizeof(krb5_octet)) #define DES_CBC_CRC_PAD_MINIMUM CRC32_CKSUM_LENGTH #define DES_KEYSIZE (8*sizeof(krb5_octet)) #define DES_CBC_CKSUM_LENGTH (4*sizeof(krb5_octet)) /* XXX ? */ /* cryptosystem entry descriptor for MIT's DES encryption library */ extern krb5_cryptosystem_entry mit_des_cryptosystem_entry; #endif /* KRB5_MIT_DES__ */