Searched refs:kinv (Results 1 - 7 of 7) sorted by relevance

/freebsd-10-stable/crypto/openssl/crypto/ecdsa/
H A Decs_sign.c68 const BIGNUM *kinv, const BIGNUM *rp,
74 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey);
84 *sig, unsigned int *siglen, const BIGNUM *kinv,
89 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey);
67 ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) argument
83 ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) argument
H A Decdsa.h124 * \param kinv BIGNUM with a pre-computed inverse k (optional)
131 const BIGNUM *kinv, const BIGNUM *rp,
174 * \param kinv BIGNUM pointer for the inverse of k
178 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);
200 * \param kinv BIGNUM with a pre-computed inverse k (optional)
208 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
H A Decs_locl.h73 int (*ecdsa_sign_setup) (EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
H A Decs_ossl.c218 BIGNUM *kinv = NULL, *s, *m = NULL, *tmp = NULL, *order = NULL; local
269 if (!ECDSA_sign_setup(eckey, ctx, &kinv, &ret->r)) {
273 ckinv = kinv;
296 * if kinv and r have been supplied by the caller don't to
297 * generate new kinv and r values
324 if (kinv)
325 BN_clear_free(kinv);
/freebsd-10-stable/crypto/openssl/crypto/dsa/
H A Ddsa_ossl.c135 BIGNUM *kinv = NULL, *r = NULL, *s = NULL; local
158 if ((dsa->kinv == NULL) || (dsa->r == NULL)) {
159 if (!DSA_sign_setup(dsa, ctx, &kinv, &r))
162 kinv = dsa->kinv;
163 dsa->kinv = NULL;
187 if (!BN_mod_mul(s, s, kinv, dsa->q, ctx))
217 if (kinv != NULL) /* dsa->kinv is NULL now if we used it */
218 BN_clear_free(kinv);
226 BIGNUM k, kq, *K, *kinv = NULL, *r = NULL; local
[all...]
H A Ddsa_lib.c169 ret->kinv = NULL;
228 if (r->kinv != NULL)
229 BN_clear_free(r->kinv);
H A Ddsa.h168 BIGNUM *kinv; /* Signing pre-calc */ member in struct:dsa_st

Completed in 173 milliseconds