diff options
author | David Shaw <[email protected]> | 2003-02-04 19:28:40 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-02-04 19:28:40 +0000 |
commit | cef8bbd91f5048a87321ee5202c400eac7a013a5 (patch) | |
tree | 326ede0e9b2dcd6f2e488c9f21a9af30aba63816 /cipher/algorithms.h | |
parent | * cipher.h: Add constants for new SHAs. (diff) | |
download | gnupg-cef8bbd91f5048a87321ee5202c400eac7a013a5.tar.gz gnupg-cef8bbd91f5048a87321ee5202c400eac7a013a5.zip |
* 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.
Diffstat (limited to 'cipher/algorithms.h')
-rw-r--r-- | cipher/algorithms.h | 28 |
1 files changed, 26 insertions, 2 deletions
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, |