aboutsummaryrefslogtreecommitdiff
path: root/pbkdf2.c
diff options
context:
space:
mode:
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)