repo.or.cz
/
clumanager.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix compiler error due to uninitialized variable
[clumanager.git]
/
librhcm
/
sha1.h
blob
24f2bf2a822634bfb640526c8b50518d8af1151a
1
#ifndef __SHA1_H
2
#define __SHA1_H
3
4
#include <stdint.h>
5
6
typedef
struct
{
7
uint32_t
state
[
5
];
8
uint32_t
count
[
2
];
9
uint8_t
buffer
[
64
];
10
}
SHA1_CTX
;
11
12
void
SHA1Transform
(
uint32_t
state
[
5
],
uint8_t
buffer
[
64
]);
13
void
SHA1Init
(
SHA1_CTX
*
context
);
14
void
SHA1Update
(
SHA1_CTX
*
context
,
uint8_t
*
data
,
uint32_t
len
);
15
void
SHA1Final
(
unsigned char
digest
[
20
],
SHA1_CTX
*
context
);
16
17
#endif