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

SecretKey KeyGen function using ciphersuiteID instead of api_id #316

Open
roblesjoel opened this issue Feb 18, 2024 · 1 comment
Open

SecretKey KeyGen function using ciphersuiteID instead of api_id #316

roblesjoel opened this issue Feb 18, 2024 · 1 comment

Comments

@roblesjoel
Copy link

In the generate secret key function (see here) only the cyphersuiteID is used for the key_dst.
Instead the api_id needs to be used.

So in the definition of key_dst it should be:

Defaults to the octet string ciphersuite_id || "H2G_HM2S_" || "KEYGEN_DST_" if not supplied

@roblesjoel
Copy link
Author

Additional Information:
The Error comes from the keypair.json fixture in the SHA folder.
If "H2G_HM2S_" is not included the test fails as it produces a different secret key.
When using api_id || "KEYGEN_DST_" the secret key is correct.

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

1 participant