summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/rust/symmetric.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/crypto/backend/rust/symmetric.rs')
-rw-r--r--openpgp/src/crypto/backend/rust/symmetric.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/openpgp/src/crypto/backend/rust/symmetric.rs b/openpgp/src/crypto/backend/rust/symmetric.rs
index c419dbc3..160cdb4f 100644
--- a/openpgp/src/crypto/backend/rust/symmetric.rs
+++ b/openpgp/src/crypto/backend/rust/symmetric.rs
@@ -79,23 +79,7 @@ where
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 SymmetricAlgorithm::*;
match self {
IDEA => true,