summaryrefslogtreecommitdiff
path: root/src/MD2.c
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2013-07-14 20:26:53 -0700
committerDwayne Litzenberger <dlitz@dlitz.net>2013-07-14 20:26:53 -0700
commit63bc0fb0aa463a70a0d115fad21219b896683c8d (patch)
tree1e1542325314e7af8df6c85d44cb3015f9f206e6 /src/MD2.c
parent103bf3ecccf7f5d048385b0494081f140df71cc4 (diff)
downloadpycrypto-63bc0fb0aa463a70a0d115fad21219b896683c8d.tar.gz
Improve C extension autodocs
- Add __all__ to C cipher & hash modules - Update hash module docstrings to document the block_size and digest_size variables. Closes: https://bugs.launchpad.net/pycrypto/+bug/1179255
Diffstat (limited to 'src/MD2.c')
-rw-r--r--src/MD2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/MD2.c b/src/MD2.c
index 4214ac0..86ea859 100644
--- a/src/MD2.c
+++ b/src/MD2.c
@@ -49,7 +49,13 @@ static char MODULE__doc__[] =
"\n"
"This algorithm is both slow and insecure. Do not use it for new designs.\n"
"\n"
- ".. _RFC1319: http://tools.ietf.org/html/rfc1319\n";
+ ".. _RFC1319: http://tools.ietf.org/html/rfc1319\n"
+ "\n"
+ ":Variables:\n"
+ " block_size\n"
+ " The internal block size of the hash algorithm in bytes.\n"
+ " digest_size\n"
+ " The size of the resulting hash in bytes.\n";
typedef uint8_t U8;
typedef uint32_t U32;