Commit Graph

6 Commits

Author SHA1 Message Date
Mirek Sedzinski 40649077c2 dsa: gate signing under hazmat feature (#859)
Resolves #858
2025-01-19 14:12:56 -07:00
Tony Arcieri 1eec6b429d Bump signature to 2.0.0-pre (#562)
Implements the proposed breaking changes to the `signature` crate from
https://github.com/RustCrypto/traits/pull/1141

Most notably the `Signature` trait has been replaced with a
`SignatureEncoding` trait which permits an internally structured
signature representation.
2022-10-31 14:11:34 -06:00
Tony Arcieri a440df135a rfc6979: use SimpleHmac to implement HmacDrbg (#499)
`SimpleHmac` allows for significantly simpler bounds on generic digest
types versus `Hmac`.
2022-06-26 20:55:32 -06:00
aumetra 491fe5c2c6 dsa: Small API overhaul (#489) 2022-05-21 14:16:53 -06:00
Tony Arcieri ba86f16292 dsa: rename key types to SigningKey and VerifyingKey (#485)
For consistency with the `ecdsa` crate.

This naming scheme follows the philosophy that in a digital signature
scheme, it's clearer to name keys after their roles.

DSA admittedly benefits less than other schemes where there are other
potential algorithms that can be implemented using the same core
mathematics which share the same key representations.
2022-05-16 16:37:32 -06:00
aumetra 373e4fe08b dsa: Add initial DSA implementation (#471)
Adds an initial implementation of DSA (see #8)  

The following things work when tested against OpenSSL:

- The generated keys are valid and can be imported and exported from/to their DER/PEM representation
- Signatures generated by this library can be successfully verified
- Signatures can be imported and exported from/into their DER representation
- Signatures generated by OpenSSL can be successfully imported and verified
2022-05-16 11:53:39 -06:00