Searched defs:SecretDocument (Results 1 – 11 of 11) sorted by relevance
47 pub fn into_secret(self) -> SecretDocument { in into_secret()201 pub struct SecretDocument(Document); struct204 impl SecretDocument { implementation276 impl Debug for SecretDocument { implementation283 impl Drop for SecretDocument { implementation290 impl From<Document> for SecretDocument { implementation291 fn from(doc: Document) -> SecretDocument { in from()297 impl TryFrom<&[u8]> for SecretDocument { implementation306 impl TryFrom<Vec<u8>> for SecretDocument { implementation315 impl ZeroizeOnDrop for SecretDocument {} implementation
56 pub fn decrypt(&self, password: impl AsRef<[u8]>) -> Result<SecretDocument> { in decrypt()70 ) -> Result<SecretDocument> { in encrypt()88 ) -> Result<SecretDocument> { in encrypt_with()145 impl TryFrom<EncryptedPrivateKeyInfo<'_>> for SecretDocument { implementation148 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()154 ) -> Result<SecretDocument> { in encrypt_with_params()254 impl TryFrom<PrivateKeyInfo<'_>> for SecretDocument { implementation257 fn try_from(private_key: PrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()263 impl TryFrom<&PrivateKeyInfo<'_>> for SecretDocument { implementation266 fn try_from(private_key: &PrivateKeyInfo<'_>) -> Result<SecretDocument> { in try_from()
95 fn to_pkcs8_der(&self) -> Result<SecretDocument>; in to_pkcs8_der()104 ) -> Result<SecretDocument> { in to_pkcs8_encrypted_der()
184 impl TryFrom<RsaPrivateKey<'_>> for SecretDocument { implementation187 fn try_from(private_key: RsaPrivateKey<'_>) -> Result<SecretDocument> { in try_from()193 impl TryFrom<&RsaPrivateKey<'_>> for SecretDocument { implementation196 fn try_from(private_key: &RsaPrivateKey<'_>) -> Result<SecretDocument> { in try_from()
107 fn to_pkcs1_der(&self) -> Result<SecretDocument>; in to_pkcs1_der()186 fn to_pkcs1_der(&self) -> Result<SecretDocument> { in to_pkcs1_der()
63 fn to_sec1_der(&self) -> Result<SecretDocument>; in to_sec1_der()113 fn to_sec1_der(&self) -> Result<SecretDocument> { in to_sec1_der()
157 impl TryFrom<EcPrivateKey<'_>> for SecretDocument { implementation166 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()
34 fn to_pkcs8_der(&self) -> Result<SecretDocument> { in to_pkcs8_der()