summaryrefslogtreecommitdiff
path: root/src/SHA512.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/SHA512.c')
-rw-r--r--src/SHA512.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/SHA512.c b/src/SHA512.c
index 3370e8e..f12755c 100644
--- a/src/SHA512.c
+++ b/src/SHA512.c
@@ -27,12 +27,28 @@
*
*/
-#define MODULE_NAME _SHA512
+#define MODULE_NAME SHA512
#define DIGEST_SIZE (512/8)
#define BLOCK_SIZE (1024/8)
#define WORD_SIZE 8
#define SCHEDULE_SIZE 80
+static char MODULE__doc__[] =
+ "SHA-512 cryptographic hash algorithm.\n"
+ "\n"
+ "SHA-512 belongs to the SHA-2_ family of cryptographic hashes.\n"
+ "It produces the 512 bit digest of a message.\n"
+ "\n"
+ " >>> from Crypto.Hash import SHA512\n"
+ " >>>\n"
+ " >>> h = SHA512.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 */