summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/botan/symmetric.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/crypto/backend/botan/symmetric.rs')
-rw-r--r--openpgp/src/crypto/backend/botan/symmetric.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/openpgp/src/crypto/backend/botan/symmetric.rs b/openpgp/src/crypto/backend/botan/symmetric.rs
index 759d3f4f..729f7196 100644
--- a/openpgp/src/crypto/backend/botan/symmetric.rs
+++ b/openpgp/src/crypto/backend/botan/symmetric.rs
@@ -49,23 +49,7 @@ impl Mode for Cfb {
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 {
TripleDES | IDEA | CAST5 | Blowfish |