HomeSort by relevance Sort by last modified time
    Searched refs:kinv (Results 1 - 10 of 10) sorted by null

  /external/openssl/crypto/ecdsa/
ecs_sign.c 68 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey)
73 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey);
83 *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r,
88 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey);
ecdsa.h 130 * \param kinv optional pointer to a pre-computed inverse k
137 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
184 * \param kinv pointer to a BIGNUM pointer for the inverse of k
188 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
214 * \param kinv optional pointer to a pre-computed inverse k
221 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
ecs_locl.h 73 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
ecs_ossl.c 216 BIGNUM *kinv=NULL, *s, *m=NULL,*tmp=NULL,*order=NULL; local
275 if (!ECDSA_sign_setup(eckey, ctx, &kinv, &ret->r))
280 ckinv = kinv;
309 /* if kinv and r have been supplied by the caller
310 * don't to generate new kinv and r values */
338 if (kinv)
339 BN_clear_free(kinv);
  /external/openssl/crypto/dsa/
dsa_ossl.c 134 BIGNUM *kinv=NULL,*r=NULL,*s=NULL; local
163 if ((dsa->kinv == NULL) || (dsa->r == NULL))
165 if (!DSA_sign_setup(dsa,ctx,&kinv,&r)) goto err;
169 kinv=dsa->kinv;
170 dsa->kinv=NULL;
182 if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err;
199 if (kinv != NULL) /* dsa->kinv is NULL now if we used it */
200 BN_clear_free(kinv);
207 BIGNUM k,kq,*K,*kinv=NULL,*r=NULL; local
    [all...]
dsa_lib.c 188 ret->kinv=NULL;
242 if (r->kinv != NULL) BN_clear_free(r->kinv);
dsa.h 176 BIGNUM *kinv; /* Signing pre-calc */ member in struct:dsa_st
  /external/openssl/include/openssl/
ecdsa.h 130 * \param kinv optional pointer to a pre-computed inverse k
137 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
184 * \param kinv pointer to a BIGNUM pointer for the inverse of k
188 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
214 * \param kinv optional pointer to a pre-computed inverse k
221 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
dsa.h 176 BIGNUM *kinv; /* Signing pre-calc */ member in struct:dsa_st
  /external/dropbear/libtomcrypt/src/pk/dsa/
dsa_sign_hash.c 35 void *k, *kinv, *tmp; local
62 if ((err = mp_init_multi(&k, &kinv, &tmp, NULL)) != CRYPT_OK) { goto ERRBUF; }
84 if ((err = mp_invmod(k, key->q, kinv)) != CRYPT_OK) { goto error; }
96 if ((err = mp_mulmod(s, kinv, key->q, s)) != CRYPT_OK) { goto error; }
102 mp_clear_multi(k, kinv, tmp, NULL);

Completed in 1277 milliseconds