Searched defs:SecretDocument (Results 1 – 11 of 11) sorted by relevance
55 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 { implementation147 fn try_from(encrypted_private_key: EncryptedPrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()154 impl TryFrom<&EncryptedPrivateKeyInfo<'_>> for SecretDocument { implementation157 fn try_from(encrypted_private_key: &EncryptedPrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()
142 ) -> Result<SecretDocument> { in encrypt()155 ) -> Result<SecretDocument> { in encrypt_with_params()247 impl TryFrom<PrivateKeyInfo<'_>> for SecretDocument { implementation250 fn try_from(private_key: PrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()257 impl TryFrom<&PrivateKeyInfo<'_>> for SecretDocument { implementation260 fn try_from(private_key: &PrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()
95 fn to_pkcs8_der(&self) -> Result<SecretDocument>; in to_pkcs8_der()105 ) -> Result<SecretDocument> { in to_pkcs8_encrypted_der()
49 pub fn into_secret(self) -> SecretDocument { in into_secret()210 pub struct SecretDocument(Document); struct213 impl SecretDocument { impl291 impl Debug for SecretDocument { implementation298 impl Drop for SecretDocument { implementation305 impl From<Document> for SecretDocument { implementation306 fn from(doc: Document) -> SecretDocument { in from()312 impl TryFrom<&[u8]> for SecretDocument { implementation321 impl TryFrom<Vec<u8>> for SecretDocument { implementation330 impl ZeroizeOnDrop for SecretDocument {} implementation
172 impl TryFrom<RsaPrivateKey<'_>> for SecretDocument { implementation175 fn try_from(private_key: RsaPrivateKey<'_>) -> Result<SecretDocument> { in try_from()182 impl TryFrom<&RsaPrivateKey<'_>> for SecretDocument { implementation185 fn try_from(private_key: &RsaPrivateKey<'_>) -> Result<SecretDocument> { in try_from()
113 fn to_pkcs1_der(&self) -> Result<SecretDocument>; in to_pkcs1_der()196 fn to_pkcs1_der(&self) -> Result<SecretDocument> { in to_pkcs1_der()
69 fn to_sec1_der(&self) -> Result<SecretDocument>; in to_sec1_der()122 fn to_sec1_der(&self) -> Result<SecretDocument> { in to_sec1_der()
142 impl TryFrom<EcPrivateKey<'_>> for SecretDocument { implementation152 impl TryFrom<&EcPrivateKey<'_>> for SecretDocument { implementation
40 fn to_sec1_der(&self) -> Result<SecretDocument> { in to_sec1_der()
40 fn to_pkcs1_der(&self) -> Result<SecretDocument> { in to_pkcs1_der()
40 fn to_pkcs8_der(&self) -> Result<SecretDocument> { in to_pkcs8_der()