diff options
Diffstat (limited to 'openpgp/src/crypto/backend/cng/symmetric.rs')
-rw-r--r-- | openpgp/src/crypto/backend/cng/symmetric.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/openpgp/src/crypto/backend/cng/symmetric.rs b/openpgp/src/crypto/backend/cng/symmetric.rs index 481a5404..baa92191 100644 --- a/openpgp/src/crypto/backend/cng/symmetric.rs +++ b/openpgp/src/crypto/backend/cng/symmetric.rs @@ -110,23 +110,7 @@ impl TryFrom<SymmetricAlgorithm> for (cng::SymmetricAlgorithmId, usize) { impl SymmetricAlgorithm { /// Returns whether this algorithm is supported by the crypto backend. - /// - /// All backends support all the AES variants. - /// - /// # Examples - /// - /// ```rust - /// use sequoia_openpgp as openpgp; - /// use openpgp::types::SymmetricAlgorithm; - /// - /// assert!(SymmetricAlgorithm::AES256.is_supported()); - /// assert!(SymmetricAlgorithm::TripleDES.is_supported()); - /// - /// assert!(!SymmetricAlgorithm::IDEA.is_supported()); - /// assert!(!SymmetricAlgorithm::Unencrypted.is_supported()); - /// assert!(!SymmetricAlgorithm::Private(101).is_supported()); - /// ``` - pub fn is_supported(&self) -> bool { + pub(crate) fn is_supported_by_backend(&self) -> bool { use self::SymmetricAlgorithm::*; match self { AES128 | AES192 | AES256 | TripleDES => true, |