Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: hmac.c
- Revision:
- 25:8507bf644fdf
- Parent:
- 19:2e0811512ceb
diff -r 96ae4d5375ef -r 8507bf644fdf hmac.c --- a/hmac.c Thu Apr 06 14:12:06 2017 -0700 +++ b/hmac.c Fri Apr 21 14:51:10 2017 -0700 @@ -218,7 +218,7 @@ /* perform outer SHA */ /* init context for 2nd pass */ - USHAReset(&ctx->shaContext, ctx->whichSha) || + USHAReset(&ctx->shaContext, (SHAversion)ctx->whichSha) || /* start with outer pad */ USHAInput(&ctx->shaContext, ctx->k_opad, ctx->blockSize) ||