Lines Matching refs:priv_key
395 BIGNUM *priv_key = NULL; in ossl_ec_key_fromdata() local
466 if ((priv_key = BN_secure_new()) == NULL) in ossl_ec_key_fromdata()
468 if (bn_wexpand(priv_key, fixed_words) == NULL) in ossl_ec_key_fromdata()
470 BN_set_flags(priv_key, BN_FLG_CONSTTIME); in ossl_ec_key_fromdata()
472 if (!OSSL_PARAM_get_BN(param_priv_key, &priv_key)) in ossl_ec_key_fromdata()
476 if (priv_key != NULL in ossl_ec_key_fromdata()
477 && !EC_KEY_set_private_key(ec, priv_key)) in ossl_ec_key_fromdata()
488 BN_clear_free(priv_key); in ossl_ec_key_fromdata()
637 if (src->priv_key != NULL in ossl_ec_key_dup()
642 ret->priv_key = BN_new(); in ossl_ec_key_dup()
643 if (ret->priv_key == NULL || !BN_copy(ret->priv_key, src->priv_key)) in ossl_ec_key_dup()