Skip to content

Commit

Permalink
[K32W1] Fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Menzopol <[email protected]>
  • Loading branch information
andrei-menzopol committed Feb 5, 2024
1 parent dc46b4b commit 7f95fc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ CHIP_ERROR P256KeypairSSS::ImportBlob(P256SerializedKeypairSSS & input)
if (false == mInitialized)
{
auto res = sss_sscp_key_object_init(keypair, &g_keyStore);
VerifyOrExit(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL);
VerifyOrReturnError(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL);

/* Allocate key handle */
res = sss_sscp_key_object_allocate_handle(keypair, 0x0u, kSSS_KeyPart_Pair, kSSS_CipherType_EC_NIST_P,
3 * kP256_PrivateKey_Length, SSS_KEYPROP_OPERATION_ASYM);
VerifyOrExit(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL);
VerifyOrReturnError(res == kStatus_SSS_Success, CHIP_ERROR_INTERNAL);
}

VerifyOrExit((sss_sscp_key_store_import_key(&g_keyStore, keypair, input.Bytes(), input.Length(), kP256_PrivateKey_Length * 8,
Expand Down

0 comments on commit 7f95fc2

Please sign in to comment.