Another try at using the correct curve

This commit is contained in:
Rohit Aggarwal 2018-03-08 16:46:31 +00:00
parent d4de2a408f
commit 4b4d312018
1 changed files with 1 additions and 8 deletions

View File

@ -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)?)