summaryrefslogtreecommitdiffstats
path: root/openpgp
AgeCommit message (Collapse)Author
2018-09-06openpgp: Make Signature's MPIs mandatory.Justus Winter
- Capitalize on the fact that all Signatures now have MPIs.
2018-09-06openpgp: Split Signature into Signature and a mutable builder.Justus Winter
- This change splits struct Signature into two structs, the new one being the struct SignatureBuilder. This has two benefits: First, the Signature is now immutable (modulo the unhashed area), and therefore we do not need to worry about signature invalidation. Second, now every Signature has MPIs.
2018-09-06openpgp: Use getters to access Signatures.Justus Winter
2018-09-06openpgp: Simplify Key's MPI handling.Justus Winter
- Since we dropped the Default implementation, keys always have mpis, therefore we don't need to return an Option here.
2018-09-06openpgp: Do not implement Default for Key.Justus Winter
2018-09-05openpgp: Add test vector.Justus Winter
2018-09-05openpgp: Fix error handling in the armor encoder.Justus Winter
- If writing out the stash fails, we might end up with a stash of size 3. - Fixes #73.
2018-09-04openpgp: Fix typo.Neal H. Walfield
2018-09-03openpgp: Rename MPIs to Signature.Justus Winter
- Concludes the patch series. - Fixes #62.
2018-09-03openpgp: Move implementation.Justus Winter
2018-09-03openpgp: Split the ciphertext-variants of MPIs off.Justus Winter
2018-09-03openpgp: Split the secretkey-variants of MPIs off.Justus Winter
2018-09-03openpgp: Split the publickey-variants of MPIs off.Justus Winter
2018-09-03openpgp: Expose packet structs in the packet module.Justus Winter
- Fixes #64.
2018-09-03openpgp: Move definition of struct MDC.Justus Winter
2018-09-03openpgp: Move definition of struct SEIP.Justus Winter
2018-09-03openpgp: Move definition of struct CompressedData.Justus Winter
2018-09-03openpgp: Move definition of struct Literal.Justus Winter
2018-09-03openpgp: Move definition of struct UserAttribute.Justus Winter
2018-09-03openpgp: Move definition of struct UserID.Justus Winter
2018-09-03openpgp: Move definition of struct Key.Justus Winter
2018-09-03openpgp: Move definition of struct OnePassSig.Justus Winter
2018-09-03openpgp: Move definition of struct Unknown.Justus Winter
2018-09-03openpgp: Fix comment.Neal H. Walfield
2018-08-31Revert "openpgp: add simple pk crypto interface to TPK"Kai Michaelis
This reverts commit 914314d61fa5cbc146a69965f399cd2e09fabfda.
2018-08-31openpgp: superflouos -> superfluous typoKai Michaelis
2018-08-31openpgp: Improve docstring.Justus Winter
2018-08-31openpgp: add simple pk crypto interface to TPKKai Michaelis
Adds TPK::encrypt & TPK::verify et.al. to make simple public key operations easier than using Encryptor & Verifier instances.
2018-08-31openpgp: Tweak test to check that secrets are not leaked.Justus Winter
2018-08-31openpgp: Make SKESK's ESK field optional.Justus Winter
2018-08-30openpgp: fix minor warningKai Michaelis
2018-08-30openpgp: add Verifier::message_processedKai Michaelis
Adds a way to Verifier to check whether the whole message has been processed and the result in the Helper is ready w/o consuming the Verifiers buffer. Adds a test verifying a 30MiB message.
2018-08-30openpgp: minor typoKai Michaelis
2018-08-30openpgp: fix packet length encoding, add tests.Kai Michaelis
Four-octet packet lengths where emitted w/o preceding 0xff byte, two-octet lengths weren't used for 8383 byte large packets (off-by-one). I also added unit tests enumerating all edge cases.
2018-08-30openpgp: Add roundtrip test.Justus Winter
2018-08-30openpgp: Canonicalize times.Justus Winter
- Strip off aspects of timestamps and durations that OpenPGP cannot represent.
2018-08-30openpgp: Add getters returning mutable references to Key's MPIs.Justus Winter
2018-08-29openpgp: Fix requesting TPKs for signature verification.Justus Winter
2018-08-29openpgp: Add conversion from KeyIDs to u64.Justus Winter
2018-08-29openpgp: Make the keys() iterator more useful.Justus Winter
- Return the corresponding (binding-)signature along with the keys.
2018-08-29openpgp: Warn that Literal Data Packet metadata is unprotected.Neal H. Walfield
- An OpenPGP signature over a Literal Data Packet does not protect the Literal Data Packet's meta-data. Note this in the documentation and discourage the use of these fields.
2018-08-29openpgp: Improve VerificationResult's documentation.Neal H. Walfield
- Mention that signature verification does not consider whether the key is trusted.
2018-08-27openpgp: Keep bad signatures for later.Justus Winter
- When we find signatures that are bad or unused, keep them around, they might be useful when merging the TPK later on. This may happen if we see a partial TPK. For instance, if we have a key server that doesn't return user id packets, it should still return any self-signatures on those user id packets to allow propagation of revocation certificates, etc. - Fixes #34.
2018-08-27openpgp: Collect direct-key signatures.Justus Winter
- Fixes #32.
2018-08-27tool: Ignore multiple signatures from the same TPK by default.Justus Winter
- This behavior can be changed using a switch. - Fixes #18.
2018-08-27openpgp: Add a signing subkey.Justus Winter
2018-08-27tool: Ignore duplicate signatures in sqv.Justus Winter
- See #18.
2018-08-27openpgp: Add method to clear a SubpacketArea.Justus Winter
2018-08-27openpgp: Make our packets implement Eq and Hash.Justus Winter
- These traits are required for the packets to be used as keys in hashmaps.
2018-08-27openpgp: Add missing trait import for tests.Justus Winter
- Fixes 2bd291e060549c59fbeb698e9b61f92021d7f01f.