DSAEV_FAILQ, /* @q@ failed primality test */
DSAEV_PASSQ, /* @q@ passeed one iteration */
DSAEV_GOODQ, /* Found good prime @q@ */
DSAEV_FAILQ, /* @q@ failed primality test */
DSAEV_PASSQ, /* @q@ passeed one iteration */
DSAEV_GOODQ, /* Found good prime @q@ */
DSAEV_TRYP, /* Try prospective @p@ */
DSAEV_FAILP, /* @p@ failed primality test */
DSAEV_PASSP, /* @p@ passed one iteration */
DSAEV_GOODP, /* @p@ accepted as being prime */
DSAEV_TRYP, /* Try prospective @p@ */
DSAEV_FAILP, /* @p@ failed primality test */
DSAEV_PASSP, /* @p@ passed one iteration */
DSAEV_GOODP, /* @p@ accepted as being prime */
DSAEV_TRYH, /* Try prospective @h@ */
DSAEV_FAILH, /* @h@ failed */
DSAEV_GOODG /* @g@ accepted as a generator */
DSAEV_TRYH, /* Try prospective @h@ */
DSAEV_FAILH, /* @h@ failed */
DSAEV_GOODG /* @g@ accepted as a generator */
* Arguments: @dsa_param *dp@ = where to store parameters
* @unsigned l@ = bitlength of @p@ in bits
* @const void *k@ = pointer to key material
* Arguments: @dsa_param *dp@ = where to store parameters
* @unsigned l@ = bitlength of @p@ in bits
* @const void *k@ = pointer to key material
*
* Returns: Zero if all went well, nonzero if key material was
* unsuitable (one of the @DSAEV@ codes).
*
* Returns: Zero if all went well, nonzero if key material was
* unsuitable (one of the @DSAEV@ codes).
* The event procedure is informed of various happenings during
* generation. It is passed an event code describing what
* happened, and a multiprecision number which pertains to the
* The event procedure is informed of various happenings during
* generation. It is passed an event code describing what
* happened, and a multiprecision number which pertains to the
*/
extern int dsa_seed(dsa_param */*dp*/, unsigned /*l*/,
const void */*k*/, size_t /*sz*/,
*/
extern int dsa_seed(dsa_param */*dp*/, unsigned /*l*/,
const void */*k*/, size_t /*sz*/,
- void (*proc)(int /*ev*/, mp */*m*/, void */*p*/),
+ int (*proc)(int /*ev*/, mp */*m*/, void */*p*/),
- * @const mp *a@ = secret signing key
- * @const mp *m@ = message to be signed
- * @const mp *k@ = random data
+ * @mp *a@ = secret signing key
+ * @mp *m@ = message to be signed
+ * @mp *k@ = random data
-extern void dsa_mksig(const dsa_param */*dp*/, const mp */*a*/,
- const mp */*m*/, const mp */*k*/,
+extern void dsa_mksig(const dsa_param */*dp*/, mp */*a*/,
+ mp */*m*/, mp */*k*/,
- * @const mp *y@ = public verification key
- * @const mp *m@ = message which was signed
- * @const mp *r, *s@ = the signature
+ * @mp *y@ = public verification key
+ * @mp *m@ = message which was signed
+ * @mp *r, *s@ = the signature
*
* Returns: Zero if the signature is a forgery, nonzero if it's valid.
*
* Use: Verifies a DSA digital signature.
*/
*
* Returns: Zero if the signature is a forgery, nonzero if it's valid.
*
* Use: Verifies a DSA digital signature.
*/
-extern int dsa_vrfy(const dsa_param */*dp*/, const mp */*y*/,
- const mp */*m*/, const mp */*r*/, const mp */*s*/);
+extern int dsa_vrfy(const dsa_param */*dp*/, mp */*y*/,
+ mp */*m*/, mp */*r*/, mp */*s*/);
* @const void *m@ = pointer to message block
* @size_t msz@ = size of message block
* @const void *r@ = pointer to @r@ signature half
* @const void *m@ = pointer to message block
* @size_t msz@ = size of message block
* @const void *r@ = pointer to @r@ signature half
const void */*m*/, size_t /*msz*/,
const void */*r*/, size_t /*rsz*/,
const void */*s*/, size_t /*ssz*/);
const void */*m*/, size_t /*msz*/,
const void */*r*/, size_t /*rsz*/,
const void */*s*/, size_t /*ssz*/);