summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-02-24openpgp: Check critical notations against good-list.Justus Winter
- See #274.
2020-02-24openpgp: Extend StandardPolicy to check critical subpackets.Justus Winter
2020-02-24openpgp: Add missing docs.Justus Winter
2020-02-24openpgp: Implement Display for SubpacketTag.Justus Winter
2020-02-24openpgp: Fix EdDSA key generation.Justus Winter
- Fixes #437.
2020-02-24openpgp: Fix link in documentation.Justus Winter
2020-02-21openpgp: Change default hash algorithm to SHA512.Justus Winter
- SHA512 is almost twice as fast as SHA256 on 64-bit architectures because it operates on 64-bit words.
2020-02-21openpgp: Extend policy to check AEAD algorithms.Justus Winter
2020-02-21openpgp: Fix rendering of docs.Justus Winter
- Avoid the number followed by a dot at the start of the line.
2020-02-21openpgp: Extend StandardPolicy to check for asymmetric algorithms.Justus Winter
- See #274.
2020-02-21openpgp: Remove bare implementations of serialized_len on MPIs.Justus Winter
- SerializeInto::serialized_len() provides the same.
2020-02-21openpgp: Mark enum Signature as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum Ciphertext as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum SecretKeyMaterial as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum PublicKey as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum DataFormat as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum ReasonForRevocation as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum SignatureType as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum HashAlgorithm as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum CompressionAlgorithm as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum AEADAlgorithm as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum SymmetricAlgorithm as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum Curve as non-exhaustive.Justus Winter
2020-02-21openpgp: Mark enum PublicKeyAlgorithm as non-exhaustive.Justus Winter
2020-02-20openpgp: Fix lifetime.Neal H. Walfield
2020-02-20openpgp: Add the with_policy method to the Amalgamation trait.Neal H. Walfield
- Move the `with_policy()` method from the `ValidAmalgamation` trait to the `Amalgamation` trait. - This means that we don't have to provide bare implementations on unvalidated amalgamations.
2020-02-20openpgp: Have ComponentAmalgamation deref to its bundle.Neal H. Walfield
- Instead of dereffing directly to the component (`C`), change `ComponentAmalgamation` to deref to its bundle (a `ComponentBundle<C>`), which already derefs to the containing component.
2020-02-20openpgp: Add the bundle method to the Amalgamation trait.Neal H. Walfield
- Add the `bundle()` method to the Amalgamation trait instead of implementing it on each struct.
2020-02-20openpgp: Typo.Justus Winter
2020-02-20openpgp: Extend policy to check symmetric algorithms.Justus Winter
- See #274.
2020-02-20openpgp: Split the ValidAmalgamation trait.Neal H. Walfield
- Split the ValidAmalgamation trait into two traits, Amalgamation and ValidAmalgamation, so that the functionality made available by the Amalgamation trait can be provided by a ComponentAmalgamation, which doesn't have a policy.
2020-02-20openpgp: Rename the Amalgamation trait to ValidAmalgamation.Neal H. Walfield
- The Amalgamation trait only applies to ValidComponents. Rename it accordingly.
2020-02-20openpgp: Extend policy to check packets.Justus Winter
- The default policy uses this mechanism to reject SED packets generated after 2004-01-01.
2020-02-20openpgp: Improve assert_match!.Justus Winter
- Emit a block so that the macro can be used as expression.
2020-02-20openpgp: Improve debug formatting of the bitfield types.Justus Winter
- Do not erroneously report padding for KeyFlags. - Print unknown flags and padding for KeyServerPreferences. - Provide nicer output for Features.
2020-02-20sq, sqv: Relax dependency on colored.Daniel Kahn Gillmor
- In eaaaf33dc15df65a7d34b9f436080e49f30f9715, colored was fixed to 1.9.1 "to keep our MSRV stable" presumably because 1.9.2 bumped the version of rustc required. However, older versions of colored still work to build. This was tested on debian, which today has 1.6.1. It's possible that even earlier versions of colored work as well, but this is all I've tested. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2020-02-19openpgp: Add test.Justus Winter
- This test demonstrates that we consider binding signatures valid even if the primary key is not marked as certification-capable. - Fixes #321.
2020-02-19openpgp: Improve tracing output.Justus Winter
2020-02-19openpgp: Improve test.Justus Winter
2020-02-19openpgp: Add test.Justus Winter
- Fixes #361.
2020-02-19openpgp: Move RevocationStatus to module types.Justus Winter
2020-02-19openpgp: New type CertAmalgamation that fixes policy and time.Justus Winter
- Fixes #426.
2020-02-19openpgp: Keep signatures in the verifier, hand out refs.Justus Winter
- See #416.
2020-02-19openpgp: Split VerificationResult.Justus Winter
- Split VerificationResult into Result<GoodChecksum, VerificationError>. - Fixes #416.
2020-02-18openpgp: Improve tracking of secret keys.Justus Winter
- We use marker traits to track with the type system if a Key has secret key material attached. Previously, it was possible to subvert that by taking the secret key material using Key4::set_secret, creating a Key4<SecretParts, ..> without any secrets. - Related, the accessor functions returned an Option<SecretKeyMaterial> even for Key4<SecretParts, ..>. - Replace set_secret by add_secret and take_secret that also change the Key's type accordingly. Make the accessors infallible if we know we have a secret key, rename Key4<P, R>::secret to Key4<P, R>::optional_secret to make the distinction clear. - Fixes #435.
2020-02-18openpgp: Use predicate Key4::has_secret.Justus Winter
2020-02-18openpgp: In the key conversions, add a lifetime to all references.Neal H. Walfield
2020-02-18openpgp: Change KeyAmalgamation to Deref to a KeyBundle.Neal H. Walfield
- Instead of having a `KeyAmalgamation` deref to a `Key`, have it deref to `KeyBundle`, which in turn derefs to a `Key`.
2020-02-18openpgp: Implement Deref for ComponentBundle.Neal H. Walfield
- Implement `Deref` for `ComponentBundle` so that it derefs to the containing `Component`.
2020-02-17openpgp: Move secret predicates.Justus Winter