Lines Matching refs:Dsa
57 pub struct Dsa<T>;
64 impl<T> Clone for Dsa<T> { implementation
65 fn clone(&self) -> Dsa<T> { in clone()
71 type Owned = Dsa<T>;
73 fn to_owned(&self) -> Dsa<T> { in to_owned()
76 Dsa::from_ptr(self.as_ptr()) in to_owned()
186 impl Dsa<Private> { implementation
196 pub fn generate(bits: u32) -> Result<Dsa<Private>, ErrorStack> { in generate()
199 let dsa = Dsa::from_ptr(cvt_p(ffi::DSA_new())?); in generate()
225 ) -> Result<Dsa<Private>, ErrorStack> { in from_private_components()
228 let dsa = Dsa::from_ptr(cvt_p(ffi::DSA_new())?); in from_private_components()
238 impl Dsa<Public> { impl
245 Dsa<Public>,
253 Dsa<Public>,
266 ) -> Result<Dsa<Public>, ErrorStack> { in from_public_components()
269 let dsa = Dsa::from_ptr(cvt_p(ffi::DSA_new())?); in from_public_components()
279 impl<T> fmt::Debug for Dsa<T> { implementation
513 Dsa::generate(1024).unwrap(); in test_generate()
518 let dsa = Dsa::generate(1024).unwrap(); in test_pubkey_generation()
537 let dsa = Dsa::from_private_components(p, q, g, priv_key, pub_key).unwrap(); in test_priv_key_from_parts()
552 let dsa = Dsa::from_public_components(p, q, g, pub_key).unwrap(); in test_pub_key_from_parts()
563 let dsa_ref = Dsa::generate(1024).unwrap(); in test_signature()
572 let priv_key = Dsa::from_private_components( in test_signature()
582 let pub_key = Dsa::from_public_components( in test_signature()
606 let dsa_ref = Dsa::generate(1024).unwrap(); in test_signature_der()
632 let key = Dsa::generate(2048).unwrap(); in clone()