Lines Matching refs:eckey
306 Unique_EC_KEY eckey(EC_KEY_new()); in generate_ec_keypair() local
307 if (eckey.get() == NULL) { in generate_ec_keypair()
312 if (EC_KEY_set_group(eckey.get(), group.get()) != 1) { in generate_ec_keypair()
317 if (EC_KEY_generate_key(eckey.get()) != 1 || EC_KEY_check_key(eckey.get()) < 0) { in generate_ec_keypair()
322 if (EVP_PKEY_assign_EC_KEY(pkey, eckey.get()) == 0) { in generate_ec_keypair()
326 release_because_ownership_transferred(eckey); in generate_ec_keypair()
513 Unique_EC_KEY eckey(EVP_PKEY_get1_EC_KEY(pkey)); in sign_ec() local
514 if (eckey.get() == NULL) { in sign_ec()
519 unsigned int ecdsaSize = ECDSA_size(eckey.get()); in sign_ec()
527 if (ECDSA_sign(0, data, dataLength, tmp, &ecdsaSize, eckey.get()) <= 0) { in sign_ec()
641 Unique_EC_KEY eckey(EVP_PKEY_get1_EC_KEY(pkey)); in verify_ec() local
642 if (eckey.get() == NULL) { in verify_ec()
647 if (ECDSA_verify(0, signedData, signedDataLength, signature, signatureLength, eckey.get()) <= in verify_ec()