aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/algorithms.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2006-04-20 02:05:32 +0000
committerDavid Shaw <[email protected]>2006-04-20 02:05:32 +0000
commitf0902a6aef4055030a8487dc21745e4e9cc93e53 (patch)
treededcdbeb9f77beb985c9f0882bc4fb97ee526d0f /cipher/algorithms.h
parent* keyedit.c (menu_backsign): Give some more verbose errors when we (diff)
downloadgnupg-f0902a6aef4055030a8487dc21745e4e9cc93e53.tar.gz
gnupg-f0902a6aef4055030a8487dc21745e4e9cc93e53.zip
Add SHA-224 support
Diffstat (limited to 'cipher/algorithms.h')
-rw-r--r--cipher/algorithms.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/cipher/algorithms.h b/cipher/algorithms.h
index 8c125611c..65346fea3 100644
--- a/cipher/algorithms.h
+++ b/cipher/algorithms.h
@@ -1,5 +1,5 @@
/* algorithms.h - prototypes for algorithm functions.
- * Copyright (C) 2002 Free Software Foundation, Inc.
+ * Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -52,6 +52,15 @@ sha1_get_info (int algo, size_t *contextsize,
);
const char *
+sha224_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 *
sha256_get_info (int algo, size_t *contextsize,
byte **r_asnoid, int *r_asnlen, int *r_mdlen,
void (**r_init)( void *c ),