Home
last modified time | relevance | path

Searched defs:SecretDocument (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/pkcs8/src/
Dencrypted_private_key_info.rs55 pub fn decrypt(&self, password: impl AsRef<[u8]>) -> Result<SecretDocument> { in decrypt()
70 ) -> Result<SecretDocument> { in encrypt()
89 ) -> Result<SecretDocument> { in encrypt_with()
144 impl TryFrom<EncryptedPrivateKeyInfo<'_>> for SecretDocument { implementation
147 fn try_from(encrypted_private_key: EncryptedPrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()
154 impl TryFrom<&EncryptedPrivateKeyInfo<'_>> for SecretDocument { implementation
157 fn try_from(encrypted_private_key: &EncryptedPrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()
Dprivate_key_info.rs142 ) -> Result<SecretDocument> { in encrypt()
155 ) -> Result<SecretDocument> { in encrypt_with_params()
247 impl TryFrom<PrivateKeyInfo<'_>> for SecretDocument { implementation
250 fn try_from(private_key: PrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()
257 impl TryFrom<&PrivateKeyInfo<'_>> for SecretDocument { implementation
260 fn try_from(private_key: &PrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()
Dtraits.rs95 fn to_pkcs8_der(&self) -> Result<SecretDocument>; in to_pkcs8_der()
105 ) -> Result<SecretDocument> { in to_pkcs8_encrypted_der()
/external/rust/crates/der/src/
Ddocument.rs49 pub fn into_secret(self) -> SecretDocument { in into_secret()
210 pub struct SecretDocument(Document); struct
213 impl SecretDocument { impl
291 impl Debug for SecretDocument { implementation
298 impl Drop for SecretDocument { implementation
305 impl From<Document> for SecretDocument { implementation
306 fn from(doc: Document) -> SecretDocument { in from()
312 impl TryFrom<&[u8]> for SecretDocument { implementation
321 impl TryFrom<Vec<u8>> for SecretDocument { implementation
330 impl ZeroizeOnDrop for SecretDocument {} implementation
/external/rust/crates/pkcs1/src/
Dprivate_key.rs172 impl TryFrom<RsaPrivateKey<'_>> for SecretDocument { implementation
175 fn try_from(private_key: RsaPrivateKey<'_>) -> Result<SecretDocument> { in try_from()
182 impl TryFrom<&RsaPrivateKey<'_>> for SecretDocument { implementation
185 fn try_from(private_key: &RsaPrivateKey<'_>) -> Result<SecretDocument> { in try_from()
Dtraits.rs113 fn to_pkcs1_der(&self) -> Result<SecretDocument>; in to_pkcs1_der()
196 fn to_pkcs1_der(&self) -> Result<SecretDocument> { in to_pkcs1_der()
/external/rust/crates/sec1/src/
Dtraits.rs69 fn to_sec1_der(&self) -> Result<SecretDocument>; in to_sec1_der()
122 fn to_sec1_der(&self) -> Result<SecretDocument> { in to_sec1_der()
Dprivate_key.rs142 impl TryFrom<EcPrivateKey<'_>> for SecretDocument { implementation
152 impl TryFrom<&EcPrivateKey<'_>> for SecretDocument { implementation
/external/rust/crates/sec1/tests/
Dtraits.rs40 fn to_sec1_der(&self) -> Result<SecretDocument> { in to_sec1_der()
/external/rust/crates/pkcs1/tests/
Dtraits.rs40 fn to_pkcs1_der(&self) -> Result<SecretDocument> { in to_pkcs1_der()
/external/rust/crates/pkcs8/tests/
Dtraits.rs40 fn to_pkcs8_der(&self) -> Result<SecretDocument> { in to_pkcs8_der()