summaryrefslogtreecommitdiff
path: root/src/SHA384.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/SHA384.c')
-rw-r--r--src/SHA384.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/SHA384.c b/src/SHA384.c
index 24b200c..eb7051e 100644
--- a/src/SHA384.c
+++ b/src/SHA384.c
@@ -27,13 +27,28 @@
*
*/
-#define MODULE_NAME _SHA384
-#define ALGORITHM_NAME "SHA384"
+#define MODULE_NAME SHA384
#define DIGEST_SIZE (384/8)
#define BLOCK_SIZE (1024/8)
#define WORD_SIZE 8
#define SCHEDULE_SIZE 80
+static char MODULE__doc__[] =
+ "SHA-384 cryptographic hash algorithm.\n"
+ "\n"
+ "SHA-384 belongs to the SHA-2_ family of cryptographic hashes.\n"
+ "It produces the 384 bit digest of a message.\n"
+ "\n"
+ " >>> from Crypto.Hash import SHA384\n"
+ " >>>\n"
+ " >>> h = SHA384.new()\n"
+ " >>> h.update(b'Hello')\n"
+ " >>> print h.hexdigest()\n"
+ "\n"
+ "*SHA* stands for Secure Hash Algorithm.\n"
+ "\n"
+ ".. _SHA-2: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf\n";
+
#include "hash_SHA2.h"
/* Initial Values H */