X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/6a080b289fa8c961e788a9a79d3a4a6fbb21539c..183e9cd31b1ac2f14b86c5de6ac2643b8a4364a2:/rand.c diff --git a/rand.c b/rand.c index 2136c97..9da7f66 100644 --- a/rand.c +++ b/rand.c @@ -351,7 +351,7 @@ static PyTypeObject lcrand_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Linear congruential generator.", +"LCRand([seed = 0]): linear congruential generator.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -408,7 +408,7 @@ static PyTypeObject fibrand_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Fibonacci generator.", +"FibRand([seed = 0]): Fibonacci generator.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -553,7 +553,7 @@ static PyTypeObject truerand_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"True random number source.", +"TrueRand(): true random number source.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -996,7 +996,8 @@ static PyTypeObject sslprf_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Random number generator for SSL master secret.", +"SSLRand(KEY, SEED, [ohash = md5], [ihash = sha]):\n\ + RNG for SSL master secret.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -1044,7 +1045,8 @@ static PyTypeObject tlsdx_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"TLS data expansion function.", +"TLSDataExpansion(KEY, SEED, [mac = sha_hmac]):\n\ + TLS data expansion function.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -1092,7 +1094,8 @@ static PyTypeObject tlsprf_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"TLS pseudorandom function.", +"TLSPRF(KEY, SEED, [lmac = md5_hmac], [rmac = sha_hmac]):\n\ + TLS pseudorandom function.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -1172,7 +1175,7 @@ static PyTypeObject dsarand_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Pseudorandom number generator for constructing DSA parameters.", +"DSARand(SEED): pseudorandom number generator for DSA parameters.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -1304,7 +1307,7 @@ static PyTypeObject bbs_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Blum-Blum-Shub strong pseudorandom number generator.", +"BlumBlumShub(N, [x = 2]): Blum-Blum-Shub pseudorandom number generator.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -1462,7 +1465,8 @@ static PyTypeObject bbspriv_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Blum-Blum-Shub strong pseudorandom generator, with private key.", +"BBSPriv(..., seed = 2]): Blum-Blum-Shub, with private key.\n\ + Keywords: n, p, q; must provide at least two", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */