Fixed double counter increment.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-01-12 20:04:05 +01:00
parent 6c85772fff
commit 9793977ffc
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

@ -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;