-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splits out the RFC6979 deterministic nonce generation so it can (eventually) be used for DSA as well as ECDSA. The implementation is generic over a `Digest` as well as a `UInt` type as defined by `crypto-bigint`. It's also `no_std` friendly and avoids making heap allocations.
- Loading branch information
Showing
13 changed files
with
280 additions
and
156 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["ecdsa", "ed25519"] | ||
members = [ | ||
"ecdsa", | ||
"ed25519", | ||
"rfc6979" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "rfc6979" | ||
version = "0.0.0" # Also update html_root_url in lib.rs when bumping this | ||
description = """ | ||
Pure Rust implementation of RFC6979: Deterministic Usage of the | ||
Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA) | ||
""" | ||
authors = ["RustCrypto Developers"] | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/RustCrypto/signatures/tree/master/rfc6979" | ||
readme = "README.md" | ||
categories = ["cryptography", "no-std"] | ||
keywords = ["dsa", "ecdsa", "signature"] | ||
edition = "2021" | ||
rust-version = "1.56" | ||
|
||
[dependencies] | ||
crypto-bigint = { version = "0.3", default-features = false, features = ["generic-array", "zeroize"] } | ||
hmac = { version = "0.11", default-features = false } | ||
zeroize = { version = "1", default-features = false } | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] |
Oops, something went wrong.