summaryrefslogtreecommitdiffstats
path: root/openpgp
AgeCommit message (Collapse)Author
2020-04-06openpgp: Make Signer::creation_time polymorphic.Justus Winter
2020-04-06openpgp: Introduce (mandatory, for now) crypto-nettle feature flagIgor Matuszewski
2020-04-03openpgp: Rename ComponentBundleIter to ComponentAmalgamationIter.Neal H. Walfield
- Rename `ComponentBundleIter` to `ComponentAmalgamationIter` and `ValidComponentBundleIter` to `ValidComponentAmalgamationIter`. - Move module from cert::bundle to cert::amalgamation. - Fixes 8ebaf6e4ada1cea0b9e6f6dfee61c22cfdc9748c.
2020-04-03openpgp: Rename cert/amalgamation/iter.rs to keyiter.rsNeal H. Walfield
2020-04-03openpgp: Return impl Iterator instead of a concrete typeNeal H. Walfield
2020-04-03openpgp: Implement From<Cert> for PacketPile.Neal H. Walfield
2020-04-03openpgp: Implement FromIterator<Packet> for PacketPile.Neal H. Walfield
2020-04-03Release 0.16.0.v0.16.0Justus Winter
2020-04-03Pin dependencies to keep our MSRV stable.Justus Winter
- Our previous approach of constraining the version using "< 0.1.10" no longer worked, and resulted in two versions of the crate being selected, one of which exceeded our MSRV. - Same for socket2.
2020-04-03openpgp: Unawkwardify the streaming encryptor.Justus Winter
2020-04-03openpgp: Make LiteralWriter::date polymorphic.Justus Winter
2020-04-03openpgp: Rename.Justus Winter
2020-04-03Change function names to align to Rust naming conventions.Wiktor Kwapisiewicz
- Change `mark_parts_public` to `parts_into_public`, - Change `mark_parts_public_ref` to `parts_as_public`, - Change `mark_parts_secret` to `parts_into_secret`, - Change `mark_parts_secret_ref` to `parts_as_secret`, - Change `mark_parts_unspecified` to `parts_into_unspecified`, - Change `mark_parts_unspecified_ref` to `parts_as_unspecified`, - Fixes #452.
2020-04-03openpgp: Convert `CTB::from_ptag` to `TryFrom<u8>`Wiktor Kwapisiewicz
2020-04-03openpgp: Convert `Message::from_packets` to `TryFrom<Vec<Packet>>`Wiktor Kwapisiewicz
2020-04-03openpgp: Convert `Message::from_packet_pile` to `TryFrom<PacketPile>`Wiktor Kwapisiewicz
2020-04-03openpgp: Convert `Sexp::from_ciphertext` to `TryFrom<&mpis::Ciphertext>`Wiktor Kwapisiewicz
2020-04-03openpgp: Convert `CertParser::from_packet_parser` to `From<PacketParserResult>`Wiktor Kwapisiewicz
2020-04-03openpgp: Convert `PacketPile::from_packet_parser` to ↵Wiktor Kwapisiewicz
`TryFrom<PacketParserResult>`
2020-04-03openpgp: Convert Cert::from_packet_parser into TryFrom<PacketParserResult>Wiktor Kwapisiewicz
2020-04-03openpgp: Unify Message and writer::Stack, hide writers.Justus Winter
- Previously, Message::new returned a writer::Stack, and Message was just an empty struct. Unify the types. This makes sense, because if you have a message, and encrypt it, you get a message. - Make the writer module private. This is an implementation detail.
2020-04-03openpgp: Rename.Justus Winter
2020-04-03openpgp: Keep the error from the most recent binding signature.Neal H. Walfield
- Change ComponentBundle::binding_signature to return the error from the most recent binding signature that wasn't created after `t`, rather than the error from the oldest binding signature. - Imagine we have two binding signatures: the more recent one is not expired, but rejected by the policy, and the older one is expired. The error from the more recent binding signature is probably more relevant.
2020-04-03openpgp: Remove unused type.Neal H. Walfield
2020-04-03openpgp: Rename Primary to PrimaryKey.Neal H. Walfield
2020-04-03openpgp: Move key_amalgamation.rs to amalgamation/key.rs.Neal H. Walfield
2020-04-03openpgp: Rename KeyIter to KeyAmalgamationIterNeal H. Walfield
- Rename `KeyIter` to `KeyAmalgamationIter`, `ValidKeyIter` to `ValidKeyAmalgamationIter`. - Rename `cert/keyiter.rs` to `cert/amalgamation/iter.rs`.
2020-04-03openpgp: Rename ComponentIter to ComponentBundleIterNeal H. Walfield
- Rename `ComponentIter` to `ComponentBundleIter`, which is more accurate. - Rename the module from `cert/component_iter.rs` to `cert/bundle/iter.rs`.
2020-04-03openpgp: Define types before we use them.Neal H. Walfield
- This just reorders some code to improve readability.
2020-04-03openpgp: Fix some documentation.Neal H. Walfield
2020-04-02openpgp: Remove ComponentBundleIter and related types.Neal H. Walfield
- `ComponentBundleIter` is only used in two places and both are internal. - Just use `slice::Iter<'a, ComponentBundle<C>>` there instead and remove the unused types.
2020-04-02openpgp: Change Cert::subkeys to return KeyAmalgamations.Neal H. Walfield
- Change `Cert::subkeys` to return `KeyAmalgamation`s instead of `KeyBundle`s.
2020-04-02openpgp: Change Cert::unknowns to return amalgamations.Neal H. Walfield
- Change `Cert::unknowns` to return an iterator over `ComponentAmalgamation`s instead of an interator over `ComponentBundle`s.
2020-04-02openpgp: Remove ComponentIter::bundles.Neal H. Walfield
- The bundle can be obtained from the ComponentAmalgamation.
2020-04-02openpgp: Add limits to round_down and round_up.Nora Widdecke
2020-04-02openpgp: Actually drop KeyID::from_hex.Justus Winter
2020-04-02openpgp: Rename cert::components to cert::bundle.Neal H. Walfield
- `cert::components` is about `ComponentBundle`s, not `Component`s.
2020-04-02openpgp: Move the writer module to serialize::stream.Justus Winter
2020-04-02openpgp: Move the padding module to serialize::stream.Justus Winter
2020-04-02openpgp: Implement Default for packet::Literal.Justus Winter
2020-04-02openpgp: Rename.Justus Winter
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