summaryrefslogtreecommitdiff
path: root/cipher/md.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-11-23 11:40:36 +0000
committerWerner Koch <wk@gnupg.org>2002-11-23 11:40:36 +0000
commitdbfdd27f05f48695ce576bfe69b40a9ccb4f19e9 (patch)
tree1b79dcb4b47f9f922eb05ca1d4a4847fb8729712 /cipher/md.c
parent7cead41779018b01bd6b8407d6d9140239dfbcab (diff)
downloadlibgcrypt-dbfdd27f05f48695ce576bfe69b40a9ccb4f19e9.tar.gz
* md.c (load_digest_module): Enlarged checked_algos bitmap.
* md4.c (func_table): Fixed entry for md4. Both by Simon Josephson. (transform): Copy data to get the alignment straight. Tested only on i386.
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/md.c b/cipher/md.c
index 4f41a7a0..ebfcdcd7 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -145,7 +145,7 @@ static int
load_digest_module( int req_algo )
{
static int initialized = 0;
- static u32 checked_algos[256/32];
+ static u32 checked_algos[512/32];
static int checked_all = 0;
struct md_digest_list_s *r;
void *context = NULL;
@@ -161,7 +161,7 @@ load_digest_module( int req_algo )
initialized = 1;
}
algo = req_algo;
- if( algo > 255 || !algo )
+ if( algo > 511 || !algo )
return 0; /* algorithm number too high (does not fit into out bitmap)*/
if( checked_all )
return 0; /* already called with -1 */