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

Lack of documentation for SharedSecret generation. #115

Open
Dominically opened this issue Apr 20, 2022 · 1 comment
Open

Lack of documentation for SharedSecret generation. #115

Dominically opened this issue Apr 20, 2022 · 1 comment

Comments

@Dominically
Copy link

I cannot figure out how to provide a type that implements Digest for creating a SharedSecret and there is no examples or documentation which show how to get a shared secret from a secret key and a public key (from a different key-pair). It would help if an example was provided as to how to generate a shared secret using ECDH with this library.

@undersquire
Copy link

You need to provide the hasher. For example, use the sha2 crate you should be able to provide the Sha512 as the type.

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

2 participants