-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supports version 1 and 2, with sha1, sha256 and sha512. Checked with the test vectors from: RFC6070 https://stackoverflow.com/questions/5130513/pbkdf2-hmac-sha2-test-vectors https://stackoverflow.com/questions/15593184/pbkdf2-hmac-sha-512-test-vectors
- Loading branch information
Showing
40 changed files
with
781 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=SHA256PBKDF2-password-salt-1-32.t | ||
command=hx | ||
args=( SHA256PBKDF2 password salt 1 32 ) | ||
exit_code=0 | ||
stdin_file=/dev/null | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
120fb6cffcf8b32c43e7225256c4f837a86548c92ccc35480805987cb70be17b |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=SHA256PBKDF2-password-salt-2-32.t | ||
command=hx | ||
args=( SHA256PBKDF2 password salt 2 32 ) | ||
exit_code=0 | ||
stdin_file=/dev/null | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ae4d0c95af6b46d32d0adff928f06dd02a303f8ef3c251dfd6e2d85a95474c43 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=SHA256PBKDF2-password-salt-4096-32.t | ||
command=hx | ||
args=( SHA256PBKDF2 password salt 4096 32 ) | ||
exit_code=0 | ||
stdin_file=/dev/null | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c5e478d59288c841aa530db6845c4c8d962893a001ce4e11a4963873aa98134a |
42 changes: 42 additions & 0 deletions
42
...PBKDF2-passwordPASSWORDpassword-saltSALTsaltSALTsaltSALTsaltSALTsalt-4096-40.t/TESTRECIPE
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=SHA256PBKDF2-passwordPASSWORDpassword-saltSALTsaltSALTsaltSALTsaltSALTsalt-4096-40.t | ||
command=hx | ||
args=( SHA256PBKDF2 passwordPASSWORDpassword saltSALTsaltSALTsaltSALTsaltSALTsalt 4096 40 ) | ||
exit_code=0 | ||
stdin_file=/dev/null | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
1 change: 1 addition & 0 deletions
1
...A256PBKDF2-passwordPASSWORDpassword-saltSALTsaltSALTsaltSALTsaltSALTsalt-4096-40.t/stdout
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
348c89dbcbd32b2f32d814b8116e84cf2b17347ebc1800181c4e2a1fb8dd53e1c635518c7dac47e9 |
42 changes: 42 additions & 0 deletions
42
...eed-elder-crawl-size-catch-inflict-perfect-foster-sugar-fox-mnemonic-2048-64.t/TESTRECIPE
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=SHA512PBKDF2-gloom-knee-orient-skull-dance-awake-payment-unusual-inflict-cinnamon-blush-seed-elder-crawl-size-catch-inflict-perfect-foster-sugar-fox-mnemonic-2048-64.t | ||
command=hx | ||
args=( SHA512PBKDF2 gloom\ knee\ orient\ skull\ dance\ awake\ payment\ unusual\ inflict\ cinnamon\ blush\ seed\ elder\ crawl\ size\ catch\ inflict\ perfect\ foster\ sugar\ fox mnemonic 2048 64 ) | ||
exit_code=0 | ||
stdin_file=/dev/null | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
1 change: 1 addition & 0 deletions
1
...sh-seed-elder-crawl-size-catch-inflict-perfect-foster-sugar-fox-mnemonic-2048-64.t/stdout
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1929625a9cb3ff0fc1a2bc5288807730469969278dc9629926a862cf3932bd888cb0d621f818ee7bee359281e9aa08f35deaa0dd559be5041bbc4c64ff57d7c6 |
42 changes: 42 additions & 0 deletions
42
...er-crawl-size-catch-inflict-perfect-foster-sugar-fox-mnemonichunter2-2048-64.t/TESTRECIPE
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=SHA512PBKDF2-gloom-knee-orient-skull-dance-awake-payment-unusual-inflict-cinnamon-blush-seed-elder-crawl-size-catch-inflict-perfect-foster-sugar-fox-mnemonichunter2-2048-64.t | ||
command=hx | ||
args=( SHA512PBKDF2 gloom\ knee\ orient\ skull\ dance\ awake\ payment\ unusual\ inflict\ cinnamon\ blush\ seed\ elder\ crawl\ size\ catch\ inflict\ perfect\ foster\ sugar\ fox mnemonichunter2 2048 64 ) | ||
exit_code=0 | ||
stdin_file=/dev/null | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
1 change: 1 addition & 0 deletions
1
...-elder-crawl-size-catch-inflict-perfect-foster-sugar-fox-mnemonichunter2-2048-64.t/stdout
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
07630c4bd98dce320c60d103323907252ffedc4c68d7564e5536077f696946bd247532152ae61d4b7c34a5883ee30d2e691ad184818d3b6e68e4f93089ad8bbd |
Oops, something went wrong.