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

Deterministic generation of key pair from seed #35

Open
JustinDrake opened this issue Jan 12, 2017 · 2 comments
Open

Deterministic generation of key pair from seed #35

JustinDrake opened this issue Jan 12, 2017 · 2 comments

Comments

@JustinDrake
Copy link

Does webcrypto allow for the deterministic generation of RSA key pairs from a seed?

@JeffreyBPetersen
Copy link

JeffreyBPetersen commented Mar 11, 2017

Doesn't look like it does unfortunately.

My interpretation of https://w3c.github.io/webcrypto/Overview.html is that:

  1. deriveKey requires the target key type to support "get key length" which isn't supported by any of the RSA options (which AFAIK is because an extra step would be needed to derive values suitable for RSA as opposed to the symmetric algorithms that do support "get key length").
  2. generateKey lacks any options for providing a seed value either directly or by separately seeding its source of random numbers.

Maybe check out https://github.com/wwwtyro/cryptico for a specific example of what you're describing and https://github.com/bitwiseshiftleft/sjcl if you want a better vetted suite of cryptographic operations? I'd also be happy to know any potentially better solutions if anyone has one.

@biocrypto730
Copy link

what the hell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants