From cef8bbd91f5048a87321ee5202c400eac7a013a5 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Tue, 4 Feb 2003 19:28:40 +0000 Subject: * sha256.c, sha512.c: New. * Makefile.am, algorithms.h, md.c (load_digest_module, string_to_digest_algo): Add read-only support for the new SHAs. --- cipher/algorithms.h | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'cipher/algorithms.h') diff --git a/cipher/algorithms.h b/cipher/algorithms.h index 694a7e35c..9764ec758 100644 --- a/cipher/algorithms.h +++ b/cipher/algorithms.h @@ -22,8 +22,6 @@ const char *dynload_enum_module_names (int seq); - - const char * md5_get_info (int algo, size_t *contextsize, byte **r_asnoid, int *r_asnlen, int *r_mdlen, @@ -61,6 +59,32 @@ tiger_get_info (int algo, size_t *contextsize, byte *(**r_read)( void *c ) ); +const char * +sha256_get_info (int algo, size_t *contextsize, + byte **r_asnoid, int *r_asnlen, 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 ) + ); + +const char * +sha384_get_info (int algo, size_t *contextsize, + byte **r_asnoid, int *r_asnlen, 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 ) + ); + +const char * +sha512_get_info (int algo, size_t *contextsize, + byte **r_asnoid, int *r_asnlen, 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 ) + ); const char * des_get_info( int algo, size_t *keylen, -- cgit