summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/one_pass_sig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/one_pass_sig.rs')
-rw-r--r--openpgp/src/packet/one_pass_sig.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/openpgp/src/packet/one_pass_sig.rs b/openpgp/src/packet/one_pass_sig.rs
index 14bad636..19242e40 100644
--- a/openpgp/src/packet/one_pass_sig.rs
+++ b/openpgp/src/packet/one_pass_sig.rs
@@ -19,6 +19,9 @@ use crate::HashAlgorithm;
use crate::PublicKeyAlgorithm;
use crate::SignatureType;
+mod v6;
+pub use v6::OnePassSig6;
+
/// Holds a one-pass signature packet.
///
/// See [Section 5.4 of RFC 4880] for details.
@@ -172,7 +175,11 @@ impl<'a> std::convert::TryFrom<&'a Signature> for OnePassSig3 {
#[cfg(test)]
impl Arbitrary for super::OnePassSig {
fn arbitrary(g: &mut Gen) -> Self {
- OnePassSig3::arbitrary(g).into()
+ if Arbitrary::arbitrary(g) {
+ OnePassSig3::arbitrary(g).into()
+ } else {
+ OnePassSig6::arbitrary(g).into()
+ }
}
}