Home
last modified time | relevance | path

Searched refs:kinv (Results 1 – 11 of 11) sorted by relevance

/external/openssl/crypto/dsa/
Ddsa_ossl.c132 BIGNUM *kinv=NULL,*r=NULL,*s=NULL; in dsa_do_sign() local
161 if ((dsa->kinv == NULL) || (dsa->r == NULL)) in dsa_do_sign()
163 if (!DSA_sign_setup(dsa,ctx,&kinv,&r)) goto err; in dsa_do_sign()
167 kinv=dsa->kinv; in dsa_do_sign()
168 dsa->kinv=NULL; in dsa_do_sign()
180 if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err; in dsa_do_sign()
197 if (kinv != NULL) /* dsa->kinv is NULL now if we used it */ in dsa_do_sign()
198 BN_clear_free(kinv); in dsa_do_sign()
205 BIGNUM k,kq,*K,*kinv=NULL,*r=NULL; in dsa_sign_setup() local
272 if ((kinv=BN_mod_inverse(NULL,&k,dsa->q,ctx)) == NULL) goto err; in dsa_sign_setup()
[all …]
Ddsa_lib.c161 ret->kinv=NULL; in DSA_new_method()
215 if (r->kinv != NULL) BN_clear_free(r->kinv); in DSA_free()
Dfips186a.txt71 kinv =
Ddsa.h155 BIGNUM *kinv; /* Signing pre-calc */ member
/external/openssl/crypto/ecdsa/
Decs_sign.c67 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) in ECDSA_do_sign_ex() argument
72 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex()
82 *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, in ECDSA_sign_ex() argument
86 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ECDSA_sign_ex()
Decdsa.h137 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
188 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
221 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
Decs_ossl.c216 BIGNUM *kinv=NULL, *s, *m=NULL,*tmp=NULL,*order=NULL; in ecdsa_do_sign() local
278 if (!ECDSA_sign_setup(eckey, ctx, &kinv, &ret->r)) in ecdsa_do_sign()
283 ckinv = kinv; in ecdsa_do_sign()
341 if (kinv) in ecdsa_do_sign()
342 BN_clear_free(kinv); in ecdsa_do_sign()
Decs_locl.h73 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_sign_hash.c35 void *k, *kinv, *tmp; in dsa_sign_hash_raw() local
62 …if ((err = mp_init_multi(&k, &kinv, &tmp, NULL)) != CRYPT_OK) { goto ERRBUF;… in dsa_sign_hash_raw()
84 …if ((err = mp_invmod(k, key->q, kinv)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
96 …if ((err = mp_mulmod(s, kinv, key->q, s)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
102 mp_clear_multi(k, kinv, tmp, NULL); in dsa_sign_hash_raw()
/external/openssl/include/openssl/
Decdsa.h137 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
188 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
221 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
Ddsa.h155 BIGNUM *kinv; /* Signing pre-calc */ member