summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
AgeCommit message (Collapse)Author
2019-04-03openpgp-ffi: Typo.Justus Winter
2019-04-03openpgp: Reverse the order of signature groups.Justus Winter
- Previously, we reported the signature groups in the order encountered in the message. Reverse this order in preparation to reporting the message structure, which is the path from the start of the message to the literal data packet.
2019-04-02openpgp: Improve the VerificationHelper protocol.Justus Winter
- Change VerificationResult::GoodChecksum to include references to the TPK that contained the signing key, the key itself, a binding signature (if any), and any revocation information. - Fixes #140.
2019-04-01openpgp-ffi: Add a convenience function to pretty print a packetNeal H. Walfield
2019-03-28Fix intra-workspace dependencies.Justus Winter
- Specify versions for intra-workspace dependencies in the crates that are not yet released.
2019-03-28Point to the version-specific documentation.Justus Winter
2019-03-25openpgp: Rework the DecryptionHelper trait.Justus Winter
- Simplify the protocol by removing the iteration. Instead, the callee gets a proxy for PacketParser::decrypt() that she can use to decrypt the message. If successful, the session key can be cached without involving the DecryptionHelper trait. This also allows us to dump session keys. - Fixes #219.
2019-03-25openpgp-ffi: Wrap crypto::SessionKey and crypto::Password.Justus Winter
2019-03-25openpgp-ffi: Rename type.Justus Winter
2019-03-25openpgp-ffi: Rename types.Justus Winter
- Fixes e3cb52fede1872f93371677224201228a62ae6ce.
2019-03-25openpgp-ffi: Implement From<Fallible<T>> for Status.Justus Winter
2019-03-22Fix build on macOS.Justus Winter
- Use GNU install, use the correct extension for dynamic libraries. - Fixes #226.
2019-03-22openpgp-ffi: Replace glibc's error function.Justus Winter
- To make the tests and examples more portable, provide our own roughly compatible replacement for glibc's error(3).
2019-03-22openpgp-ffi: Add convenience functions to work with pgp_reader_t:s.Neal H. Walfield
- pgp_reader_copy: Copy up to n bytes from a reader to a writer. - pgp_reader_discard: Read to EOF and discard everything that is read.
2019-03-21openpgp: Rename `UserID::userid()` to `value()`.Justus Winter
- Fixes #224.
2019-03-21openpgp: Rename UserAttribute's accessors.Justus Winter
- See #224.
2019-03-21openpgp-ffi: Use crate for futimes fiddling.Justus Winter
- The previous solution of using libc::futimes turned out to be not portable because different platforms have differently sized timestamps. Use a crate for that instead. - Also, bring ffi's c-tests up-to-speed. - Fixes #225.
2019-03-21openpgp-ffi: Reify the verification wrapper.Justus Winter
- See #154.
2019-03-21openpgp-ffi: Fix memory leak.Justus Winter
2019-03-21openpgp-ffi: Reify the decryption wrapper.Justus Winter
- See #154.
2019-03-21openpgp-ffi: Allow passing 0 to select the default algorithmNeal H. Walfield
- 01db33b and 97cdc30 changed the Encryption::new and Signer::new APIs to optionally provide the algorithm to use for encryption and hashing. Also make it optional in the C API by recognizing 0 as meaning the default algorithm.
2019-03-20openpgp-ffi: Add test.Justus Winter
2019-03-20openpgp-ffi: Fix linkage.Justus Winter
2019-03-20openpgp-ffi: Simplify c-test.Justus Winter
- Use the line number instead of a hash. This makes it simpler, but also easier to locate the test in the source file.
2019-03-20openpgp-ffi: Move the decryption and verification code.Justus Winter
2019-03-20openpgp-ffi: Create parse subdirectory.Justus Winter
2019-03-19openpgp-ffi: New example.Justus Winter
2019-03-19openpgp-ffi: Simplify examples.Justus Winter
2019-03-18openpgp: Make cipher algorithm configurable in streaming Encryptor.Justus Winter
- Fixes #208.
2019-03-18openpgp: Make hash algorithm configurable in streaming Signer.Justus Winter
- See #208.
2019-03-14Release 0.5.0.v0.5.0Justus Winter
2019-03-14openpgp-ffi: Fix naming.Neal H. Walfield
2019-03-14openpgp-ffi: Fix prototype.Neal H. Walfield
- pgp_tpk_set_expiry now takes a pgp_signer_t instead of a pgp_tpk_t.
2019-03-14openpgp: Replace TPK::select_keys with an iterator.Neal H. Walfield
- TPK::select_keys mixes iterating and filtering. - Make KeyIter an implicit builder, which supports convenient filtering. - Provide a convenience function to key an iterator with a reasonable filter default.
2019-03-13Bump nettle to 5.0.Justus Winter
2019-03-11openpgp-ffi: Fix declarations.Neal H. Walfield
- pgp_signer_new and pgp_signer_new_detached take pgp_signer_t *'s, not pgp_tpk_t's.
2019-03-11openpgp-ffi: Don't try to reclaim referencesNeal H. Walfield
- The ids are references, not owned objects.
2019-03-11openpgp-ffi: Unwrap array of wrapped TPKs.Neal H. Walfield
2019-03-11openpgp-ffi: Improve error messageNeal H. Walfield
2019-03-11openpgp-ffi: Unwrap object.Neal H. Walfield
- Use ref_raw, not ffi_parame_ref! to access wrapped objects.
2019-03-11openpgp-ffi: Avoid C++ keywords in identifiersNeal H. Walfield
- public and this are C++ keywords, avoid them.
2019-03-11openpgp-ffi: Finish sq_ to pgp_ rename.Neal H. Walfield
2019-03-11openpgp-ffi: Move all type declarations to <sequoia/openpgp/types.h>Neal H. Walfield
- pgp_key_t was declared multiple times, once in <sequoia/openpgp.h> and again in <sequoia/openpgp/crypto.h>. Although the definitions were the same, this causes gcc to emit a warning, which is particularly annoying when combined with -Werror. - It's hard to remove one of the declarations as this would create a circular dependency. - To break this circular dependency, we move all of the type declarations to a separate header file.
2019-02-19Release 0.4.0.v0.4.0Justus Winter
2019-02-13openpgp: use nettle 4.0Kai Michaelis
2019-02-12openpgp-ffi: Wrap openpgp::packet::Key.Justus Winter
2019-02-12openpgp-ffi: Fix Signature wrapping.Justus Winter
2019-02-12openpgp-ffi: Use the correct type.Justus Winter
2019-02-12openpgp-ffi: Reduce FFI additions.Justus Winter
- See #154.
2019-02-12openpgp-ffi: Fix wrapping of Fingerprints and KeyIDs.Justus Winter