Skip to content

Commit 7e35220

Browse files
restyled-commitsying-css
authored andcommitted
Restyled by clang-format
1 parent 52f5b58 commit 7e35220

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/platform/Infineon/crypto/trustm/CHIPCryptoPALHost.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ CHIP_ERROR AES_CCM_encrypt(const uint8_t * plaintext, size_t plaintext_length, c
129129
}
130130

131131
// Size of key is expressed in bits, hence the multiplication by 8.
132-
result = mbedtls_ccm_setkey(&ccm_context, MBEDTLS_CIPHER_ID_AES, key.As<Aes128KeyByteArray>(),
133-
sizeof(Aes128KeyByteArray) * 8);
132+
result = mbedtls_ccm_setkey(&ccm_context, MBEDTLS_CIPHER_ID_AES, key.As<Aes128KeyByteArray>(), sizeof(Aes128KeyByteArray) * 8);
134133
VerifyOrExit(result == 0, error = CHIP_ERROR_INTERNAL);
135134

136135
// Encrypt
@@ -166,8 +165,7 @@ CHIP_ERROR AES_CCM_decrypt(const uint8_t * ciphertext, size_t ciphertext_len, co
166165
}
167166

168167
// Size of key is expressed in bits, hence the multiplication by 8.
169-
result = mbedtls_ccm_setkey(&ccm_context, MBEDTLS_CIPHER_ID_AES, key.As<Aes128KeyByteArray>(),
170-
sizeof(Aes128KeyByteArray) * 8);
168+
result = mbedtls_ccm_setkey(&ccm_context, MBEDTLS_CIPHER_ID_AES, key.As<Aes128KeyByteArray>(), sizeof(Aes128KeyByteArray) * 8);
171169
VerifyOrExit(result == 0, error = CHIP_ERROR_INTERNAL);
172170

173171
// Decrypt

0 commit comments

Comments
 (0)