summaryrefslogtreecommitdiffstats
path: root/openpgp
AgeCommit message (Collapse)Author
2020-11-25openpgp: Add test.Justus Winter
- Fixes #613.
2020-11-24openpgp: Accept any number of (unicode) dashes in armor framing.Justus Winter
- Fixes #610.
2020-11-24openpgp: Improve tests.Justus Winter
2020-11-24openpgp: Rework footer detection.Justus Winter
2020-11-24openpgp: Return header length in armor::Kind::detect.Justus Winter
2020-11-24openpgp: Assert that Error is Send + Sync.Justus Winter
- See #615.
2020-11-24openpgp: Assert that KeyHandle is Send + Sync.Justus Winter
- See #615.
2020-11-24openpgp: Move the compound hashing functions to SignatureFields.Justus Winter
2020-11-24openpgp: Align hashing of compound objects with primitive objects.Justus Winter
2020-11-24openpgp: Handle truncated armor prefixes.Justus Winter
- Fixes #618.
2020-11-24openpgp: Drop comment.Justus Winter
- We generate Ed25519 keys, that requires the `rand` feature.
2020-11-24openpgp: seal traits in cert::amalgamationAzul
- Seal `ValidAmalgamation`, `ValidateAmalgamation` and `key::PrimaryKey` - Sealing traits so they cannot be implemented outside the openpgp crate. This way we can extend the traits without breaking the API compatibility. Every implementation of a sealed trait needs to also implement the `seal::Sealed` marker trait. - Implementing `seal::Sealed` for `ValidKeyAmalgamation<'a, P, R, R2>` also implements it for - `ValidPrimaryKeyAmalgamation<'a, P>` - `ValidSubordinateKeyAmalgamation<'a, P>` - `ValidErasedKeyAmalgamation<'a, P>` Therefore these can implement `ValidateAmalgamation` and `key::PrimaryKey` without explicitly implementing `seal::Sealed` - See #538.
2020-11-24openpgp: seal Aead trait.Azul
- Seal the Aead trait so it cannot be implemented outside the openpgp crate. - This way we can extend the trait without breaking the API compatibility. - See #538.
2020-11-24openpgp: seal KeyRole and KeyPartsAzul
- Seal the `KeyRole` and `KeyParts` traits so they cannot be implemented outside the openpgp crate. - This way we can extend the trait without breaking the API compatibility. - See #538.
2020-11-24openpgp: Avoid direct dependency on generic-array.Justus Winter
2020-11-20openpgp: Fix PartialEq, Hash for key::Encrypted.Justus Winter
- Fixes #617.
2020-11-20openpgp: Dump armored packets in tests.Justus Winter
- When building tests, change the debug representation to ASCII Armored blobs. This way, test vectors can be extracted from build logs.
2020-11-18openpgp: Add mutation tests for key packets.Justus Winter
2020-11-18openpgp: Return iterator over bad signatures.Justus Winter
- This allows us to store verification errors with the signatures. - See #619.
2020-11-17openpgp: minor: fix typos.Azul
2020-11-13openpgp: Add the vectors from The first collision for full SHA-1.Justus Winter
2020-11-12openpgp: Add test vector from SHA-1 is a Shambles.Justus Winter
2020-11-12openpgp: Mitigate collision attacks on SHA-1.Justus Winter
- Use a collision detecting implementation of SHA-1. When a collision attack is detected, the algorithm employs a mitigation, changing the hash function to discriminate the colliding preimage.
2020-11-12openpgp: Improve tracing.Justus Winter
2020-11-12openpgp: Make crypto::Hash::digest fallible.Justus Winter
2020-11-10openpgp: Use Padme as default padding policy.Wiktor Kwapisiewicz
2020-11-10openpgp: Make stream::Padder use the builder pattern.Wiktor Kwapisiewicz
- Split Padder::new() into new and build. - Adjust code in dependent projects (sop and sq). - Fixes #600.
2020-11-09buffered_reader: Move dump to buffered_reader.Nora Widdecke
- Use the Cookie's debug output to allow for generic Cookies.
2020-11-09buffered-reader: Add Debug trait bound to Cookie.Nora Widdecke
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-11-01openpgp: Update documentation w.r.t packets added to hashed area.Wiktor Kwapisiewicz
- Updates documentation to match the implementation changes introduced in commit 7e9561e9. - Fixes #583.
2020-10-27openpgp: Fix wording on functions returning iterators.Wiktor Kwapisiewicz
- Functions that had their return values changed from a single item to impl Iterators had obsolete documentation. Fix this. - Closes #593.
2020-10-26openpgp: Refactor some matches for legibilityIgor Matuszewski
2020-10-26openpgp: Use std::matches! instead of custom destructures_to macroIgor Matuszewski
2020-10-26openpgp: seal the Preferences traitAzul
[Seal] the `cert::Preferences` trait so it cannot be implemented for types outside this crate. Therefore it can be extended in a non-breaking way. Attempts to implement the trait will not compile. refers: #538 [seal]: https://rust-lang.github.io/api-guidelines/future-proofing.html#sealed-traits-protect-against-downstream-implementations-c-sealed
2020-10-22openpgp: Introduce symbol for the magic value.Justus Winter
2020-10-22openpgp: Improve documentation on how to encrypt for multiple certs.Justus Winter
2020-10-22openpgp: Select only supported encryption-capable keys.Justus Winter
2020-10-21openpgp: Don't mention method that is no longer public.Justus Winter
2020-10-21openpgp: Fix references.Justus Winter
2020-10-21openpgp: Add KeyAmalgamationIter::supported.Justus Winter
- Changes the iterator to only return keys supported by Sequoia and the underlying cryptographic library. - Also add ValidKeyAmalgamationIter::supported. - Fixes #580.
2020-10-20openpgp: Support reading certificates from multiple armor blocks.Justus Winter
- Fixes #256.
2020-10-20openpgp: Pop the armor filter off the stack after parsing.Justus Winter
2020-10-20openpgp: Improve tracing.Justus Winter
2020-10-20openpgp: Typo.Justus Winter
2020-10-20openpgp: Fix indentation.Justus Winter
- Correctly handle negative indentation levels.
2020-10-20openpgp: Avoid now unnecessary wrapping.Justus Winter
2020-10-20openpgp: Implement BufferedReader<Cookie> for armor::Reader.Justus Winter
- Fixes #441.
2020-10-20openpgp: Harmonize the BufferedReader type.Justus Winter
2020-10-20openpgp: Return the reader in PacketParserEOF.Justus Winter