Home
last modified time | relevance | path

Searched refs:to_pem (Results 1 – 21 of 21) sorted by relevance

/external/rust/crates/pkcs8/tests/
Dprivate_key.rs160 assert_eq!(EC_P256_PEM_EXAMPLE, pk.to_pem(LineEnding::LF).unwrap()); in encode_ec_p256_pem()
167 assert_eq!(ED25519_PEM_V1_EXAMPLE, pk.to_pem(LineEnding::LF).unwrap()); in encode_ed25519_pem()
174 assert_eq!(RSA_2048_PEM_EXAMPLE, pk.to_pem(LineEnding::LF).unwrap()); in encode_rsa_2048_pem()
181 assert_eq!(X25519_PEM_EXAMPLE, pk.to_pem(LineEnding::LF).unwrap()); in encode_x25519_pem()
Dencrypted_private_key.rs216 pk.to_pem(Default::default()).unwrap() in encode_ed25519_encpriv_aes256_pbkdf2_sha256_pem()
/external/rust/crates/spki/tests/
Dspki.rs138 let pk_encoded = pk.to_pem(LineEnding::LF).unwrap(); in encode_ec_p256_pem()
146 let pk_encoded = pk.to_pem(LineEnding::LF).unwrap(); in encode_ed25519_pem()
154 let pk_encoded = pk.to_pem(LineEnding::LF).unwrap(); in encode_rsa_2048_pem()
/external/rust/crates/der/tests/
Dpem.rs63 fn to_pem() { in to_pem() function
65 let pem = spki.to_pem(LineEnding::LF).unwrap(); in to_pem()
/external/rust/crates/der/src/
Ddocument.rs94 pub fn to_pem(&self, label: &'static str, line_ending: pem::LineEnding) -> Result<String> { in to_pem() method
128 let pem = self.to_pem(label, line_ending)?; in write_pem_file()
249 pub fn to_pem( in to_pem() method
254 self.0.to_pem(label, line_ending).map(Zeroizing::new) in to_pem()
287 write_secret_file(path, self.to_pem(label, line_ending)?.as_bytes()) in write_pem_file()
Dencode.rs95 fn to_pem(&self, line_ending: LineEnding) -> Result<String>; in to_pem() method
101 fn to_pem(&self, line_ending: LineEnding) -> Result<String> { in to_pem() method
/external/rust/crates/openssl/src/
Dcms.rs130 to_pem! {
133 to_pem,
294 let encrypted_pem = encrypt.to_pem().expect("failed to create pem from cms"); in cms_encrypt_decrypt()
Dpkcs7.rs168 to_pem! {
173 to_pem,
Drsa.rs254 to_pem! {
270 to_pem! {
Dmacros.rs76 macro_rules! to_pem { macro
Ddh.rs27 to_pem! {
Ddsa.rs85 to_pem! {
Dec.rs688 to_pem! {
Dpkey.rs207 to_pem! {
/external/rust/crates/pkcs8/src/
Dtraits.rs114 Ok(doc.to_pem(PrivateKeyInfo::PEM_LABEL, line_ending)?) in to_pkcs8_pem()
128 Ok(doc.to_pem(EncryptedPrivateKeyInfo::PEM_LABEL, line_ending)?) in to_pkcs8_encrypted_pem()
/external/rust/crates/pkcs1/src/
Dtraits.rs120 Ok(doc.to_pem(RsaPrivateKey::PEM_LABEL, line_ending)?) in to_pkcs1_pem()
151 Ok(doc.to_pem(RsaPublicKey::PEM_LABEL, line_ending)?) in to_pkcs1_pem()
/external/rust/crates/spki/src/
Dtraits.rs73 Ok(doc.to_pem(SubjectPublicKeyInfo::PEM_LABEL, line_ending)?) in to_public_key_pem()
/external/rust/crates/openssl/src/x509/
Dmod.rs587 to_pem! {
592 to_pem,
603 to_pem! {
1347 to_pem! {
1355 to_pem,
1369 to_pem! {
/external/rust/crates/sec1/src/
Dtraits.rs78 Ok(doc.to_pem(EcPrivateKey::PEM_LABEL, line_ending)?) in to_sec1_pem()
/external/rust/beto-rust/nearby/scripts/openssl-patches/
D0001-Apply-Android-changes.patch1132 + to_pem! {
1137 + to_pem,
1148 + to_pem! {
1892 + to_pem! {
1900 + to_pem,
1914 + to_pem! {
/external/rust/crates/openssl/
DCHANGELOG.md210 * Added `EcPointRef::{to_pem, to_dir}` and `EcKeyRef::{public_key_from_pem, public_key_from_der}`.
290 * Added `CmsContentInfoRef::to_pem` and `CmsContentInfo::from_pem`.