|
|
1.1 ! root 1: /* ! 2: * $Source: /usr/src/kerberosIV/include/RCS/des.h,v $ ! 3: * $Author: kfall $ ! 4: * $Header: /usr/src/kerberosIV/include/RCS/des.h,v 4.12 90/06/25 20:48:41 kfall Exp $ ! 5: * ! 6: * Copyright 1987, 1988 by the Massachusetts Institute of Technology. ! 7: * ! 8: * For copying and distribution information, please see the file ! 9: * <mit-copyright.h>. ! 10: * ! 11: * Include file for the Data Encryption Standard library. ! 12: */ ! 13: ! 14: /* only do the whole thing once */ ! 15: #ifndef DES_DEFS ! 16: #define DES_DEFS ! 17: ! 18: #ifdef ATHENA ! 19: #include <mit-copyright.h> ! 20: #endif ! 21: ! 22: typedef unsigned char des_cblock[8]; /* crypto-block size */ ! 23: /* Key schedule */ ! 24: typedef struct des_ks_struct { des_cblock _; } des_key_schedule[16]; ! 25: ! 26: #define DES_KEY_SZ (sizeof(des_cblock)) ! 27: #define DES_ENCRYPT 1 ! 28: #define DES_DECRYPT 0 ! 29: ! 30: #ifndef NCOMPAT ! 31: #define C_Block des_cblock ! 32: #define Key_schedule des_key_schedule ! 33: #define ENCRYPT DES_ENCRYPT ! 34: #define DECRYPT DES_DECRYPT ! 35: #define KEY_SZ DES_KEY_SZ ! 36: #define string_to_key des_string_to_key ! 37: #define read_pw_string des_read_pw_string ! 38: #define random_key des_random_key ! 39: #define pcbc_encrypt des_pcbc_encrypt ! 40: #define key_sched des_key_sched ! 41: #define cbc_encrypt des_cbc_encrypt ! 42: #define cbc_cksum des_cbc_cksum ! 43: #define C_Block_print des_cblock_print ! 44: #define quad_cksum des_quad_cksum ! 45: typedef struct des_ks_struct bit_64; ! 46: #endif ! 47: ! 48: #define des_cblock_print(x) des_cblock_print_file(x, stdout) ! 49: ! 50: #endif DES_DEFS
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.