Searched refs:private_key_from_pem (Results 1 – 12 of 12) 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()
735 let rsa = Rsa::private_key_from_pem(key).unwrap(); in rsa()759 let rsa = Rsa::private_key_from_pem(key).unwrap(); in rsa_oaep()786 let rsa = Rsa::private_key_from_pem(key).unwrap(); in rsa_sign()807 let rsa = Rsa::private_key_from_pem(key).unwrap(); in rsa_sign_pss()
623 private_key_from_pem! {626 private_key_from_pem,943 PKey::private_key_from_pem(key).unwrap(); in test_private_key_from_pem()967 let key = PKey::private_key_from_pem(key).unwrap(); in test_pem()
162 let private_key = PKey::private_key_from_pem(private_pem).unwrap(); in public_encrypt_private_decrypt()
1 macro_rules! private_key_from_pem { macro
378 let key = PKey::private_key_from_pem(key_bytes).expect("failed to load key.pem"); in cms_sign_verify_generic_helper()
981 private_key_from_pem! {986 private_key_from_pem,
733 let private_key = PKey::private_key_from_pem(private_pem).unwrap(); in seal_open()
830 let key = PKey::private_key_from_pem(KEY).unwrap(); in test_mozilla_server()1523 let pkey = PKey::private_key_from_pem(KEY).unwrap(); in set_ssl_certificate_key_related_api()