• Home
  • Raw
  • Download

Lines Matching refs:eckey

67                unsigned int *sig_len, EC_KEY *eckey) {  in ECDSA_sign()  argument
68 if (eckey->ecdsa_meth && eckey->ecdsa_meth->sign) { in ECDSA_sign()
69 return eckey->ecdsa_meth->sign(digest, digest_len, sig, sig_len, eckey); in ECDSA_sign()
73 eckey); in ECDSA_sign()
77 const uint8_t *sig, size_t sig_len, EC_KEY *eckey) { in ECDSA_verify() argument
82 if (eckey->ecdsa_meth && eckey->ecdsa_meth->verify) { in ECDSA_verify()
83 return eckey->ecdsa_meth->verify(digest, digest_len, sig, sig_len, eckey); in ECDSA_verify()
101 ret = ECDSA_do_verify(digest, digest_len, s, eckey); in ECDSA_verify()
143 const ECDSA_SIG *sig, EC_KEY *eckey) { in ECDSA_do_verify() argument
151 if (eckey->ecdsa_meth && eckey->ecdsa_meth->verify) { in ECDSA_do_verify()
157 if ((group = EC_KEY_get0_group(eckey)) == NULL || in ECDSA_do_verify()
158 (pub_key = EC_KEY_get0_public_key(eckey)) == NULL || in ECDSA_do_verify()
233 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ecdsa_sign_setup() argument
242 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) { in ecdsa_sign_setup()
279 ok = BN_generate_dsa_nonce(k, order, EC_KEY_get0_private_key(eckey), in ecdsa_sign_setup()
352 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp) { in ECDSA_sign_setup() argument
353 return ecdsa_sign_setup(eckey, ctx, kinv, rp, NULL, 0); in ECDSA_sign_setup()
358 EC_KEY *eckey) { in ECDSA_do_sign_ex() argument
367 if (eckey->ecdsa_meth && eckey->ecdsa_meth->sign) { in ECDSA_do_sign_ex()
372 group = EC_KEY_get0_group(eckey); in ECDSA_do_sign_ex()
373 priv_key = EC_KEY_get0_private_key(eckey); in ECDSA_do_sign_ex()
401 if (!ecdsa_sign_setup(eckey, ctx, &kinv, &ret->r, digest, digest_len)) { in ECDSA_do_sign_ex()
455 const BIGNUM *r, EC_KEY *eckey) { in ECDSA_sign_ex() argument
459 if (eckey->ecdsa_meth && eckey->ecdsa_meth->sign) { in ECDSA_sign_ex()
465 s = ECDSA_do_sign_ex(digest, digest_len, kinv, r, eckey); in ECDSA_sign_ex()
474 if (!CBB_init_fixed(&cbb, sig, ECDSA_size(eckey)) || in ECDSA_sign_ex()