diff options
| author | Rohit Aggarwal <[email protected]> | 2018-03-08 16:46:31 +0000 |
|---|---|---|
| committer | Rohit Aggarwal <[email protected]> | 2018-03-08 16:46:31 +0000 |
| commit | 4b4d3120180648fbed3581f1d9be3dab10199637 (patch) | |
| tree | 391d2ff95f625950d39a7b75d6fae288d7fedeb0 /openssl/src | |
| parent | Use examples listed in OpenSSL docs for testing (diff) | |
| download | rust-openssl-4b4d3120180648fbed3581f1d9be3dab10199637.tar.xz rust-openssl-4b4d3120180648fbed3581f1d9be3dab10199637.zip | |
Another try at using the correct curve
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/ecdsa.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/openssl/src/ecdsa.rs b/openssl/src/ecdsa.rs index a8f6cbbd..10f5f893 100644 --- a/openssl/src/ecdsa.rs +++ b/openssl/src/ecdsa.rs @@ -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)?) |