Lines Matching refs:eckey
18 int ECDSA_size(const EC_KEY *eckey);
21 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);
23 EC_KEY *eckey);
26 const unsigned char *sig, int siglen, EC_KEY *eckey);
28 const ECDSA_SIG *sig, EC_KEY* eckey);
32 EC_KEY *eckey);
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);
50 created with the private EC key I<eckey>. To obtain the actual signature
54 I<dgst> using the private EC key I<eckey>. The DER encoded signatures is
56 point to ECDSA_size(eckey) bytes of memory. The parameter I<type> is currently
67 public key I<eckey>. The parameter I<type> is ignored.
78 I<eckey> is the private EC key and I<ctx> is a pointer to B<BN_CTX> structure
83 I<dgst> using the private EC key I<eckey> and the optional pre-computed values
85 length is returned in I<siglen>. Note: I<sig> must point to ECDSA_size(eckey)
116 EC_KEY *eckey;
118 eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
119 if (eckey == NULL)
121 if (EC_KEY_generate_key(eckey) == 0)
127 sig = ECDSA_do_sign(digest, 32, eckey);
136 buf_len = ECDSA_size(eckey);
139 if (ECDSA_sign(0, dgst, dgstlen, pp, &buf_len, eckey) == 0)
144 ret = ECDSA_do_verify(digest, 32, sig, eckey);
148 ret = ECDSA_verify(0, digest, 32, buffer, buf_len, eckey);