aboutsummaryrefslogtreecommitdiff
path: root/pbkdf2.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2018-04-19 19:40:03 -0400
committerPaul Selkirk <paul@psgd.org>2018-04-19 19:40:03 -0400
commit110754870a5db73b064ae065b7927476c880b48a (patch)
treef082643a3fcf2cffc82b370955ac4426d7751741 /pbkdf2.c
parent34cf7ef55d66886757a36eb327dc3e22be54c918 (diff)
parentc6543a796c8b560b06cb1d53fad9ffa3906df111 (diff)
Merge branch 'profiling' into hashsig
Diffstat (limited to 'pbkdf2.c')
-rw-r--r--pbkdf2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbkdf2.c b/pbkdf2.c
index 0a1e57e..87ff574 100644
--- a/pbkdf2.c
+++ b/pbkdf2.c
@@ -140,6 +140,8 @@ hal_error_t hal_pbkdf2(hal_core_t *core,
for (iteration = 2; iteration <= iterations_desired; iteration++) {
+ hal_task_yield_maybe();
+
if ((err = do_hmac(core, descriptor, password, password_length,
mac, descriptor->digest_length,
0, mac, sizeof(mac))) != HAL_OK)