Searched refs:EcKey (Results 1 - 10 of 10) sorted by relevance
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | ec.rs | 133 /// use openssl::ec::{EcGroup, EcKey}; 137 /// let key = EcKey::generate(&group)?; 690 pub struct EcKey<T>; structure names 691 /// A reference to an [`EcKey`]. 781 type Owned = EcKey<T>; 783 fn to_owned(&self) -> EcKey<T> { in to_owned() 787 EcKey::from_ptr(self.as_ptr()) in to_owned() 792 impl EcKey<Params> { impls 793 /// Constructs an `EcKey` corresponding to a known curve. 798 pub fn from_curve_name(nid: Nid) -> Result<EcKey<Param 818 impl EcKey<Public> { global() impls 910 impl EcKey<Private> { global() impls [all...] |
H A 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()
|
H A D | derive.rs | 13 //! use openssl::ec::{EcGroup, EcKey, EcPoint, PointConversionForm}; 18 //! let first: PKey<_> = EcKey::generate(&group)?.try_into()?; 22 //! let shared_key = EcKey::generate(&group)?; 41 //! let recipient_key: PKey<_> = EcKey::from_public_key(&group, &point)?.try_into()?; 178 use crate::ec::{EcGroup, EcKey}; 185 let ec_key = EcKey::generate(&group).unwrap(); in derive_without_peer() 194 let ec_key = EcKey::generate(&group).unwrap(); in test_ec_key_derive() 195 let ec_key2 = EcKey::generate(&group).unwrap(); in test_ec_key_derive() 208 let ec_key = EcKey::generate(&group).unwrap(); in test_ec_key_derive_ex() 209 let ec_key2 = EcKey in test_ec_key_derive_ex() [all...] |
H A D | pkey.rs | 48 use crate::ec::EcKey; 187 pub fn ec_key(&self) -> Result<EcKey<T>, ErrorStack> { in ec_key() 190 Ok(EcKey::from_ptr(ec_key)) in ec_key() 444 pub fn from_ec_key(ec_key: EcKey<T>) -> Result<PKey<T>, ErrorStack> { in from_ec_key() 803 impl<T> TryFrom<EcKey<T>> for PKey<T> { 806 fn try_from(ec_key: EcKey<T>) -> Result<PKey<T>, ErrorStack> { in try_from() 811 impl<T> TryFrom<PKey<T>> for EcKey<T> { 814 fn try_from(pkey: PKey<T>) -> Result<EcKey<T>, ErrorStack> { in try_from() 875 use crate::ec::EcKey; 1009 let ec_key = EcKey in test_ec_key_accessor() [all...] |
H A D | pkey_ctx.rs | 724 use crate::ec::{EcGroup, EcKey}; 833 let key1 = EcKey::generate(&group).unwrap(); in derive() 835 let key2 = EcKey::generate(&group).unwrap(); in derive() 947 EcKey::generate(&EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap()).unwrap(); in verify_fail_ec()
|
H A 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/ |
H A D | connector.rs | 378 use crate::ec::EcKey; in setup_curves() 381 let curve = EcKey::from_curve_name(Nid::X9_62_PRIME256V1)?; in setup_curves()
|
H A D | callbacks.rs | 20 use crate::ec::EcKey; 244 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send, 299 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send,
|
H A D | mod.rs | 62 use crate::ec::EcKey; 892 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send, in set_tmp_ecdh_callback() 2420 F: Fn(&mut SslRef, bool, u32) -> Result<EcKey<Params>, ErrorStack> + 'static + Sync + Send, in fmt()
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/ |
H A D | mod.rs | 947 use crate::ec::EcKey; in tmp_ecdh_callback() 955 EcKey::from_curve_name(Nid::X9_62_PRIME256V1) in tmp_ecdh_callback() 997 use crate::ec::EcKey; in tmp_ecdh_callback_ssl() 1006 EcKey::from_curve_name(Nid::X9_62_PRIME256V1) in tmp_ecdh_callback_ssl()
|
Completed in 17 milliseconds