diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-03-31 15:45:49 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-03-31 18:26:02 +0200 |
commit | fab2a27aaf99a6e05057e8aaea6c5d0a949dca92 (patch) | |
tree | b4aae1201adf33542d4c34448be86c14323554a1 /openpgp/src/packet/pkesk.rs | |
parent | e86bcf0d1055a98949bfbb2c73d6d538845a0401 (diff) |
openpgp: Implement Arbitrary for OnePassSig, PKESK.
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r-- | openpgp/src/packet/pkesk.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs index 996b5a7a..b08dc8e2 100644 --- a/openpgp/src/packet/pkesk.rs +++ b/openpgp/src/packet/pkesk.rs @@ -171,6 +171,12 @@ impl From<PKESK3> for Packet { } } +impl Arbitrary for super::PKESK { + fn arbitrary<G: Gen>(g: &mut G) -> Self { + PKESK3::arbitrary(g).into() + } +} + impl Arbitrary for PKESK3 { fn arbitrary<G: Gen>(g: &mut G) -> Self { let (ciphertext, pk_algo) = loop { |