Function EC_KEY_set_private_key

Source
pub unsafe extern "C" fn EC_KEY_set_private_key(
    key: *mut ec_key_st,
    prv: *const bignum_st,
) -> i32
Expand description

Sets the private key of a EC_KEY object. \param key EC_KEY object \param prv BIGNUM with the private key (note: the EC_KEY object will use an own copy of the BIGNUM). \return 1 on success and 0 if an error occurred.