Commit Graph

11 Commits

Author SHA1 Message Date
Tony Arcieri 3a0cd5b35b ecdsa: PKCS#8 support (#203)
Impls the `FromPrivateKey` and `FromPublicKey` traits from the `pkcs8`
crate.
2020-12-06 06:11:47 -08:00
Tony Arcieri a404debf56 ecdsa: fix 32-bit builds for the dev feature (#177)
They weren't tested before. They are now!
2020-09-28 12:23:16 -07:00
Tony Arcieri 7fa56f960f ed25519: add (doctested!) ed25519-dalek usage example (#167)
Adds a rustdoc example which completely demonstrates how to use code
written generically with `ed25519::Signature` and `signature::{Signer,
Verifier}` with the concrete `ed25519_dalek::{Keypair, PublicKey}`
types.

Unlike the previous example, which hardly showed anything, this commit
also pulls in `ed25519-dalek` as a `[dev-dependency]`, which makes it
possible to actually doctest the example.
2020-09-11 15:20:39 -07:00
Tony Arcieri 26b831e0f1 ecdsa: bump ff and group crates to v0.8; MSRV 1.44+ (#156)
Previously `elliptic-curve` was pulling in git releases of these crates.
This commit updates to using the final v0.8 releases.
2020-09-08 19:59:20 -07:00
Tony Arcieri 67585389af ecdsa: rename {Signer, Verifier} => {SigningKey, VerifyKey} (#140)
Should help prevent confusion with `signature::{Signer, Verifier}`.
2020-09-02 10:44:14 -07:00
Tony Arcieri 8d9ca6f4eb .github: update tarpaulin + codecov config (#139)
- Upgrade `cargo-tarpaulin` to `latest`
- Upgrade `codecov-action` to v1.0.13
- Run cargo-tarpaulin with --all-features
2020-09-02 09:49:29 -07:00
Tony Arcieri 9cba7dff2f ecdsa: Verifier facade (gated under verifier feature) (#110)
Adds a `ecdsa::verifier::Verifier` facade which handles parsing of
`PublicKey` and computing digests of messages, ala the `Signer` facade
added in #109.

The implementation is generic over the elliptic curve and digest
function, providing a `DigestVerifier` impl, and when the curve type
impls `DigestPrimitive`, a `Verifier` impl as well.
2020-07-31 10:24:04 -07:00
Tony Arcieri b95afa6169 ecdsa: Signer facade (gated under signer feature) (#109)
Adds a `ecdsa::signer::Signer` facade which handles parsing of
`SecretKey` data and zeroization of the private scalar.

The implementation is generic over the elliptic curve and digest
function, providing a `RandomizedDigestSigner` impl, and also when the
curve type impls `DigestPrimitive`, a `RandomizedSigner` impl.
2020-07-30 10:37:47 -07:00
Tony Arcieri fac52ad94f ecdsa: bump all elliptic curve crates; MSRV 1.41+ (#86)
Bumps the following crate dependencies, which all now depend on
`generic-array` v0.14:

- `elliptic-curve` v0.4.0
- `k256` v0.3.0
- `p256` v0.3.0
- `p384` v0.2.0

Also re-exports `generic-array` from the `elliptic-curve` crate rather
than depending on it directly, which simplifies upgrades.
2020-06-08 10:20:16 -07:00
Tony Arcieri 1ce6ebd301 .github: fix security-audit.yml branch 2020-06-08 10:02:23 -07:00
Tony Arcieri a1ae696733 Switch to GitHub Actions
Uses Rust actions from https://github.com/actions-rs
2020-03-16 10:42:18 -07:00