Home
last modified time | relevance | path

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

/external/openssl/crypto/dsa/
Ddsa_ossl.c133 BIGNUM *kinv=NULL,*r=NULL,*s=NULL; in dsa_do_sign() local
163 if ((dsa->kinv == NULL) || (dsa->r == NULL)) in dsa_do_sign()
165 if (!DSA_sign_setup(dsa,ctx,&kinv,&r)) goto err; in dsa_do_sign()
169 kinv=dsa->kinv; in dsa_do_sign()
170 dsa->kinv=NULL; in dsa_do_sign()
189 if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err; in dsa_do_sign()
206 if (kinv != NULL) /* dsa->kinv is NULL now if we used it */ in dsa_do_sign()
207 BN_clear_free(kinv); in dsa_do_sign()
214 BIGNUM k,kq,*K,*kinv=NULL,*r=NULL; in dsa_sign_setup() local
281 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.c68 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) in ECDSA_do_sign_ex() argument
73 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex()
83 *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, in ECDSA_sign_ex() argument
88 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ECDSA_sign_ex()
Decdsa.h131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
177 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
208 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
275 if (!ECDSA_sign_setup(eckey, ctx, &kinv, &ret->r)) in ecdsa_do_sign()
280 ckinv = kinv; in ecdsa_do_sign()
338 if (kinv) in ecdsa_do_sign()
339 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.h131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
177 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
208 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
Ddsa.h155 BIGNUM *kinv; /* Signing pre-calc */ member