diff options
| author | Werner Koch <[email protected]> | 1998-06-16 15:13:28 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 1998-06-16 15:13:28 +0000 |
| commit | e6ac5acbbf56ed8995bfa4d5a28160fa3a5d825f (patch) | |
| tree | 6ff27595e33dd57d3a8979d245236bd5f404c9b4 /cipher/md5.h | |
| parent | extensions are now working and fixed a lot of bugs (diff) | |
| download | gnupg-e6ac5acbbf56ed8995bfa4d5a28160fa3a5d825f.tar.gz gnupg-e6ac5acbbf56ed8995bfa4d5a28160fa3a5d825f.zip | |
some more internall structure changes
Diffstat (limited to 'cipher/md5.h')
| -rw-r--r-- | cipher/md5.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/cipher/md5.h b/cipher/md5.h index 817a526a4..a4bcf5c63 100644 --- a/cipher/md5.h +++ b/cipher/md5.h @@ -20,19 +20,15 @@ #ifndef G10_MD5_H #define G10_MD5_H -#include "types.h" -typedef struct { - u32 A,B,C,D; /* chaining variables */ - u32 total[2]; - u32 buflen; - char buffer[128]; -} MD5_CONTEXT; +const char * +md5_get_info( int algo, size_t *contextsize, + byte **r_asnoid, int *r_asn_len, int *r_mdlen, + void (**r_init)( void *c ), + void (**r_write)( void *c, byte *buf, size_t nbytes ), + void (**r_final)( void *c ), + byte *(**r_read)( void *c ) + ); -void md5_init( MD5_CONTEXT *ctx ); -void md5_write( MD5_CONTEXT *ctx, const void *buffer, size_t len); -void md5_final( MD5_CONTEXT *ctx); -#define md5_read(h) ( (h)->buffer ) - #endif /*G10_MD5_H*/ |
