/// Generates a prime256v1 key pair.
///
/// Note that NIST P-256, prime256v1, secp256r1 are all the same, see https://tools.ietf.org/search/rfc4492#appendix-A
Generates a prime256v1 key pair.
Generates a prime256v1 key pair .
pub fn prime256v1_key_pair() -> PKey<Private> {
    let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).expect("unable to create EC group");
    let ec_key_pair = EcKey::generate(&group).expect("unable to create EC key");
    PKey::from_ec_key(ec_key_pair).expect("unable to create EC key pair")
}
pub fn prime256v1_key_pair ( ) -> PKey < Private > { let group = EcGroup :: from_curve_name ( Nid :: X9_62_PRIME256V1 ) . expect ( " " ) ; let ec_key_pair = EcKey :: generate ( & group ) . expect ( " " ) ; PKey :: from_ec_key ( ec_key_pair ) . expect ( " " ) }
Generates a prime256v1 key pair.
Generates a prime256v1 key pair .