Lines Matching refs:key_pair
76 let key_pair = signature::RsaKeyPair::from_der(&private_key); in test_signature_rsa_pkcs1_sign() localVariable
78 assert!(key_pair.is_err()); in test_signature_rsa_pkcs1_sign()
81 let key_pair = key_pair.unwrap(); in test_signature_rsa_pkcs1_sign() localVariable
85 let mut actual = vec![0u8; key_pair.public().n().len()]; in test_signature_rsa_pkcs1_sign()
86 key_pair in test_signature_rsa_pkcs1_sign()
113 let key_pair = signature::RsaKeyPair::from_der(&private_key); in test_signature_rsa_pss_sign() localVariable
114 if key_pair.is_err() && result == "Fail-Invalid-Key" { in test_signature_rsa_pss_sign()
117 let key_pair = key_pair.unwrap(); in test_signature_rsa_pss_sign() localVariable
124 let mut actual = vec![0u8; key_pair.public().n().len()]; in test_signature_rsa_pss_sign()
125 key_pair.sign(alg, &rng, &msg, actual.as_mut_slice())?; in test_signature_rsa_pss_sign()
292 let key_pair = signature::RsaKeyPair::from_pkcs8(PRIVATE_KEY).unwrap(); in rsa_test_public_key_coverage() localVariable
296 let spk = key_pair.public_key(); in rsa_test_public_key_coverage()
316 let public_key = key_pair.public(); in rsa_test_public_key_coverage()
330 format!("RsaKeyPair {{ public: {:?} }}", key_pair.public()), in rsa_test_public_key_coverage()
331 format!("{:?}", key_pair) in rsa_test_public_key_coverage()