summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-06-14doc: Add sections about workflowcoding-conventionsjuga
2019-06-14doc: Add more "rules" that we actually followjuga
2019-06-14doc: Rephrase sentence to represent alljuga
2019-06-14doc: Use linter to beautify text (cosmetic)juga
- and remove unneded spaces and lines
2019-06-14doc: Reflow text, as neal likes (cosmetic)juga
2019-06-14doc: Replace to 79 characters per linejuga
2019-06-14doc: Add coding conventions. WIPJustus Winter
2019-06-14Rename contributing instructions.Justus Winter
- Gitlab expects this file to be called CONTRIBUTING.md.
2019-06-14buffered-reader: Clarify loop variant.Justus Winter
- Fixes #237.
2019-06-14buffered-reader: Fix comment.Justus Winter
2019-06-14openpgp: Add test.Justus Winter
2019-06-14openpgp: Fix Fingerprint to KeyID conversion.Justus Winter
- If the fingerprint is invalid, we don't know how to convert it into a fingerprint.
2019-06-14Update nettle-sys to 1.0.3.Justus Winter
2019-06-13openpgp: Remove unused imports in tpk/armor.rsjuga
2019-06-12core: Replace Context set_lib documentationjuga
that was not describing correctly what set_lib does, probably cause a copy and paste mistake.
2019-06-11tool: Add headers to exported enarmored TPKsjuga
Closes #213.
2019-06-11openpgp: Add module to enarmor TPKs with headersjuga
Part of #213.
2019-06-11openpgp: Convert signature s-expressions to mpis::Signature.Justus Winter
2019-06-11openpgp: Improve debug formatting of s-expressions.Justus Winter
2019-06-11openpgp: Fix packet reference serialization interface.Justus Winter
- Introduce a new type, PacketRef, that is like Packet, but merely references the packet bodies. Both types differentiate between the different key types by having four key variants (PublicKey, PublicSubkey, SecretKey, SecretSubkey). - Like serialize::TSK, PacketRef is only used for serialization. Because the type explicitly differentiate the key variants, it provides an idiomatic and safe way to express the desired behavior when serializing Key structures. - This fixes roundtripping TPKs with V3 keys. A V3 key is currently parsed into an unknown packet. Previously, when an unknown packet with an V3 key was handed to Packet::serialize_ref, serializing would fail.
2019-06-10net: Honor compression features.Justus Winter
2019-06-10net: Drop unused parameter.Justus Winter
2019-06-08openpgp: Turn key parse errors into soft errors.Justus Winter
- If an secret key is missing, or unexpected, turn the packet into an unknown packet instead of failing hard. Also, improve error messages.
2019-06-08openpgp: Make the reader mode configurable in Dearmor.Justus Winter
2019-06-08openpgp: Export Dearmor.Justus Winter
2019-06-06openpgp: New type representing s-expressions.Justus Winter
- *S-Expressions* as described in the internet draft [S-Expressions], are a way to communicate cryptographic primitives like keys, signatures, and ciphertexts between agents or implementations. [S-Expressions]: https://people.csail.mit.edu/rivest/Sexp.txt
2019-06-06openpgp, rfc2822: Drop force-rerun hack.Justus Winter
2019-06-05rfc2822: Add more testsNeal H. Walfield
- Make sure that we can parse inputs using the name-addr parser that have an empty local part (a la '""@example.org').
2019-06-05rfc2822: Improve expect messageNeal H. Walfield
2019-06-04tool: Change wkd get to dump armor by defaultjuga
- Add -B flag for wkd get command - Update usage and also add missing new lines and replace URI by URL. Closes #286.
2019-06-02tool: stop panicking when wkd get without argumentsjuga
and the same with wkd url. Closes #285.
2019-06-01tool, sqv: Use CARGO_PKG_VERSION.Justus Winter
2019-06-01openpgp: Implement Clone for KeyPair.Justus Winter
2019-06-01openpgp: Implement From<KeyPair> for packet::Key.Justus Winter
2019-06-01openpgp: Fix Key4 parsing.Justus Winter
- Parse a secret key if there is one, without relying on the tag in the header. If Key4::from_bytes() is used, then the header will contain Tag::Reserved.
2019-06-01openpgp: Fix key serialization.Justus Winter
- Key4::Serialize calls serialize_key(true), with the intention that if there is a secret key, it is written out, but it should noto fail if there is no secret key.
2019-06-01openpgp: Simplify tests.Justus Winter
2019-06-01openpgp: Simplify examples.Justus Winter
2019-06-01openpgp: Expose functions to parse MPIs.Justus Winter
2019-06-01openpgp: Fix documentation.Justus Winter
2019-06-01ffi: Install all headersNeal H. Walfield
2019-05-31ffi: Add bindings for User ID constructorsNeal H. Walfield
- Add bindings for the new User ID constructors, UserID::from_address and UserID::from_unchecked_address.
2019-05-31ffi: Explicitly coerce errors to failure::ErrorNeal H. Walfield
- Change ffi_try! to explicitly coerce errors to failure::Error so that the caller doesn't need to do it.
2019-05-31openpgp: Add constructors for creating an RFC 2822 compliant User IDNeal H. Walfield
- When creating an RFC 2822 User ID, we may need to escape some character sequences. - Add a new constructor that does this for the display name, and validates that the comment and email address are also valid. - Also add a variant for uncheck addresses so that it is possible to use URIs.
2019-05-31openpgp: Implement From<String> for UserIDNeal H. Walfield
2019-05-31rfc2822: Provide a mechanism to escape display namesNeal H. Walfield
2019-05-30openpgp: Make PKESK::decrypt use crypto::Decryptor.Justus Winter
2019-05-30openpgp: New trait crypto::Decryptor.Justus Winter
2019-05-30openpgp: Avoid copying the session key into a vec.Justus Winter
- Instead, convert it to a SessionKey object first.
2019-05-30openpgp: Implement From<u64> for KeyID.Justus Winter