blob: 92a338213980d668b17131304fcc3eeb9838bf86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* sha-1 implementation
*
* by steve reid <steve@edmweb.com>
* modified by scut
*
* include file
*/
#ifndef CIPHER_SHA1_H
#define CIPHER_SHA1_H
/* SHA1Hash
*
* hash an binary string `data' with `data_len' bytes into a 20 byte long hash
* byte buffer pointed to by `hash'
*
* return in any case
*/
void SHA1HashLen (unsigned char *data, unsigned long int data_len,
unsigned char *hash);
/* SHA1Hash
*
* hash an ASCIIZ password into a 20 byte long hash byte buffer
*
* return in any case
*/
void SHA1Hash (char *password, unsigned char *hash);
#endif
|