Searched refs:private_key_from_pem (Results 1 – 11 of 11) sorted by relevance
304 let pkey = PKey::private_key_from_pem(pkey).unwrap(); in encrypt_decrypt_test()330 let pkey = PKey::private_key_from_pem(pkey).unwrap(); in sign_verify_test_detached()374 let pkey = PKey::private_key_from_pem(pkey).unwrap(); in sign_verify_test_normal()413 let pkey = PKey::private_key_from_pem(pkey).unwrap(); in signers()
494 let private_key = Rsa::private_key_from_pem(key).unwrap(); in rsa_encrypt_decrypt()519 let private_key = Rsa::private_key_from_pem(key).unwrap(); in rsa_encrypt_decrypt_with_sha256()550 let private_key = Rsa::private_key_from_pem(key).unwrap(); in rsa_encrypt_decrypt_oaep_label()
676 let private_key = Rsa::private_key_from_pem(key).unwrap(); in rsa_sign()691 let private_key = Rsa::private_key_from_pem(key).unwrap(); in rsa_verify_ok()703 let private_key = Rsa::private_key_from_pem(key).unwrap(); in rsa_verify_invalid()864 let private_key = Rsa::private_key_from_pem(key).unwrap(); in rsa_sign_verify()
550 private_key_from_pem! {553 private_key_from_pem,728 let private_key = Rsa::private_key_from_pem(pkey).unwrap(); in test_public_encrypt_private_decrypt_with_padding()759 let k1 = super::Rsa::private_key_from_pem(&k0pkey).unwrap(); in test_public_encrypt()
162 let private_key = PKey::private_key_from_pem(private_pem).unwrap(); in public_encrypt_private_decrypt()
617 private_key_from_pem! {620 private_key_from_pem,928 PKey::private_key_from_pem(key).unwrap(); in test_private_key_from_pem()952 let key = PKey::private_key_from_pem(key).unwrap(); in test_pem()
616 let rsa = Rsa::private_key_from_pem(key).unwrap(); in rsa()640 let rsa = Rsa::private_key_from_pem(key).unwrap(); in rsa_oaep()
1 macro_rules! private_key_from_pem { macro
926 private_key_from_pem! {931 private_key_from_pem,
665 let private_key = PKey::private_key_from_pem(private_pem).unwrap(); in seal_open()
756 let key = PKey::private_key_from_pem(KEY).unwrap(); in test_mozilla_server()