X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..a02a22d4b55d233ada2e030a44065f464b79f137:/pub/dsa.h diff --git a/pub/dsa.h b/pub/dsa.h index 3b93d933..97046fde 100644 --- a/pub/dsa.h +++ b/pub/dsa.h @@ -190,6 +190,24 @@ extern int dsa_checkparam(keycheck */*kc*/, const dsa_param */*dp*/, extern mp *dsa_h2n(mp */*d*/, mp */*r*/, const void */*h*/, size_t /*hsz*/); +/* --- @dsa_nonce@ --- * + * + * Arguments: @mp *d@ = destination integer + * @mp *q@ = order of the DSA group + * @mp *x@ = secret key + * @const octet *m@ = message hash + * @const gchash *h@ = hash class + * @grand *r@ = random bit source, or null + * + * Returns: A nonce. + * + * Use: Generates a nonce for use in DSA (or another Fiat--Shamir + * signature scheme). + */ + +extern mp *dsa_nonce(mp */*d*/, mp */*q*/, mp */*x*/, const octet */*m*/, + const gchash */*ch*/, grand */*r*/); + /* --- @dsa_mksig@ --- * * * Arguments: @const dsa_param *dp@ = pointer to DSA parameters