/external/openssl/crypto/dsa/ |
D | dsa_ossl.c | 133 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 …]
|
D | dsa_lib.c | 161 ret->kinv=NULL; in DSA_new_method() 215 if (r->kinv != NULL) BN_clear_free(r->kinv); in DSA_free()
|
D | fips186a.txt | 71 kinv =
|
D | dsa.h | 155 BIGNUM *kinv; /* Signing pre-calc */ member
|
/external/openssl/crypto/ecdsa/ |
D | ecs_sign.c | 68 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()
|
D | ecdsa.h | 131 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,
|
D | ecs_ossl.c | 216 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()
|
D | ecs_locl.h | 73 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
|
/external/dropbear/libtomcrypt/src/pk/dsa/ |
D | dsa_sign_hash.c | 35 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/ |
D | ecdsa.h | 131 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,
|
D | dsa.h | 155 BIGNUM *kinv; /* Signing pre-calc */ member
|