Skip to content

Commit ed7f4e9

Browse files
[nxp noup][platform][mcxw71_k32w1] Fix clang format
Signed-off-by: marius-alex-tache <marius.tache@nxp.com>
1 parent 929619b commit ed7f4e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platform/nxp/mcxw71_k32w1/CHIPCryptoPalK32W1.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ CHIP_ERROR Hash_SHA256_stream::Begin(void)
340340
mbedtls_sha256_context * const context = to_inner_hash_sha256_context(&mContext);
341341

342342
#if (MBEDTLS_VERSION_NUMBER >= 0x03000000)
343-
const int result = mbedtls_sha256_starts(context, 0);
343+
const int result = mbedtls_sha256_starts(context, 0);
344344
#else
345345
const int result = mbedtls_sha256_starts_ret(context, 0);
346346
#endif
@@ -380,7 +380,7 @@ CHIP_ERROR Hash_SHA256_stream::AddData(const ByteSpan data)
380380
mbedtls_sha256_context * const context = to_inner_hash_sha256_context(&mContext);
381381

382382
#if (MBEDTLS_VERSION_NUMBER >= 0x03000000)
383-
const int result = mbedtls_sha256_update(context, Uint8::to_const_uchar(data.data()), data.size());
383+
const int result = mbedtls_sha256_update(context, Uint8::to_const_uchar(data.data()), data.size());
384384
#else
385385
const int result = mbedtls_sha256_update_ret(context, Uint8::to_const_uchar(data.data()), data.size());
386386
#endif
@@ -452,13 +452,13 @@ CHIP_ERROR Hash_SHA256_stream::Finish(MutableByteSpan & out_buffer)
452452
mbedtls_sha256_context * const context = to_inner_hash_sha256_context(&mContext);
453453

454454
#if (MBEDTLS_VERSION_NUMBER >= 0x03000000)
455-
const int result = mbedtls_sha256_finish(context, Uint8::to_uchar(out_buffer.data()));
455+
const int result = mbedtls_sha256_finish(context, Uint8::to_uchar(out_buffer.data()));
456456
#else
457457
const int result = mbedtls_sha256_finish_ret(context, Uint8::to_uchar(out_buffer.data()));
458458
#endif
459459

460460
VerifyOrReturnError(result == 0, CHIP_ERROR_INTERNAL);
461-
out_buffer = out_buffer.SubSpan(0, kSHA256_Hash_Length);
461+
out_buffer = out_buffer.SubSpan(0, kSHA256_Hash_Length);
462462
#endif
463463

464464
return CHIP_NO_ERROR;

0 commit comments

Comments
 (0)