diff --git a/Core/Src/sts_cmox_hmac_sha.c b/Core/Src/sts_cmox_hmac_sha.c index 51c32b5..390ef34 100644 --- a/Core/Src/sts_cmox_hmac_sha.c +++ b/Core/Src/sts_cmox_hmac_sha.c @@ -40,7 +40,7 @@ uint32_t sts_hmac_verify(void) hmac_result.ac_pass = 60; hmac_result.hmac_tag_size = 0; GetUniqueId(uid); - APP_LOG(TS_OFF, VLEVEL_M, "\r\nUID=%02x %02x %02x %02x\r\n",uid[4],uid[5],uid[6],uid[7]); + ret = sts_hmac_sha1((const uint8_t *) mKey, sizeof(mKey), (const uint8_t*)(uid+4), 4, &hmac_result); for (i=0;i