diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-06-08 14:46:48 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-06-11 17:12:14 +0200 |
commit | 3bcc629bea7b926cb1eaf3fc97b18399779de3a5 (patch) | |
tree | 4a5eff2cc7bbd87c02e80772be9a6b9b75e4e507 /openpgp/src/parse | |
parent | 115cd9fdd5dbf67ce497aa9bea5d3b1022f4cf15 (diff) |
openpgp: Convert signature s-expressions to mpis::Signature.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/sexp/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/parse/sexp/mod.rs b/openpgp/src/parse/sexp/mod.rs index b9823eef..30df41f0 100644 --- a/openpgp/src/parse/sexp/mod.rs +++ b/openpgp/src/parse/sexp/mod.rs @@ -127,6 +127,12 @@ mod tests { #[test] fn signatures() { assert!(Sexp::from_bytes( + ::tests::file("sexp/dsa-signature.sexp")).is_ok()); + assert!(Sexp::from_bytes( + ::tests::file("sexp/ecdsa-signature.sexp")).is_ok()); + assert!(Sexp::from_bytes( + ::tests::file("sexp/eddsa-signature.sexp")).is_ok()); + assert!(Sexp::from_bytes( ::tests::file("sexp/rsa-signature.sexp")).is_ok()); } } |