projects
/
onak.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cscvs to tla changeset 95
[onak.git]
/
sha.h
1
#ifndef __SHA_H__
2
#define __SHA_H__
3
4
#include <stdio.h>
5
#include <stdlib.h>
6
#include <string.h>
7
#include <assert.h>
8
#include <inttypes.h>
9
10
#include "bithelp.h"
11
12
typedef struct {
13
uint32_t h0,h1,h2,h3,h4;
14
uint32_t nblocks;
15
uint8_t buf[64];
16
int count;
17
} SHA1_CONTEXT;
18
19
void sha1_init(SHA1_CONTEXT *);
20
void sha1_write(SHA1_CONTEXT *, uint8_t *, size_t);
21
void sha1_final(SHA1_CONTEXT *);
22
unsigned char *sha1_read(SHA1_CONTEXT *);
23
24
#endif /* __SHA_H__ */