diff options
author | Rob Austein <sra@hactrn.net> | 2016-05-25 23:26:36 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-05-25 23:26:36 -0400 |
commit | 8e6b461094305f47a1f0145eed636ca95cb5c8e5 (patch) | |
tree | c6be8bbce8eaa0fc161d9e913e9de907a4d6b939 /utils/last_gasp_default_pin | |
parent | 083d01731ffebb348c749ad6ccdb0256571835c7 (diff) |
PBKDF2 works better if we generate the right number of output bytes.
Diffstat (limited to 'utils/last_gasp_default_pin')
-rwxr-xr-x | utils/last_gasp_default_pin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/last_gasp_default_pin b/utils/last_gasp_default_pin index e0d9839..c2ca965 100755 --- a/utils/last_gasp_default_pin +++ b/utils/last_gasp_default_pin @@ -56,6 +56,10 @@ parser.add_argument("-i", "--iterations", type = int, default = 100000, help = "PBKDF2 iteration count") +parser.add_argument("-d", "--derived-key-length", + type = int, + default = 64, + help = "length of BPKDF2 output (must match libhal)") args = parser.parse_args() def HMAC_SHA256(pin, salt): |