/external/openssl/crypto/dsa/ |
D | dsa_ossl.c | 132 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 …]
|
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 | 67 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()
|
D | ecdsa.h | 137 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,
|
D | ecs_ossl.c | 216 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()
|
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 | 137 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,
|
D | dsa.h | 155 BIGNUM *kinv; /* Signing pre-calc */ member
|