summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/cng.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/crypto/backend/cng.rs')
-rw-r--r--openpgp/src/crypto/backend/cng.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/openpgp/src/crypto/backend/cng.rs b/openpgp/src/crypto/backend/cng.rs
index 8bf01b02..15c418a2 100644
--- a/openpgp/src/crypto/backend/cng.rs
+++ b/openpgp/src/crypto/backend/cng.rs
@@ -46,9 +46,10 @@ impl AEADAlgorithm {
pub(crate) fn is_supported_by_backend(&self) -> bool {
use self::AEADAlgorithm::*;
match &self {
- EAX
- => true,
- OCB | Private(_) | Unknown(_)
+ EAX => true,
+ OCB => false,
+ GCM => false,
+ Private(_) | Unknown(_)
=> false,
}
}