Commit 4b4d3120 authored by Rohit Aggarwal's avatar Rohit Aggarwal
Browse files

Another try at using the correct curve

parent d4de2a40
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -127,16 +127,9 @@ mod test {
    use ec::EcGroup;
    use super::*;

    #[cfg(ossl10x)]
    static CURVE_IDENTIFER: Nid = Nid::SECP192K1;
    #[cfg(ossl10x)]
    static CURVE_IDENTIFER: Nid = Nid::X9_62_PRIME192V1;
    static DGST_LEN: i32 = 20;

    #[cfg(ossl110)]
    static CURVE_IDENTIFER: Nid = Nid::X9_62_PRIME256V1;
    #[cfg(ossl110)]
    static DGST_LEN: i32 = 32;

    fn get_public_key(group: &EcGroup, x: &EcKey<Private>) -> Result<EcKey<Public>, ErrorStack> {
        let public_key_point = x.public_key();
        Ok(EcKey::from_public_key(group, public_key_point)?)