summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/nettle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/crypto/backend/nettle.rs')
-rw-r--r--openpgp/src/crypto/backend/nettle.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/crypto/backend/nettle.rs b/openpgp/src/crypto/backend/nettle.rs
index 1cd601c2..b07d8da7 100644
--- a/openpgp/src/crypto/backend/nettle.rs
+++ b/openpgp/src/crypto/backend/nettle.rs
@@ -62,9 +62,11 @@ impl AEADAlgorithm {
match &self {
EAX
=> true,
+ OCB
+ => nettle::aead::OCB_IS_SUPPORTED,
GCM
=> true,
- OCB | Private(_) | Unknown(_)
+ Private(_) | Unknown(_)
=> false,
}
}