diff options
author | jbj <devnull@localhost> | 2003-04-26 21:45:28 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-04-26 21:45:28 +0000 |
commit | 18eea94d34737988ae6c8dfaa9aebd349236994c (patch) | |
tree | cb13e9afd2eb66e3ec4e4bee775f74db51bc7f23 /beecrypt/md5.h | |
parent | a7467cba85c4e0ed6e28aa6f808083398f509974 (diff) | |
download | librpm-tizen-18eea94d34737988ae6c8dfaa9aebd349236994c.tar.gz librpm-tizen-18eea94d34737988ae6c8dfaa9aebd349236994c.tar.bz2 librpm-tizen-18eea94d34737988ae6c8dfaa9aebd349236994c.zip |
beecrypt-3.0.0 merge: (partial) grand renaming, uint32 et al.
CVS patchset: 6781
CVS date: 2003/04/26 21:45:28
Diffstat (limited to 'beecrypt/md5.h')
-rw-r--r-- | beecrypt/md5.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/beecrypt/md5.h b/beecrypt/md5.h index 6bd0bbbbc..d524a61d1 100644 --- a/beecrypt/md5.h +++ b/beecrypt/md5.h @@ -34,10 +34,16 @@ */ typedef struct { - uint32 h[4]; - uint32 data[16]; - uint64 length; - uint8 offset; + uint32_t h[4]; + uint32_t data[16]; + #if (MP_WBITS == 64) + mpw length[1]; + #elif (MP_WBITS == 32) + mpw length[2]; + #else + # error + #endif + short offset; } md5Param; #ifdef __cplusplus @@ -69,7 +75,7 @@ int md5Reset (md5Param* p) */ /*@-exportlocal@*/ BEECRYPTAPI -int md5Update (md5Param* p, const byte* data, int size) +int md5Update (md5Param* p, const byte* data, size_t size) /*@modifies p @*/; /*@=exportlocal@*/ @@ -77,7 +83,7 @@ int md5Update (md5Param* p, const byte* data, int size) */ /*@-exportlocal@*/ BEECRYPTAPI -int md5Digest (md5Param* p, /*@out@*/ uint32* data) +int md5Digest (md5Param* p, /*@out@*/ byte* data) /*@modifies p, data @*/; /*@=exportlocal@*/ |