repo.or.cz
/
filehash.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add queue functions to NAMESPACE
[filehash.git]
/
src
/
sha1.h
blob
806eba1918fa1717db9d020909e312b8ab9ab756
1
#ifndef _SHA1_H
2
#define _SHA1_H
3
4
#ifndef uint8
5
#define uint8 unsigned char
6
#endif
7
8
#ifndef uint32
9
#define uint32 unsigned long int
10
#endif
11
12
typedef
struct
13
{
14
uint32 total
[
2
];
15
uint32 state
[
5
];
16
uint8 buffer
[
64
];
17
}
18
sha1_context
;
19
20
void
sha1_starts
(
sha1_context
*
ctx
);
21
void
sha1_update
(
sha1_context
*
ctx
,
uint8
*
input
,
uint32 length
);
22
void
sha1_finish
(
sha1_context
*
ctx
,
uint8 digest
[
20
] );
23
24
#endif
/* sha1.h */