Searched refs:EcKey (Results 1 – 11 of 11) sorted by relevance
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | ec.rs | 635 pub struct EcKey<T>; 726 type Owned = EcKey<T>; 728 fn to_owned(&self) -> EcKey<T> { in to_owned() 732 EcKey::from_ptr(self.as_ptr()) in to_owned() 737 impl EcKey<Params> { implementation 743 pub fn from_curve_name(nid: Nid) -> Result<EcKey<Params>, ErrorStack> { in from_curve_name() 746 cvt_p(ffi::EC_KEY_new_by_curve_name(nid.as_raw())).map(|p| EcKey::from_ptr(p)) in from_curve_name() 752 pub fn from_group(group: &EcGroupRef) -> Result<EcKey<Params>, ErrorStack> { in from_group() 755 .map(|p| EcKey::from_ptr(p)) in from_group() 763 impl EcKey<Public> { impl [all …]
|
D | ecdsa.rs | 152 use crate::ec::EcKey; 156 fn get_public_key(group: &EcGroup, x: &EcKey<Private>) -> Result<EcKey<Public>, ErrorStack> { in get_public_key() 157 EcKey::from_public_key(group, x.public_key()) in get_public_key() 164 let private_key = EcKey::generate(&group).unwrap(); in sign_and_verify() 167 let private_key2 = EcKey::generate(&group).unwrap(); in sign_and_verify() 192 let private_key = EcKey::generate(&group).unwrap(); in check_private_components() 212 let private_key = EcKey::generate(&group).unwrap(); in serialize_deserialize()
|
D | derive.rs | 157 use crate::ec::{EcGroup, EcKey}; 164 let ec_key = EcKey::generate(&group).unwrap(); in derive_without_peer() 173 let ec_key = EcKey::generate(&group).unwrap(); in test_ec_key_derive() 174 let ec_key2 = EcKey::generate(&group).unwrap(); in test_ec_key_derive()
|
D | pkey.rs | 48 use crate::ec::EcKey; 183 pub fn ec_key(&self) -> Result<EcKey<T>, ErrorStack> { in ec_key() 186 Ok(EcKey::from_ptr(ec_key)) in ec_key() 453 pub fn from_ec_key(ec_key: EcKey<T>) -> Result<PKey<T>, ErrorStack> { in from_ec_key() 816 impl<T> TryFrom<EcKey<T>> for PKey<T> { 819 fn try_from(ec_key: EcKey<T>) -> Result<PKey<T>, ErrorStack> { in try_from() 824 impl<T> TryFrom<PKey<T>> for EcKey<T> { implementation 827 fn try_from(pkey: PKey<T>) -> Result<EcKey<T>, ErrorStack> { in try_from() 887 use crate::ec::EcKey; 1020 let ec_key = EcKey::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in test_ec_key_accessor() [all …]
|
D | pkey_ctx.rs | 634 use crate::ec::{EcGroup, EcKey}; 695 let key1 = EcKey::generate(&group).unwrap(); in derive() 697 let key2 = EcKey::generate(&group).unwrap(); in derive()
|
D | sign.rs | 651 use crate::ec::{EcGroup, EcKey}; 836 let key = EcKey::generate(&group).unwrap(); in ec()
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/ |
D | callbacks.rs | 20 use crate::ec::EcKey; 244 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send, in raw_tmp_ecdh() 299 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send, in raw_tmp_ecdh_ssl()
|
D | connector.rs | 377 use crate::ec::EcKey; 380 let curve = EcKey::from_curve_name(Nid::X9_62_PRIME256V1)?;
|
D | mod.rs | 62 use crate::ec::EcKey; 881 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send, in set_tmp_ecdh_callback() 2392 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send, in set_tmp_ecdh_callback()
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/ |
D | mod.rs | 873 use crate::ec::EcKey; in tmp_ecdh_callback() 881 EcKey::from_curve_name(Nid::X9_62_PRIME256V1) in tmp_ecdh_callback() 923 use crate::ec::EcKey; in tmp_ecdh_callback_ssl() 932 EcKey::from_curve_name(Nid::X9_62_PRIME256V1) in tmp_ecdh_callback_ssl()
|
/third_party/rust/crates/rust-openssl/openssl/ |
D | CHANGELOG.md | 328 * Added a `Debug` implementation for `EcKey`. 546 * Added `EcKey::from_private_components`. 661 `Dh`, `Dsa`, `EcKey`, `Rsa`, and `PKey` have a type parameter set to one of those values. This
|