summaryrefslogtreecommitdiffstats
path: root/openpgp
AgeCommit message (Collapse)Author
2020-04-02openpgp: Rename PublicKeyAlgorithm::can_encrypt to for_encryption.Justus Winter
- Fixes #463.
2020-04-02openpgp: Drop Keygrip::from_hex in favor of FromStr.Justus Winter
- See #462.
2020-04-02openpgp: Drop Fingerprint::from_hex in favor of FromStr.Justus Winter
- See #462.
2020-04-02openpgp: Drop KeyID::from_hex in favor of FromStr.Justus Winter
- See #462.
2020-04-01openpgp: New rountrip test for equality on Packet.Justus Winter
2020-04-01openpgp: New roundtrip test for Packet.Justus Winter
2020-04-01openpgp: Implement Arbitrary for some Key<_, _>.Justus Winter
2020-04-01openpgp: Rename.Justus Winter
2020-04-01openpgp: Implement Arbitrary for Signature.Justus Winter
2020-04-01openpgp: Implement Arbitrary for CompressedData.Justus Winter
2020-04-01openpgp: Implement Arbitrary for Packet.Justus Winter
2020-04-01openpgp: Fix Subpacket's debug formatting.Justus Winter
- Only print the raw length bytes if there are some.
2020-04-01openpgp: Make Fingerprint parsing in subpackets stricter.Justus Winter
- If the version is not 4, return Fingerprint::Invalid even if it consists of 20 octets.
2020-04-01openpgp: Avoid underflow when parsing SKESK5 packets.Justus Winter
2020-04-01openpgp: Fix subpacket boundary check.Justus Winter
2020-04-01openpgp: Fix worst-case estimate of compressed data size.Justus Winter
2020-04-01openpgp: Fix RevocationKey::arbitrary.Justus Winter
2020-03-31openpgp: Implement Preferences for ValidCert.Neal H. Walfield
- Preferences should be implemented for ValidComponentAmalgamation and ValidCert, not ValidComponentAmalgamation and ValidKeyAmalgamation. - Adjust the Preferences trait since ValidCert doesn't implement ValidAmalgamation.
2020-03-31openpgp: Add a direct_key_signature method for Cert and ValidCert.Neal H. Walfield
2020-03-31openpgp: Use a more accurate lifetime.Neal H. Walfield
2020-03-31openpgp: Import Result instead of using an absolute path.Neal H. Walfield
- Don't use `crate::Result` directly. Import it and then use `Result`.
2020-03-31openpgp: Implement Arbitrary for RevocationKey.Justus Winter
2020-03-31openpgp: Implement Arbitrary for Fingerprint.Justus Winter
2020-03-31openpgp: Implement Arbitrary for packet::Common.Justus Winter
2020-03-31openpgp: Implement Arbitrary for the bit field types.Justus Winter
2020-03-31openpgp: Implement Arbitrary for OnePassSig, PKESK.Justus Winter
2020-03-31openpgp: Fix KeyServerPreferences::{PartialEq, Hash}.Justus Winter
- Also compare and hash unknown bits.
2020-03-31openpgp: Clarify PartialEq for bit field types.Justus Winter
2020-03-31openpgp: Fix KeyServerPreferences::no_modify.Justus Winter
2020-03-31openpgp: Add a replacement note to destructures_to!Igor Matuszewski
2020-03-31openpgp: Remove explicit extern cratesIgor Matuszewski
2020-03-31openpgp: Simplify hash context constructionIgor Matuszewski
2020-03-31openpgp: Improve documentation of mod parse.Justus Winter
- Avoid confusion with OpenPGP messages by calling a serialized packet sequence a stream. - Typo.
2020-03-31openpgp: Improve summary line of modules and types.Justus Winter
- Avoid repeating the type name. - Avoid self referential, trivial descriptions. - Avoid the terms OpenPGP and Sequoia. - Fix mistakes from the Message -> PacketPile rework.
2020-03-31openpgp: Move definition of enum Packet.Justus Winter
2020-03-31openpgp: Move definition of struct Message.Justus Winter
2020-03-31openpgp: Move definition of struct Fingerprint.Justus Winter
2020-03-31openpgp: Move definition of struct KeyID.Justus Winter
2020-03-31openpgp: Move definition of struct PacketPile.Justus Winter
- Implement Default for PacketPile, add internal accessor for the top-level.
2020-03-30Allow unused parens on generated codeIgor Matuszewski
Since around Rust 1.40 the unused parens lint is more aggressive. Since all of these warnings are from generated code (effectively false positives), let's just silence the warnings.
2020-03-30openpgp: Add test for PacketPileParser::next.Justus Winter
2020-03-30openpgp: Express Packet::kind more concisely.Justus Winter
2020-03-30openpgp: New doctest for crypto::mem::{Protected,Encrypted}.Justus Winter
2020-03-30openpgp: New doctest for crypto::hash::Context.Justus Winter
2020-03-28openpgp: Fix PacketParser::drop_eof to use O(1) memory.Neal H. Walfield
- The default implementation of drop_eof uses O(1) memory; the specialized version uses O(n). - Prefer the default implementation.
2020-03-28openpgp: Don't unnecessarily override default implementations.Neal H. Walfield
- The `BufferedReader` trait provides default implementations for many methods. Don't override those that aren't normally specialized.
2020-03-28openpgp: Fix determining whether content was read.Neal H. Walfield
- Content is read if `amount > 0`, not if `data.len() > 0`. - Because `BufferedReader::data` can return more than the amount requested, we might mistakenly set `content_was_read`.
2020-03-28openpgp: Only hash was is actually consumed.Neal H. Walfield
- `BufferedReader::data`, etc. may return more data than was requested. Only hash what is being consumed.
2020-03-27Fix merging UserIDs with other revocationsJakub Onderka
2020-03-27openpgp: Align wording of context with Error::NoBindingSignature.Justus Winter