3 * COPYRIGHT (C) 1990 DIGITAL EQUIPMENT CORPORATION
6 * "Digital Equipment Corporation authorizes the reproduction,
7 * distribution and modification of this software subject to the following
10 * 1. Any partial or whole copy of this software, or any modification
11 * thereof, must include this copyright notice in its entirety.
13 * 2. This software is supplied "as is" with no warranty of any kind,
14 * expressed or implied, for any purpose, including any warranty of fitness
15 * or merchantibility. DIGITAL assumes no responsibility for the use or
16 * reliability of this software, nor promises to provide any form of
17 * support for it on any basis.
19 * 3. Distribution of this software is authorized only if no profit or
20 * remuneration of any kind is received in exchange for such distribution.
22 * 4. This software produces public key authentication certificates
23 * bearing an expiration date established by DIGITAL and RSA Data
24 * Security, Inc. It may cease to generate certificates after the expiration
25 * date. Any modification of this software that changes or defeats
26 * the expiration date or its effect is unauthorized.
28 * 5. Software that will renew or extend the expiration date of
29 * authentication certificates produced by this software may be obtained
30 * from RSA Data Security, Inc., 10 Twin Dolphin Drive, Redwood City, CA
31 * 94065, (415)595-8782, or from DIGITAL"
38 typedef unsigned long INT32; /* 32-bit unsigned integer */
41 { /* data type for the DES blocks */
42 unsigned char bytes[8]; /* for access as bytes */
43 INT32 longwords[2]; /* for access as longwords */
46 #define DES_BLOCK_SIZE sizeof(DESblock)
50 DESblock seed , key , current;
53 #define RNG_STATE_SIZE sizeof(RNGState)
55 void read_rng_state ();
56 void restore_rng_state ();
57 void initialize_rng_state ();
59 void DES_X9_MAC(); /* DES_X9_MAC(key,input_buffer, length, hash_result) */