Skip to content

Commit 5c1927f

Browse files
restyled-commitsmykrupp
authored andcommitted
Restyled by whitespace
1 parent ddae949 commit 5c1927f

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

scripts/tools/silabs/ota/examples/ota_custom_entries_example2.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
"path": "./binaries/ext_flash_ota_entry_example.bin"
8686
}
8787
]
88-
}
88+
}

src/platform/silabs/multi-ota/OTAFactoryDataProcessor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ CHIP_ERROR OTAFactoryDataProcessor::UpdateValue(uint8_t tag, ByteSpan & newValue
161161
case (int) FactoryTags::kCdCert:
162162
ChipLogProgress(SoftwareUpdate, "Set Certification Declaration");
163163
return factoryProvider.FactoryProvider::SetCertificationDeclaration(newValue);
164-
164+
165165
}
166166

167167

src/platform/silabs/multi-ota/OTAFactoryDataProcessor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct OTAFactoryPayload
5353

5454
enum class FactoryTags
5555
{
56-
kDacKey = 1,
56+
kDacKey = 1,
5757
kDacCert = 2 ,
5858
kPaiCert = 3,
5959
kCdCert = 4

src/platform/silabs/multi-ota/OTATlvProcessor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct OTATlvHeader
6565
// TLV tags synced with ota files generate by scripts/tools/silabs/ota/ota_image_tool.py
6666
enum class OTAProcessorTag
6767
{
68-
kApplicationProcessor = 1,
68+
kApplicationProcessor = 1,
6969
kBootloaderProcessor = 2 ,
7070
kFactoryDataProcessor = 3
7171
};

src/platform/silabs/multi-ota/OtaTlvEncryptionKey.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ CHIP_ERROR OtaTlvEncryptionKey::Import(const uint8_t * key, size_t key_len)
4242
psa_set_key_algorithm(&attributes, PSA_ALG_CTR);
4343
psa_set_key_usage_flags(
4444
&attributes, PSA_KEY_USAGE_DECRYPT);
45-
45+
4646
status = psa_import_key(&attributes, key, key_len, &key_id);
4747
if (status != PSA_SUCCESS) {
4848
printf("Failed to import a key error:%ld\n", status);
@@ -74,7 +74,7 @@ CHIP_ERROR OtaTlvEncryptionKey::Decrypt(MutableByteSpan & block, uint32_t &mIVOf
7474
iv[12] = (uint8_t) ((u32IVCount >> 24) & 0xff);
7575
iv[13] = (uint8_t) ((u32IVCount >> 16) & 0xff);
7676
iv[14] = (uint8_t) ((u32IVCount >> 8) & 0xff);
77-
iv[15] = (uint8_t) (u32IVCount & 0xff);
77+
iv[15] = (uint8_t) (u32IVCount & 0xff);
7878

7979
while (Offset + 16 <= block.size())
8080
{
@@ -88,8 +88,8 @@ CHIP_ERROR OtaTlvEncryptionKey::Decrypt(MutableByteSpan & block, uint32_t &mIVOf
8888
if (status != PSA_SUCCESS) {
8989
printf("Failed to set IV error:%ld\n", status);
9090
return CHIP_ERROR_INTERNAL;
91-
}
92-
91+
}
92+
9393
status = psa_cipher_update(&operation, static_cast<uint8_t *>(&block[Offset]), 16,
9494
output, sizeof(output), &output_len);
9595
if (status != PSA_SUCCESS) {
@@ -115,9 +115,9 @@ CHIP_ERROR OtaTlvEncryptionKey::Decrypt(MutableByteSpan & block, uint32_t &mIVOf
115115
printf("Failed to finish cipher operation\n");
116116
return CHIP_ERROR_INTERNAL;
117117
}
118-
118+
119119
}
120-
120+
121121
printf("Decrypted ciphertext\n");
122122

123123
psa_cipher_abort(&operation);
@@ -129,4 +129,4 @@ CHIP_ERROR OtaTlvEncryptionKey::Decrypt(MutableByteSpan & block, uint32_t &mIVOf
129129
} // namespace Provision
130130
} // namespace Silabs
131131
} // namespace DeviceLayer
132-
} // namespace chip
132+
} // namespace chip

src/platform/silabs/multi-ota/OtaTlvEncryptionKey.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class OtaTlvEncryptionKey
2626

2727
protected:
2828
uint32_t mId = 0;
29-
29+
3030
};
3131

3232
} // namespace Provision
3333
} // namespace Silabs
3434
} // namespace DeviceLayer
35-
} // namespace chip
35+
} // namespace chip

0 commit comments

Comments
 (0)