Last change
on this file since 136 was
117,
checked in by rosiere, 15 years ago
|
1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
618 bytes
|
Line | |
---|
1 | #ifndef SHA_H |
---|
2 | #define SHA_H |
---|
3 | |
---|
4 | /* NIST Secure Hash Algorithm */ |
---|
5 | /* heavily modified from Peter C. Gutmann's implementation */ |
---|
6 | |
---|
7 | /* Useful defines & typedefs */ |
---|
8 | |
---|
9 | typedef unsigned char BYTE; |
---|
10 | typedef unsigned long LONG; |
---|
11 | |
---|
12 | #define SHA_BLOCKSIZE 64 |
---|
13 | #define SHA_DIGESTSIZE 20 |
---|
14 | |
---|
15 | typedef struct { |
---|
16 | LONG digest[5]; /* message digest */ |
---|
17 | LONG count_lo, count_hi; /* 64-bit bit count */ |
---|
18 | LONG data[16]; /* SHA data buffer */ |
---|
19 | } SHA_INFO; |
---|
20 | |
---|
21 | void sha_init(SHA_INFO *); |
---|
22 | void sha_update(SHA_INFO *, BYTE *, int); |
---|
23 | void sha_final(SHA_INFO *); |
---|
24 | |
---|
25 | void sha_stream(SHA_INFO *, FILE *); |
---|
26 | void sha_print(SHA_INFO *); |
---|
27 | |
---|
28 | #endif /* SHA_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.