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

proposal: use HKDF in hash_to_field #20

Closed
kwantam opened this issue Jul 3, 2019 · 2 comments
Closed

proposal: use HKDF in hash_to_field #20

kwantam opened this issue Jul 3, 2019 · 2 comments

Comments

@kwantam
Copy link
Collaborator

kwantam commented Jul 3, 2019

See discussion in cfrg/draft-irtf-cfrg-hash-to-curve#137.

@kwantam
Copy link
Collaborator Author

kwantam commented Aug 2, 2019

The decision is to incorporate hash-to-curve by reference, so we get this "for free."

One remaining question is, do we specify how to go from secret keying material to the secret scalar value, and if so, what should we specify?


In the reference code we're currently using the following:

scalar_from_sk(sk):
    info = ""
    prk = hkdf_extract(None, sk)  // "None" as salt uses default specified in the RFC
    ikm = hkdf_expand(prk, info, 48)
    x = OS2IP(ikm) % q            // q is the order of the subgroup
    return x

Do we like this? Do we want to make info a non-null string?

@kwantam
Copy link
Collaborator Author

kwantam commented Aug 8, 2019

cfrg/draft-irtf-cfrg-bls-signature#1 takes care of this, so I'm closing it.

@kwantam kwantam closed this as completed Aug 8, 2019
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