Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signature: tracking issue for rand_core (RandomizedSigner) stabilization #94

Open
tarcieri opened this issue Mar 17, 2020 · 3 comments
Open
Labels
signature Digital signature crate

Comments

@tarcieri
Copy link
Member

tarcieri commented Mar 17, 2020

The signature crate contains the RandomizedSigner trait which are presently gated under the rand-preview rand_core feature.

Its main purpose is to allow a CSPRNG to be provided at the time a signature is computed. This is useful with algorithms like ECDSA or RSASSA-PSS which require an RNG at signing time.

There are also lingering concerns that deterministic signature algorithms like Ed25519 or ECDSA when implemented deterministically RFC6979 are brittle in the presence of fault attacks and should supplement their deterministic operation with additional randomness/entropy, which a RandomizedSigner API would allow for.

The main blocker at present is a 1.0 release of the rand_core crate.

Of all of the traits in the signature crate, this one is by far the most underexplored/experimented with. So far there are no crates which actually impl it.

@tarcieri tarcieri added the signature Digital signature crate label Mar 17, 2020
@tarcieri
Copy link
Member Author

The name RandomizedSigner is fairly long... would RngSigner perhaps be better?

@tarcieri
Copy link
Member Author

#235 added RandomizedDigestSigner which is effectively blocked on both this issue and #92

@tarcieri tarcieri changed the title signature: tracking issue for RandomizedSigner stabilization signature: tracking issue for rand-preview (RandomizedSigner) stabilization Jul 29, 2020
@tarcieri tarcieri changed the title signature: tracking issue for rand-preview (RandomizedSigner) stabilization signature: tracking issue for rand-preview (RandomizedSigner) stabilization Jul 29, 2020
dns2utf8 pushed a commit to dns2utf8/traits that referenced this issue Jan 24, 2023
@incertia
Copy link

With RandomizedSigner existing, it may be useful to also provide a RandomizedSignerMut trait. For example, LMOTS signatures can only be signed with a private key once (Mut would allow us to zero out the private key after a successful signature) and requires some random bytes to be generated. For consistency we would probably also have to add RandomizedDigestSignerMut as well.

@tarcieri tarcieri changed the title signature: tracking issue for rand-preview (RandomizedSigner) stabilization signature: tracking issue for rand_core (RandomizedSigner) stabilization Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
signature Digital signature crate
Projects
None yet
Development

No branches or pull requests

2 participants