summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
AgeCommit message (Collapse)Author
2020-12-08openpgp: Add assert_send_and_sync! for more types.Azul
- All types that are `Send` and `Sync` are checked now. - Fixes #627.
2020-12-08openpgp: Use parens for assert_send_and_sync!.Azul
2020-12-08openpgp: Require Policies to be Send and Sync.Azul
- This ensures that all types with Policies (`Valid*`) are `Send` and `Sync`.
2020-12-08openpgp: Allow generic types in assert_send_and_sync!.Azul
- Use generics and the anonmymous lifetime in `assert_send_and_sync!`. - See 627.
2020-12-08openpgp: Ensure public types are Send and Sync.Azul
- See #627.
2020-12-07openpgp: Drop hash::Context in favor of a pub trait hash::Digest.Justus Winter
2020-11-12openpgp: Make crypto::Hash::digest fallible.Justus Winter
2020-11-06openpgp: Use non_exhaustive attribute.Nora Widdecke
- Fixes #563 - With an MSRV >= 1.40.0, we can use #[non_exhaustive], as mentioned in #406. - This is also a clippy lint: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
2020-10-22openpgp: Introduce symbol for the magic value.Justus Winter
2020-10-20openpgp: Pop the armor filter off the stack after parsing.Justus Winter
2020-10-20openpgp: Avoid now unnecessary wrapping.Justus Winter
2020-10-20openpgp: Harmonize the BufferedReader type.Justus Winter
2020-10-20openpgp: Return the reader in PacketParserEOF.Justus Winter
2020-10-19openpgp: Avoid buffering.Justus Winter
2020-10-14Replace most 'extern crate' directives with 'use'.Justus Winter
- See #480.
2020-10-07openpgp: Align MPI parsing functions with trait Parse.Justus Winter
- Change mpi::*::parse to take a Reader instead of a AsRef<u8>. The former is a more general interface.
2020-10-06openpgp: Move checksum processing to SecretKeyMaterial::_parse.Justus Winter
2020-10-06openpgp: Implement two-octet checksums over secret key material.Justus Winter
- Also, rename methods to be more explicit.
2020-10-02openpgp: Make signature verification use a mutable self reference.Justus Winter
- This will allow us to mark subpackets as authenticated by the verification operation.
2020-10-02openpgp: Avoid eagerly referencing signature in errors.Justus Winter
- When verifying signatures, we need to consider all possible issuers. When iterating over the potential signing keys, avoid keeping a reference to the signature in the error that would prevent mutably borrowing the signature in the next iteration. - To that end, add and use a variant of VerificationError that has no reference to the signature. Only after trying all keys, attach a reference to the signature to the error.
2020-10-02openpgp: Avoid shadowing variable.Justus Winter
- At the very least, this reduces possible confusion.
2020-09-21openpgp: Refuse to parse ECDH public keys with unknown magic value.Justus Winter
- ECDH public fields have a mechanism for future extensions. Currently, this field has to be set to 1. Enforce this at parse time. - Fixes #561.
2020-09-17openpgp: Improve parsing examples to demonstrate body handling.Justus Winter
- Demonstrate dropping, buffering of all bodies, buffering of individual bodies, and streaming. - Fixes #540.
2020-08-17openpgp: Move crypto::sexp to the ipc crate.Justus Winter
- This is only used to communicate with the GnuPG agent, so it should not be in the openpgp crate.
2020-08-13openpgp: Adjust for SymmetricAlgorithm support diff. across backendsIgor Matuszewski
2020-08-12openpgp: Change SubpacketAreas::intended_recipients to return an iterNeal H. Walfield
- Change `SubpacketAreas::intended_recipients` to return an Iterator instead of a vector.
2020-08-12openpgp: Change accessors to return all issuers.Neal H. Walfield
- Unlike the `Signature Creation Time` subpacket, there are legitimate reasons to have multiple `Issuer` subpackets and `Issuer Fingerprint` subpackets. - Rename `SubpacketAreas::issuer` to `SubpacketAreas::issuers` and return all `Issuer` subpackets. - Likewise, Rename `SubpacketAreas::issuer_fingerprint` to `SubpacketAreas::issuer_fingerprints` and return all `Issuer Fingerprint` subpackets. - Change `sq` to list all issuers. Deduplicate first, however.
2020-08-11openpgp: Move hash_buffered_reader, drop hash_reader.Justus Winter
- Previously, we provided hash_reader to downstream users to verify detached signatures. Nowadays, we have the DetachedVerifier that does the same in a much more convenient way. Therefore, we drop hash_reader, and move its non-public sibling hash_buffered_reader to a more appropriate location.
2020-08-10openpgp: Fix creation of text signatures.Justus Winter
- Hash normalized line endings when creating text signatures. - Fixes #530.
2020-08-10openpgp: Correctly handle text signatures when verifying.Justus Winter
- Text signatures require normalizing the line endings to "\r\n" before the text is hashed. This change implements this for the consumption of signatures. The next commit will handle the production of such signatures. - See #530.
2020-07-27openpgp: Document parse::Dearmor.Justus Winter
- Fixes #471.
2020-07-24openpgp: Improve PacketParserResult::as_ref, as_mut, and map.Justus Winter
- Previously, these method withheld information in the EOF case (and in case of `map` this loss is irrecoverable). Fix this by returning a Result instead.
2020-07-24openpgp: Clarify what happens when verifying detached signatures.Justus Winter
- See #471.
2020-07-24openpgp: Improve documentation of enum MessageLayer.Justus Winter
- See #471.
2020-07-21openpgp: Remove PacketParserResult::is_none.Justus Winter
- There is no variant called `None`, so having this predicate seems wrong. - See #489.
2020-06-30openpgp: Improve message structure documentation.Justus Winter
- See #471.
2020-06-30openpgp: Explain corner case of missing issuer hints.Justus Winter
- Fixes #239.
2020-06-30openpgp: Simplify.Justus Winter
2020-06-30openpgp: Improve panic message.Justus Winter
2020-06-30openpgp: New test.Justus Winter
- 411de0d1647bf205c18b096e3fbda7fd0be7e93c added basic support for old-style PGP signed messages. - Add a test for such legacy signed messages and some corner cases.
2020-06-25openpgp: Improve reporting of verification errors.Justus Winter
2020-06-25openpgp: Improve documentation for verification results.Justus Winter
- See #471.
2020-06-24openpgp: Add examples for the builders.Justus Winter
- See #471.
2020-06-24openpgp: Make import visible in doctest.Justus Winter
2020-06-24openpgp: Improve documentation.Justus Winter
- Link to builders, update description of signature verifications. - See #471.
2020-06-24openpgp: Improve documentation for Verifier::message_processed.Justus Winter
- Likewise Decryptor::message_processed. - See #471.
2020-06-24openpgp: Simplify tests.Justus Winter
2020-06-08openpgp: Add example.Justus Winter
- See #471.
2020-06-08openpgp: Make the default for Dearmor explicit.Justus Winter
2020-05-28openpgp: Improve the PacketPileParser documentation.Justus Winter
- See #471.