Lines Matching refs:eckey
75 EC_KEY *eckey, int expected_result) {
86 actual_result = ECDSA_verify(0, digest, digest_len, der, der_len, eckey);
91 actual_result = ECDSA_do_verify(digest, digest_len, ecdsa_sig, eckey);
105 EC_KEY *eckey, const BIGNUM *order) {
132 !VerifyECDSASig(api, digest, digest_len, ecdsa_sig, eckey, 0)) {
140 !VerifyECDSASig(api, digest, digest_len, ecdsa_sig, eckey, 1)) {
187 ScopedEC_KEY eckey(EC_KEY_new());
188 if (!eckey || !EC_KEY_set_group(eckey.get(), group.get()) ||
189 !EC_KEY_generate_key(eckey.get())) {
205 if (!EC_KEY_check_key(eckey.get())) {
214 unsigned sig_len = ECDSA_size(eckey.get());
216 if (!ECDSA_sign(0, digest, 20, signature.data(), &sig_len, eckey.get())) {
225 eckey.get())) {
241 eckey.get())) {
249 eckey.get())) {
260 eckey.get(), order)) {
269 ecdsa_sig.reset(ECDSA_do_sign(digest, 20, eckey.get()));
277 if (!ECDSA_do_verify(digest, 20, ecdsa_sig.get(), eckey.get())) {
291 if (ECDSA_do_verify(wrong_digest, 20, ecdsa_sig.get(), eckey.get())) {
298 if (!TestTamperedSig(out, kRawApi, digest, 20, ecdsa_sig.get(), eckey.get(),