summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-08-24 10:52:15 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-08-24 11:10:33 +0200
commit3b7c0c6e5a881b74ef7b1ea0f0963a5c5f7bb784 (patch)
treec5dc97bc3ec464adb9f09e7cb5b92717b43bcbd4 /openpgp/src/types
parentd97d53dd681f394a40ee40c071bad53117db313d (diff)
openpgp: Implement Default for AEADAlgorithm.
Diffstat (limited to 'openpgp/src/types')
-rw-r--r--openpgp/src/types/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs
index 35937a6a..147524ff 100644
--- a/openpgp/src/types/mod.rs
+++ b/openpgp/src/types/mod.rs
@@ -1009,6 +1009,12 @@ const AEAD_ALGORITHM_VARIANTS: [AEADAlgorithm; 3] = [
AEADAlgorithm::GCM,
];
+impl Default for AEADAlgorithm {
+ fn default() -> Self {
+ Self::const_default()
+ }
+}
+
impl AEADAlgorithm {
/// Returns whether this algorithm is supported.
///