-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Change wc_SSH_KDF to wc_SSH_KDF_ex with a new parameter to enable padding the k value or not. 2. Add new wc_SSH_KDF function that calls wc_SSH_KDF_ex with the k pad switch set to 1 3. Add new wc_SSH_KDF_NoPad function that calls wc_SSH_KDF_ex with the k pad switch set to 0. 4. Change the padding to treat the k pad switch as a boolean and always hash in the pad byte, as length 1 or 0. 5. Revise the comments for the SSH_KDF test to better indicate the source of the test vectors. 6. Add a set of test cases using a value for K that would require padding if padding is enabled. 7. Rework the test case setup to use macro composition. 8. Test both wc_SSH_KDF and wc_SSH_KDF_NoPad as appropriate for padding.
- Loading branch information
1 parent
b1765ca
commit a9bc1f8
Showing
3 changed files
with
196 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters