Home
last modified time | relevance | path

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

/openssl/crypto/ec/
H A Decdsa_sign.c26 const BIGNUM *kinv, const BIGNUM *rp, in ECDSA_do_sign_ex() argument
30 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex()
42 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, in ECDSA_sign_ex() argument
46 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); in ECDSA_sign_ex()
H A Decdsa_ossl.c76 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) in ossl_ecdsa_sign() argument
80 if (sig == NULL && (kinv == NULL || r == NULL)) { in ossl_ecdsa_sign()
85 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ossl_ecdsa_sign()
102 BIGNUM *kinv = NULL, *r = NULL; in ossl_ecdsa_deterministic_sign() local
115 if (!ecdsa_sign_setup(eckey, NULL, &kinv, &r, dgst, dlen, in ossl_ecdsa_deterministic_sign()
119 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ossl_ecdsa_deterministic_sign()
127 BN_clear_free(kinv); in ossl_ecdsa_deterministic_sign()
276 BIGNUM *kinv = NULL, *s, *m = NULL; in ossl_ecdsa_simple_sign_sig() local
341 if (!ecdsa_sign_setup(eckey, ctx, &kinv, &ret->r, dgst, dgst_len, in ossl_ecdsa_simple_sign_sig()
346 ckinv = kinv; in ossl_ecdsa_simple_sign_sig()
[all …]
H A Decp_s390x_nistp.c127 const BIGNUM *kinv, in ecdsa_s390x_nistp_sign_sig() argument
175 if (r == NULL || kinv == NULL) { in ecdsa_s390x_nistp_sign_sig()
193 if (ossl_ec_group_do_inverse_ord(group, k, kinv, NULL) == 0 in ecdsa_s390x_nistp_sign_sig()
303 const BIGNUM *kinv,\
307 return ecdsa_s390x_nistp_sign_sig(dgst, dgstlen, kinv, r, eckey, \
H A Dec_kmeth.c232 const BIGNUM *kinv, const BIGNUM *r, in EC_KEY_METHOD_set_sign() argument
307 const BIGNUM *kinv, const BIGNUM *r, in EC_KEY_METHOD_get_sign() argument
H A Dec_local.h182 const BIGNUM *kinv, const BIGNUM *r,
679 *sig, unsigned int *siglen, const BIGNUM *kinv,
713 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey);
/openssl/test/
H A Decdsatest.c86 BIGNUM *kinv = NULL, *rp = NULL; in x9_62_tests() local
131 if (!TEST_true(ECDSA_sign_setup(key, NULL, &kinv, &rp)) in x9_62_tests()
133 kinv, rp, key)) in x9_62_tests()
155 BN_clear_free(kinv); in x9_62_tests()
358 BIGNUM *kinv = NULL, *rp = NULL; in test_ecdsa_sig_NULL() local
372 && TEST_int_eq(ECDSA_sign_setup(eckey, NULL, &kinv, &rp), 1) in test_ecdsa_sig_NULL()
374 kinv, rp, eckey), 1) in test_ecdsa_sig_NULL()
378 kinv, rp, eckey), 1) in test_ecdsa_sig_NULL()
384 BN_free(kinv); in test_ecdsa_sig_NULL()
/openssl/doc/man3/
H A DECDSA_sign.pod31 const BIGNUM *kinv, const BIGNUM *rp,
33 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);
36 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
57 ignored. ECDSA_sign() is wrapper function for ECDSA_sign_ex() with I<kinv>
62 is a wrapper function for ECDSA_do_sign_ex() with I<kinv> and I<rp> set to
72 The remaining functions utilise the internal I<kinv> and I<r> values used
75 either I<kinv> or I<r> is not NULL.
79 (or NULL). The precomputed values or returned in I<kinv> and I<rp> and can be
84 I<kinv> and I<rp>. The DER encoded signature is stored in I<sig> and its
/openssl/crypto/dsa/
H A Ddsa_ossl.c80 BIGNUM *kinv = NULL; in ossl_dsa_do_sign_int() local
118 if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen, in ossl_dsa_do_sign_int()
170 if (!BN_mod_mul(ret->s, ret->s, kinv, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
200 BN_clear_free(kinv); in ossl_dsa_do_sign_int()
224 BIGNUM *k, *kinv = NULL, *r = *rp; in dsa_sign_setup() local
338 if ((kinv = dsa_mod_inverse_fermat(k, dsa->params.q, ctx)) == NULL) in dsa_sign_setup()
342 *kinvp = kinv; in dsa_sign_setup()
343 kinv = NULL; in dsa_sign_setup()
/openssl/include/openssl/
H A Dec.h1398 int dgstlen, const BIGNUM *kinv,
1421 BIGNUM **kinv, BIGNUM **rp);
1452 unsigned int *siglen, const BIGNUM *kinv,
1504 const BIGNUM *kinv, const BIGNUM *r,
1548 const BIGNUM *kinv, const BIGNUM *r,
/openssl/providers/implementations/signature/
H A Decdsa_sig.c117 BIGNUM *kinv; member
333 if (ctx->kattest && !ECDSA_sign_setup(ctx->ec, NULL, &ctx->kinv, &ctx->r)) in ecdsa_sign_directly()
353 ret = ECDSA_sign_ex(0, tbs, tbslen, sig, &sltmp, ctx->kinv, ctx->r, in ecdsa_sign_directly()
616 BN_clear_free(ctx->kinv); in ecdsa_freectx()
640 if (srcctx->kinv != NULL || srcctx->r != NULL) in ecdsa_dupctx()

Completed in 29 milliseconds