From 34734395c875e41cdef12d2d5370c75ad622d4b1 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 20 Oct 2016 14:23:28 +0200 Subject: [PATCH] Set configured default iteration time early in crypt_init constructor. --- lib/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup.c b/lib/setup.c index 307e15cc..d0ceaae9 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -470,7 +470,7 @@ int crypt_init(struct crypt_device **cd, const char *device) dm_backend_init(); - h->iteration_time = 1000; + h->iteration_time = DEFAULT_LUKS1_ITER_TIME; h->rng_type = crypt_random_default_key_rng(); *cd = h; return 0;