From: John Kohl Date: Mon, 23 Apr 1990 15:20:53 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: krb5-1.0-alpha2~843 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39ba0293833b778cbb0f9b840a886e42cbb6bc04;p=krb5.git *** empty log message *** git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@552 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/cryptoconf.c b/src/lib/crypto/cryptoconf.c new file mode 100644 index 000000000..5a60bc8b2 --- /dev/null +++ b/src/lib/crypto/cryptoconf.c @@ -0,0 +1,83 @@ +/* + * $Source$ + * $Author$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * Cryptosystem configurations + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_cryptoconf_c[] = +"$Id$"; +#endif /* !lint & !SABER */ + +#include +#include +#include +#include + +#if defined(PROVIDE_DES_CBC_CRC) || defined(PROVIDE_LUCIFER_CRC) || defined(PROVIDE_CRC32) +#include +#define CRC32_CKENTRY &crc32_cksumtable_entry +#else +#define CRC32_CKENTRY 0 +#endif + +#ifdef PROVIDE_SNEFRU +#define XEROX_CKENTRY &snefru_cksumtable_entry +#else +#define XEROX_CKENTRY 0 +#endif + +#ifdef PROVIDE_DES_CBC_CKSUM +#include +#define DES_CBC_CKENTRY &des_cbc_cksumtable_entry +#else +#define DES_CBC_CKENTRY 0 +#endif + +#ifdef PROVIDE_DES_CBC_CRC +#include +static krb5_cs_table_entry des_cbc_crc_csentry = { + &mit_des_cryptosystem_entry, 0 }; +#define DES_CBC_CRC_CSENTRY &des_cbc_crc_csentry +#else +#define DES_CBC_CRC_CSENTRY 0 +#endif + +#ifdef PROVIDE_LUCIFER_CRC +static krb5_cs_table_entry lucifer_crc_csentry = { + &lucifer_cryptosystem_entry, 0 }; +#define LUCIFER_CRC_CSENTRY &lucifer_crc_csentry +#else +#define LUCIFER_CRC_CSENTRY 0 +#endif + +krb5_cs_table_entry *krb5_csarray[] = { + 0, + DES_CBC_CRC_CSENTRY, + LUCIFER_CRC_CSENTRY, +}; + +int krb5_max_cryptosystem = sizeof(krb5_csarray)/sizeof(krb5_csarray[0]); + +krb5_cs_table_entry *krb5_keytype_array[] = { + 0, + DES_CBC_CRC_CSENTRY, + LUCIFER_CRC_CSENTRY, +}; + +int krb5_max_keytype = sizeof(krb5_keytype_array)/sizeof(krb5_keytype_array[0]); + +krb5_checksum_entry *krb5_cksumarray[] = { + 0, + CRC32_CKENTRY, + XEROX_CKENTRY, + DES_CBC_CKENTRY, +}; + +int krb5_max_cksum = sizeof(krb5_cksumarray)/sizeof(krb5_cksumarray[0]);