Lines Matching refs:eckey
642 static int prepare_ec_explicit_params(const void *eckey, in prepare_ec_explicit_params() argument
652 params->length = i2d_ECParameters(eckey, ¶ms->data); in prepare_ec_explicit_params()
668 static int prepare_ec_params(const void *eckey, int nid, int save, in prepare_ec_params() argument
672 const EC_GROUP *group = EC_KEY_get0_group(eckey); in prepare_ec_params()
698 return prepare_ec_explicit_params(eckey, pstr, pstrtype); in prepare_ec_params()
702 static int ec_spki_pub_to_der(const void *eckey, unsigned char **pder) in ec_spki_pub_to_der() argument
704 if (EC_KEY_get0_public_key(eckey) == NULL) { in ec_spki_pub_to_der()
708 return i2o_ECPublicKey(eckey, pder); in ec_spki_pub_to_der()
713 EC_KEY *eckey = (EC_KEY *)veckey; in ec_pki_priv_to_der() local
724 old_flags = EC_KEY_get_enc_flags(eckey); /* save old flags */ in ec_pki_priv_to_der()
725 EC_KEY_set_enc_flags(eckey, old_flags | EC_PKEY_NO_PARAMETERS); in ec_pki_priv_to_der()
726 ret = i2d_ECPrivateKey(eckey, pder); in ec_pki_priv_to_der()
727 EC_KEY_set_enc_flags(eckey, old_flags); /* restore old flags */ in ec_pki_priv_to_der()