cfrg / draft-irtf-cfrg-opaque

The OPAQUE Asymmetric PAKE Protocol
https://cfrg.github.io/draft-irtf-cfrg-opaque/draft-irtf-cfrg-opaque.html
Other
100 stars 20 forks source link

Is the recommended scrypt configuration incomplete? #468

Closed iaik-jheher closed 2 days ago

iaik-jheher commented 2 weeks ago

The latest RFC draft (draft 17), in section 7. Configurations, specifies the recommended scrypt parameters as (N = 32768, r = 8, p = 1), and refers to RFC 7914 for the definition of scrypt.

As best as I can tell, scrypt as specified in RFC 7914 takes parameters P (passphrase), S (salt), N (cost parameter), r (block size), p (parallelization difficulty), and dkLen (output length).

It is clear that P = msg, and the draft specifies values for N, r, and p. However, the other parameters are not explicitly specified.

My best guesses are:

Still, I think these values -- unless I am completely missing something -- are missing, and should be specified explicitly.

kevinlewi commented 4 days ago

Thanks, you are right. Although the salt doesn't matter and the output length just needs to satisfy collision-resistance (for 128-bit security as mentioned in that section, dkLen = 32 suffices), it would be a good idea to mention these explicitly.

I have updated this in https://github.com/cfrg/draft-irtf-cfrg-opaque/pull/472

iaik-jheher commented 4 days ago

Looks good, thanks!

kevinlewi commented 2 days ago

Closed by #472