summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-06-08fix textnora/465-improve-documentation-for-keyid-fingerprint-keyhandle-modulesNora Widdecke
2020-06-05wipNora Widdecke
2020-06-04wipNora Widdecke
2020-06-04wipNora Widdecke
2020-06-04improve wordingNora Widdecke
2020-06-04openpgp: Add doctests for Fingerprint.Nora Widdecke
2020-06-04openpgp: Add examples to KeyID methods.Nora Widdecke
2020-06-02openpgp: Remove unnecessary forwarderNeal H. Walfield
- `KeyBundle::has_secret` is redundant: `KeyBundle` derefs to `&Key`, which derefs to a `&Key4`, which provides `has_secret` with identical semantics as `KeyBundle::has_secret`. - Remove it.
2020-06-02openpgp: Break up packet::keyNeal H. Walfield
- Move the `Key` conversion functions to `packet::key::conversions`.
2020-06-01openpgp: Add doctests to types module.Wiktor Kwapisiewicz
- Fixes #475.
2020-05-30openpgp: Derive Debug for RevocationType.Wiktor Kwapisiewicz
- Allow RevocationType to be used in unit tests.
2020-05-29openpgp: Fix crash due to improper use of buffered reader protocol.Justus Winter
- Fixes #516.
2020-05-29openpgp: Fix crash due to invalid handling of UTF-8 input.Justus Winter
- Fixes #515.
2020-05-28openpgp: Improve the PacketPileParser documentation.Justus Winter
- See #471.
2020-05-28openpgp: Align PacketPileParser::recursion_depth with PacketParser'sJustus Winter
2020-05-28openpgp: Fix PacketPileParser's API.Justus Winter
- Previously, inspecting the first packet was weird, because only .next() and .recurse() returned a reference to the underlying packet parser. Having to call .next() to get the first package differs from how the packet parser behaves (though I have to admit that it aligns with Iterator::next()). - Instead of returning the packet parser result from .next() and .recurse(), make PacketPileParser deref to it. This allows to inspect the first packet without weirdly calling .next() first, and improves code using the PPP in a parsing loop. It also simplifies the implementation, removing the need for the `returned_first` hack.
2020-05-28openpgp: Change the `decrypt` proxy in the decryption helper.Justus Winter
- Returning rich errors from this function may compromise secret key material due to Bleichenbacher-style attacks. Change the API to prevent this. - Hat tip to Hanno Böck. - Fixes #507.
2020-05-28openpgp: Add a warning to PacketParser::decrypt.Justus Winter
2020-05-28openpgp: Change PKESK::decrypt to return an Option<_>.Justus Winter
- Returning rich errors from this function may compromise secret key material due to Bleichenbacher-style attacks. Change the API to prevent this. - Hat tip to Hanno Böck. - See #507.
2020-05-28openpgp-ffi: Make pgp_cert_parser_from_bytes' buffer argument const.Alexander Kjäll
2020-05-28openpgp: Validate chunk sizes when parsing AED packets.Justus Winter
- Fixes #514.
2020-05-28openpgp: Use u64 for AEAD chunk sizes.Justus Winter
- Use u64 in packet::aed::AED1 and the API. - Add explicit overflow checks when using chunk sizes as offsets.
2020-05-28openpgp: Improve Key::decrypt_secret's discoverabilityNeal H. Walfield
- At appropriate places in the documentation, add a reference to `Key::decrypt_secret`.
2020-05-27openpgp: Fix referenceNeal H. Walfield
2020-05-27openpgp: Add methods to Key to handle encrypted secret key materialNeal H. Walfield
- Add `Key4::decrypt_secret`, `Key4::encrypt_secret`, `Key::decrypt_secret`, and `Key::encrypt_secret` to make it easier to deal with password-protected secret key material.
2020-05-27openpgp: Add SecretKeyMaterial::{decrypt,encrypt}Neal H. Walfield
- Add `SecretKeyMaterial::decrypt` and `SecretKeyMaterial::encrypt`, which are the same as `SecretKeyMaterial::decrypt_in_place` and `SecretKeyMaterial::encrypt_in_place`, respectively, but take ownership of the `SecretKeyMaterial`. - Adding these functions makes it easier to use the combinator pattern.
2020-05-27openpgp: Improve documentation.Justus Winter
- Remove unused imports, terminate examples.
2020-05-27openpgp: Improve documentation for PacketParserEOF.Justus Winter
- See #471.
2020-05-27openpgp: Make SecretKeyMaterial less brittleNeal H. Walfield
- Change `SecretKeyMaterial::decrypt_in_place` and `SecretKeyMaterial::encrypt_in_place` to not silently ignore invalid operations. - Make `SecretKeyMaterial::decrypt_in_place` return an error if the secret key material is not encrypted. - Make `SecretKeyMaterial::encrypt_in_place` return an error if the secret key material is already encrypted.
2020-05-27openpgp: Improve documentation for packet::trust.Neal H. Walfield
- See #470.
2020-05-27openpgp: Improve documentation for packet::ctb.Neal H. Walfield
- See #470.
2020-05-25ffi: Gracefully handle encrypted secret keys in pgp_pkesk_decrypt.Justus Winter
- Fixes #510.
2020-05-25Fix the required nettle version in README.md.Justus Winter
- Fixes #512.
2020-05-25openpgp: Fix documentation.Justus Winter
2020-05-20openpgp: Make field private, provide an accessorNeal H. Walfield
- Don't export `CTBOld::length_type`. Provide a getter, `CTBOld::length_type`, instead.
2020-05-20openpgp: Improve documentation for packet::header.Neal H. Walfield
- See #470.
2020-05-20openpgp: Improve documentation for packet::aed.Neal H. Walfield
- See #470.
2020-05-19openpgp: Improve documentation in packetNeal H. Walfield
- Improve the module-level documentation and the documentation for all types implemented in packet/mod.rs. - See #470.
2020-05-19openpgp: Add a function to strip secret key material from a CertNeal H. Walfield
- Add `Cert::strip_secret_key_material` to strip any secret key material.
2020-05-18autocrypt: only export transport encrypt and sign subkeys on encode-senderRuben Pollan
Authentication subkeys are not needed for autocrypt, let's reduce the size of the export. - Fixes #506
2020-05-15openpgp: Document cert::revokeNeal H. Walfield
- Improve documentation for public data structures and public methods in `cert::revoke`. - See #466.
2020-05-14openpgp: Improve the introduction of the parse module.Justus Winter
- See #471.
2020-05-14openpgp: Improve documentation of struct Recipient.Justus Winter
2020-05-14openpgp: Document cert::builderNeal H. Walfield
- Improve documentation for public data structures and public methods in `cert::builder`. - See #466.
2020-05-13openpgp: Sometimes set the primary User ID flag on a User AttributeNeal H. Walfield
- When using `CertBuilder` to generate a certificate, if there are no User IDs, set the primary User ID flag on the first User Attribute.
2020-05-13openpgp: Set the primary User ID flag on the first User IDNeal H. Walfield
- The documentation for `CertBuilder` says that the first User ID that is added will be the primary User ID. - Make the implementation match the documentation by setting the primary User ID flag for the first User ID.
2020-05-13openpgp: Improve example.Justus Winter
2020-05-13openpgp: Convert from ValidKeyAmalgamation for Recipient.Justus Winter
- Simplify examples accordingly.
2020-05-13openpgp: Allow conversion from all keys to Recipient.Justus Winter
2020-05-13openpgp: Fix documentation.Justus Winter