aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-02-04 18:28:57 +0000
committerDavid Shaw <[email protected]>2003-02-04 18:28:57 +0000
commitdefeb83a8d9da7fb7806dd3dd8b23bc8a958d215 (patch)
treeb6dcb9204e4f5077089b3015d842462a4a5e8b7a
parent* configure.ac (ALL_LINGUAS): Needs to be on one line to avoid problems (diff)
downloadgnupg-defeb83a8d9da7fb7806dd3dd8b23bc8a958d215.tar.gz
gnupg-defeb83a8d9da7fb7806dd3dd8b23bc8a958d215.zip
* cipher.h: Add constants for new SHAs.
-rw-r--r--include/ChangeLog4
-rw-r--r--include/cipher.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 567a0e7c4..aa33d9fbe 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-04 David Shaw <[email protected]>
+
+ * cipher.h: Add constants for new SHAs.
+
2002-11-06 David Shaw <[email protected]>
* util.h: Add wipememory2() macro (same as wipememory, but can
diff --git a/include/cipher.h b/include/cipher.h
index 5a8982244..2e093c6a5 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -59,6 +59,9 @@
#define DIGEST_ALGO_SHA1 2
#define DIGEST_ALGO_RMD160 3
#define DIGEST_ALGO_TIGER 6
+#define DIGEST_ALGO_SHA256 8
+#define DIGEST_ALGO_SHA384 9
+#define DIGEST_ALGO_SHA512 10
#define is_RSA(a) ((a)==PUBKEY_ALGO_RSA || (a)==PUBKEY_ALGO_RSA_E \
|| (a)==PUBKEY_ALGO_RSA_S )