src/sig/ec_key.c
int ec_key_pair_import_from_priv_key_buf(ec_key_pair *kp,
					 const ec_params *params,
					 const u8 *priv_key, u8 priv_key_len,
					 ec_sig_alg_type ec_key_alg)
{
	int ret;

	/* Import private key */
	ec_priv_key_import_from_buf(&(kp->priv_key), params, priv_key,
				    priv_key_len, ec_key_alg);

	/* Generate associated public key. */
	ret = init_pubkey_from_privkey(&(kp->pub_key), &(kp->priv_key));

	return ret;
}
/*
 * Import a key pair from a buffer representing the private key. The associated
 * public key is computed from the private key.
 */
Import a key pair from a buffer representing the private key. The associated
public key is computed from the private key.
Import a key pair from a buffer representing the private key . The associated public key is computed from the private key .
int ec_key_pair_import_from_priv_key_buf(ec_key_pair *kp,
					 const ec_params *params,
					 const u8 *priv_key, u8 priv_key_len,
					 ec_sig_alg_type ec_key_alg)
{
	int ret;
	ec_priv_key_import_from_buf(&(kp->priv_key), params, priv_key,
				    priv_key_len, ec_key_alg);
	ret = init_pubkey_from_privkey(&(kp->pub_key), &(kp->priv_key));
	return ret;
}
int ec_key_pair_import_from_priv_key_buf ( ec_key_pair * kp , const ec_params * params , const u8 * priv_key , u8 priv_key_len , ec_sig_alg_type ec_key_alg ) { int ret ; ec_priv_key_import_from_buf ( & ( kp -> priv_key ) , params , priv_key , priv_key_len , ec_key_alg ) ; ret = init_pubkey_from_privkey ( & ( kp -> pub_key ) , & ( kp -> priv_key ) ) ; return ret ; }
Import a key pair from a buffer representing the private key.
Import a key pair from a buffer representing the private key .
/* Import private key */ /* Generate associated public key. */