summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/hashed_reader.rs
diff options
context:
space:
mode:
authorIgor Matuszewski <igor@sequoia-pgp.org>2020-06-15 02:52:31 +0200
committerIgor Matuszewski <igor@sequoia-pgp.org>2020-08-13 15:19:58 +0200
commitfb5fe6b01c0cc200a9264a7085d0714fb06ef0a1 (patch)
tree84f577298af40f6347b8047198df43c3e368b87d /openpgp/src/parse/hashed_reader.rs
parentd673821c1467a0ddc9ff3e1fa755ccb718e36125 (diff)
openpgp: Adjust for SymmetricAlgorithm support diff. across backends
Diffstat (limited to 'openpgp/src/parse/hashed_reader.rs')
-rw-r--r--openpgp/src/parse/hashed_reader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/hashed_reader.rs b/openpgp/src/parse/hashed_reader.rs
index 0a26a617..e578293f 100644
--- a/openpgp/src/parse/hashed_reader.rs
+++ b/openpgp/src/parse/hashed_reader.rs
@@ -321,7 +321,7 @@ mod test {
"5bea68c8c696bbed95e152d61c446ad0e05bf68f7df39cbfeae568bee6f6691c840fb1d5dd2599737b08dbb33eed344b"),
(HashAlgorithm::SHA512,
"5fa032487774082af5cc833c2db5f943e31cc75cd2bfaa7d9bbd0ccabf5403b6dbcb484254727a524588f20e9ef336d8ce8533332c5ac1b9d50af3003a0da8d8"),
- ].iter().cloned().collect(),
+ ].iter().filter(|(hash, _)| hash.is_supported()).cloned().collect(),
},
];