Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

MikeAustin
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi,

Has anyone had any success encrypting the .cyacd file prior to sending it OTA as part of an OTA update?

Just trying to get an idea how complicated this is to implement.

Cheers,

Mike

0 Likes
1 Solution
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi Mike,

We do not have any specified method of encrypting the cyacd file.

You can refer to the below communication structure and can do the encryption and decryption in your source code.

Alakananda_BG_0-1619615826624.png

Regards

Alakananda

View solution in original post

0 Likes
4 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi Mike,

Cyacd file need not be encrypted for security during OTA process.

Normal BLE security settings would be sufficient.

You can use the authenticated pairing with encryption settings.

Regards

 

Alakananda
0 Likes

That may be true, but the .CYACD file will be sitting on a server for users to download and upgrade, so we want to encrypt the file before we make it publically available, then have it un-encrypt within the device after its been downloaded via OTA.

Cheers,

Mike

0 Likes
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi Mike,

We do not have any specified method of encrypting the cyacd file.

You can refer to the below communication structure and can do the encryption and decryption in your source code.

Alakananda_BG_0-1619615826624.png

Regards

Alakananda
0 Likes

Thanks for the info.  I think between the above info, and the details in the External Memory Bootloader/Bootloadable code examples, where they encrypt the new application code prior to storing it in memory and then unencrypt it before loading it into flash, I should be able to get something working

Cheers,

Mike

0 Likes