We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ed25519KeyPair::generate(&rng)
An Ed25519KeyPair can't be generated without serializing it first, which is a bit awkward. E.g.
Ed25519KeyPair
use aws_lc_rs::signature::Ed25519KeyPair; let rng = rand::SystemRandom::new(); let bytes = Ed25519KeyPair::generate_pkcs8v1(&rng).unwrap(); let signing_key_pair = Ed25519KeyPair::from_pkcs8_maybe_unchecked(bytes.as_ref()).unwrap();
There should be a Ed25519KeyPair::generate() much like there is a EcdsaKeyPair::generate(). E.g.
Ed25519KeyPair::generate()
EcdsaKeyPair::generate()
use aws_lc_rs::signature::Ed25519KeyPair; let rng = rand::SystemRandom::new(); let signing_key_pair = Ed25519KeyPair::generate(&rng).unwrap();
The text was updated successfully, but these errors were encountered:
skmcgrail
Successfully merging a pull request may close this issue.
Problem:
An
Ed25519KeyPair
can't be generated without serializing it first, which is a bit awkward. E.g.Solution:
There should be a
Ed25519KeyPair::generate()
much like there is aEcdsaKeyPair::generate()
. E.g.The text was updated successfully, but these errors were encountered: