pub fn from_name(s: &str) -> OsshResult<Self> {
        match s {
            NIST_P256_NAME => Ok(EcCurve::Nistp256),
            NIST_P384_NAME => Ok(EcCurve::Nistp384),
            NIST_P521_NAME => Ok(EcCurve::Nistp521),
            _ => Err(ErrorKind::UnsupportCurve.into()),
        }
    }
/// Parse from the ecdsa key name
Parse from the ecdsa key name
Parse from the ecdsa key name
pub fn from_name(s: &str) -> OsshResult<Self> {
        match s {
            NIST_P256_NAME => Ok(EcCurve::Nistp256),
            NIST_P384_NAME => Ok(EcCurve::Nistp384),
            NIST_P521_NAME => Ok(EcCurve::Nistp521),
            _ => Err(ErrorKind::UnsupportCurve.into()),
        }
    }
pub fn from_name ( s : & str ) -> OsshResult < Self > { match s { NIST_P256_NAME => Ok ( EcCurve :: Nistp256 ) , NIST_P384_NAME => Ok ( EcCurve :: Nistp384 ) , NIST_P521_NAME => Ok ( EcCurve :: Nistp521 ) , _ => Err ( ErrorKind :: UnsupportCurve . into ( ) ) , } }
Parse from the ecdsa key name
Parse from the ecdsa key name
s
&str
s
&str