Skip to content

Commit e407e3a

Browse files
Code review.
1 parent bc646ee commit e407e3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/platform/silabs/efr32/CHIPCryptoPALPsaEfr32.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,14 @@ CHIP_ERROR AES_CCM_encrypt(const uint8_t * plaintext, size_t plaintext_length, c
106106
const Aes128KeyHandle & key, const uint8_t * nonce, size_t nonce_length, uint8_t * ciphertext,
107107
uint8_t * tag, size_t tag_length)
108108
{
109-
ChipLogDetail(Crypto, "~~~ AES_CCM_encrypt, pl:%u", (unsigned)plaintext_length);
110109
VerifyOrReturnError(IsBufferNonEmpty(nonce, nonce_length), CHIP_ERROR_INVALID_ARGUMENT);
111110
VerifyOrReturnError(IsValidTag(tag, tag_length), CHIP_ERROR_INVALID_ARGUMENT);
112111
VerifyOrReturnError((ciphertext != nullptr && plaintext != nullptr) || plaintext_length == 0, CHIP_ERROR_INVALID_ARGUMENT);
113112
VerifyOrReturnError(aad != nullptr || aad_length == 0, CHIP_ERROR_INVALID_ARGUMENT);
114113

115114
const psa_algorithm_t algorithm = PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_CCM, tag_length);
116-
psa_status_t status = PSA_SUCCESS;
117115
psa_aead_operation_t operation = PSA_AEAD_OPERATION_INIT;
116+
psa_status_t status = PSA_SUCCESS;
118117
size_t out_length = 0;
119118
size_t tag_out_length = 0;
120119

0 commit comments

Comments
 (0)