]>
Commit | Line | Data |
---|---|---|
0095f096 | 1 | /* hashes.h */ |
2 | /* | |
3 | * COPYRIGHT (C) 1990 DIGITAL EQUIPMENT CORPORATION | |
4 | * ALL RIGHTS RESERVED | |
5 | * | |
6 | * "Digital Equipment Corporation authorizes the reproduction, | |
7 | * distribution and modification of this software subject to the following | |
8 | * restrictions: | |
9 | * | |
10 | * 1. Any partial or whole copy of this software, or any modification | |
11 | * thereof, must include this copyright notice in its entirety. | |
12 | * | |
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. | |
18 | * | |
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. | |
21 | * | |
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. | |
27 | * | |
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" | |
32 | * | |
33 | */ | |
34 | ||
35 | ||
36 | /* | |
37 | * Externally Callable Routines. All arguments are character pointers | |
38 | * or integer lengths. | |
39 | */ | |
40 | ||
41 | #ifndef SPHINX_HASHES | |
42 | #define SPHINX_HASHES | |
43 | ||
44 | void RSA_MD2(); /* RSA_MD2(input_buffer, length, hash_result) */ | |
45 | void RSA_MD4(); /* RSA_MD4(input_buffer, length, hash_result) */ | |
46 | void RSA_MAC(); /* RSA_MAC(input_buffer, length, mac, output_length) */ | |
47 | void RSA_MD(); /* RSA_MD(input_buffer, length, hash_result) */ | |
48 | ||
49 | int H1(); /* H1(username, password, hash_result) */ | |
50 | int H2(); /* H2(username, password, hash_result) */ | |
51 | ||
52 | /* | |
53 | * Common data structures | |
54 | */ | |
55 | #define MAC_BLOCK_SIZE 8 | |
56 | #define MD_BLOCK_SIZE 16 | |
57 | ||
58 | ||
59 | #endif | |
60 |