-
Notifications
You must be signed in to change notification settings - Fork 66
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
SP800-56Crev2 Two-Step KDF: Allow requester to specify salt length used in SP800-56Crev2 KDFs #1424
Comments
This sounds like a reasonable request. I assume that you need this feature to test an implementation. Is that correct? |
thanks for you positive reply. yes. the feature request is to test an implementation. |
Great, thank you. We'll get this implemented and out as soon as possible. |
Hi @rnunez83, just a heads up that I just sent you an email related to this ticket. -Ben |
Adds the saltLens registration property to KDA HKDF 56Cr2 to support IUTs that are constrained by the salt lengths that they support. usnistgov#1424
This feature has been added to KDA HKDF SP800-56Cr2 and will be included in the next release. |
The fix for this is on Demo in release v1.1.0.32. |
hi @livebe01. can you confirm what the registration is supposed to include for the salt length registration? { but the testvector.json generated shows the default salt length (1024): |
hi @rnunez83, sure. Try the same registration, but use KDA HKDF Sp800-56Cr2. I only implemented the feature for Sp800-56Cr2. -Ben |
I see. 56Cr2. I successfully generated test vectors. I close out the ticket now. thanks! |
The fix for this is on Prod in release v1.1.0.32. |
Currently in the SP800-56Crev2 two-step KDF ACVP capabilities specification, it allow the requester to specify "how the salt is determined (default being all 00s, random being a random salt)" by specifying "macSaltMethod"
https://github.com/usnistgov/ACVP/blob/master/src/kas/sp800-56c/twostep/sections/05-capabilities.adoc#two-step-kda-capabilities
In the testvector-requests.json we have received, This length is fixed to 128 bytes (1024 bits)when using SHA-384 hash function. The salt length is shown in the "saltLen" field in the testvector-request.json (see Table 3. KdfConfiguration JSON Object in the following link: https://github.com/usnistgov/ACVP/blob/master/src/kas/sp800-56c/twostep/sections/06-test-vectors.adoc#kdfconfiguration-json-schema
Details on suggestion
In Section 4.2 of SP800-56Crev2, it specifies that "This Recommendation places no restriction on the length of a chosen salt other than the requirement that its byte length be greater than zero but no greater than the length of a single input block to the hash function, hash, used to implement HMAC-hash."
https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-56Cr2.pdf#page=24
My request is to allow the requester to specify the length of the salt from a range of [8-bits to "Effective Bit Length of salt" for a given Hash function] shown in SP800-56Crev2 Table 2.
https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-56Cr2.pdf#page=23
The text was updated successfully, but these errors were encountered: