aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-25 23:26:36 -0400
committerRob Austein <sra@hactrn.net>2016-05-25 23:26:36 -0400
commit8e6b461094305f47a1f0145eed636ca95cb5c8e5 (patch)
treec6be8bbce8eaa0fc161d9e913e9de907a4d6b939 /utils
parent083d01731ffebb348c749ad6ccdb0256571835c7 (diff)
PBKDF2 works better if we generate the right number of output bytes.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/last_gasp_default_pin4
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):