summaryrefslogtreecommitdiffstats
path: root/openpgp
AgeCommit message (Collapse)Author
2023-08-24openpgp: Don't hardcode the AEADAlgorithm in the example.Justus Winter
2023-08-24openpgp: Implement Default for AEADAlgorithm.Justus Winter
2023-08-22openpgp: Reserve signature subpacket tag 38 ("Key Block").Justus Winter
2023-08-22openpgp: Deprecate the AEAD feature flag.Justus Winter
2023-08-22openpgp: Rename the MDC feature to SEIPDv1.Justus Winter
2023-08-21openpgp: Shortcut parse_finish for non-document signatures.Justus Winter
2023-08-11fix spelling of compressionDaniel Kahn Gillmor
2023-07-19openpgp: Implement Key::generate_elgamal.Justus Winter
2023-07-19openpgp: Implement Key::generate_dsa.Justus Winter
2023-07-18openpgp: Use public functions, remove pub(crate) accessors.Justus Winter
2023-07-18openpgp: Add accessors for the underlying Bitfields.Justus Winter
- Fixes #775.
2023-07-18openpgp: Add examples and documentation to Bitfield, make it public.Justus Winter
2023-07-18openpgp: Derive Default for Bitfield.Justus Winter
2023-07-18openpgp: Rework iteration over set bits.Justus Winter
2023-07-18openpgp: Rework Bitfield::padding_len.Justus Winter
2023-07-18openpgp: Avoid bit twiddling.Justus Winter
2023-07-18openpgp: Modify Bitfields in-place.Justus Winter
2023-07-18openpgp: Don't implicitly canonicalize Bitfields.Justus Winter
2023-07-18openpgp: Impl AsRef and AsMut for Bitfield.Justus Winter
2023-07-18openpgp: Rename accessors for the raw bytes.Justus Winter
2023-07-18openpgp: Make Bitfield opaque.Justus Winter
2023-07-17openpgp: Implement DSA using the RustCrypto backend.Justus Winter
2023-07-17openpgp: Fix typo.Justus Winter
2023-07-17openpgp: Add signature roundtrip test.Justus Winter
2023-07-11openpgp: Improve tracing.Justus Winter
2023-07-11openpgp: Fix checking the comment.Justus Winter
- We construct an address with format!("x ({})", comment), so we do expect to see the name set. - Fixes #747.
2023-07-09openpgp: Add Camellia support to RustCrypto backend.Shun Sakai
2023-07-07openpgp: Improve test.Justus Winter
2023-07-07openpgp: Add test vectors for the Camellia ciphers.Justus Winter
- Generated using GnuPG 2.2.40. - Fixes #1037.
2023-07-07openpgp: Simplify expression.Justus Winter
2023-07-07openpgp: Explicitly and selectively enable hashing.Justus Winter
- When we opt out of automatic hashing, it is useful to selectively opt in to hashing on a per-one-pass-signature basis. Add PacketParser::start_hashing to do this. - This is somewhat similar to PacketParser::decrypt in that they are invoked while the packet is in the packet parser, and they communicate intent to act upon that packet. - Fixes #1034.
2023-07-07openpgp: Add a way to disable automatic hashing.Justus Winter
- When encountering a one-pass-signature packet, the packet parser will, by default, start hashing later packets using the hash algorithm specified in the packet. In some cases, this is not needed, and hashing will incur a non-trivial overhead. - See #1034.
2023-07-07openpgp: Reuse computed value.Justus Winter
2023-07-07openpgp: Fix tracing, dump the right data.Justus Winter
2023-07-07openpgp: Better support early v4 certificates.Justus Winter
- If there is no key flags subpacket. Match on the key role and algorithm and synthesize one. We do this to better support very early v4 certificates, where either the binding signature is a v3 signature and cannot contain subpackets, or it is a v4 signature, but the key's capabilities were implied by the public key algorithm. - We only match on public key algorithms used at the time.
2023-07-07openpgp: Fix message structure validation.Justus Winter
- Once we finished processing the message, check that it actually conformed to the message grammar.
2023-07-07openpgp: Drop compression from encrypt bench.Wiktor Kwapisiewicz
- Compression is disabled if `--no-default-features` is being used. - This breaks some common workflows such as: `cargo bench --no-default-features --features crypto-botan2`. - Drop compression as this would unnecessarily bench performance of a third party code. - Replaces https://gitlab.com/sequoia-pgp/sequoia/-/merge_requests/1524. Reported-by: Alexander Kjäll <alexander.kjall@gmail.com>
2023-07-06openpgp: Fix tracing output.Justus Winter
2023-07-06openpgp: Fix hashing v3 signatures.Justus Winter
- The high-level hashing functions are implemented on SignatureFields (so that we can use them from the SignatureBuilder). Unfortunately, when those functions invoke SignatureFields::hash, the type encoding the packet version has been erased. - Recover the version at runtime and dispatch to the right hashing function.
2023-07-06openpgp: Do not try to add subpackets to v3 signatures.Justus Winter
- When we verify signatures, we sometimes add information to the signature's unhashed subpacket area. This doesn't work for v3 signatures, as those don't have subpackets.
2023-07-05openpgp: Don't put the packet body in the map unless we're bufferingJustus Winter
- Previously, Sequoia would buffer packet bodies when mapping is enabled in the parser, even if the packet parser is not configured to buffer the bodies. This adds considerable overhead. - With this change, Sequoia no longer includes the packet bodies in the maps unless the parser is configured to buffer any unread content. - This makes parsing packets faster if you don't rely on the packet body in the map, but changes the default behavior. If you need the old behavior, please do adjust your code to buffer unread content.
2023-07-05openpgp: Fix body length computation.Justus Winter
- Fixes c7adc7a5b3929956c1960493dfc1c7c5c624af9b.
2023-07-05openpgp: Fix serializing headers with legacy CTBs.Justus Winter
- Previously, we always serialized the length for use with new-style CTBs.
2023-07-05openpgp: Relax the Sized constraint on the parameter.Justus Winter
2023-07-04openpgp: Improve tests.Justus Winter
2023-07-04openpgp: Avoid extra copy.Justus Winter
2023-07-03openpgp: Deprecate SubpacketValue::PreferredAEADAlgorithms.Justus Winter
- This is replaced by a more expressive subpacket type in the crypto refresh. - Fixes #1017.
2023-07-03openpgp: Deprecate SignatureBuilder::set_preferred_aead_algorithms.Justus Winter
- This is replaced by a more expressive subpacket type in the crypto refresh. - See #1017.
2023-07-03openpgp: Deprecate SubpacketTag::PreferredAEADAlgorithms.Justus Winter
- This is replaced by a more expressive subpacket type in the crypto refresh. - See #1017.
2023-07-03openpgp: Deprecate SubpacketAreas::preferred_aead_algorithms.Justus Winter
- This is replaced by a more expressive subpacket type in the crypto refresh. - See #1017.