diff options
Diffstat (limited to 'src/SHA256.c')
-rw-r--r-- | src/SHA256.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/SHA256.c b/src/SHA256.c index 8cc3265..9473abc 100644 --- a/src/SHA256.c +++ b/src/SHA256.c @@ -26,13 +26,28 @@ * =================================================================== * */ -#define MODULE_NAME _SHA256 -#define ALGORITHM_NAME "SHA256" +#define MODULE_NAME SHA256 #define DIGEST_SIZE (256/8) #define BLOCK_SIZE (512/8) #define WORD_SIZE 4 #define SCHEDULE_SIZE 64 - + +static char MODULE__doc__[] = + "SHA-256 cryptographic hash algorithm.\n" + "\n" + "SHA-256 belongs to the SHA-2_ family of cryptographic hashes.\n" + "It produces the 256 bit digest of a message.\n" + "\n" + " >>> from Crypto.Hash import SHA256\n" + " >>>\n" + " >>> h = SHA256.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 */ |