mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2024-09-20 03:10:09 +00:00
Fixed double counter increment.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
6c85772fff
commit
9793977ffc
@ -138,7 +138,6 @@ int mbedtls_ansi_x936_kdf(mbedtls_md_type_t md_type, size_t input_len, uint8_t *
|
||||
mbedtls_md_finish(&md_ctx, tmp_output);
|
||||
memcpy(&output[i], tmp_output, (output_len - i < hashlen) ? output_len - i : hashlen);
|
||||
i += hashlen;
|
||||
counter++;
|
||||
}
|
||||
mbedtls_md_free(&md_ctx);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user