msp432™ mcus training part 7: security 1 aes256 jtag/swd lock ip protection firmware update

8
MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Upload: roberta-stevenson

Post on 22-Dec-2015

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

MSP432™ MCUs TrainingPart 7: Security

1

AES256JTAG/SWD LockIP ProtectionFirmware Update

Page 2: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Security | AES256

Benefits• Hardware acceleration for

AES (Advanced Encryption Standard – FIPS PUB 197)

• Accelerates AES en- and decryption by one to two orders of magnitude (compared to software)

• Lower power (compared to software)• Off-loads CPUPerformance• 128-bit of data are en- or decrypted

with a 128-bit key within 167 MCLK cycles, 256-bit encryption in 234 cycles

Features• supporting 128-, 192-, and 256-bit

key lengths• On-the-fly key expansion• Off-line key generation for

decryption• Shadow registers for initial key• 128 bit truly random seed to

generate the random key• Block mode with DMA: OFB, ECB,

etc.2

Applications includeSecuring of communication channels like RF links, UART communications, etc.

Page 3: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Security | Device Security Overview

• Full chip security: JTAG Protection– Device is fully secure from debug accesses.

• Regional security: IP Protection– Up to 4 regional secure zones of memories can be configured in

flash– These zones are non-intrusive to debug (JTAG/debugger) and code

outside this region.– Regular debug allowed outside these regional secure zones.

• Combination of regional and full-chip security– This is a combination of the above two where:

• Debug accesses are blocked for the entire device• Code/Data access restrictions and protections apply for the

secure regions.

3

Page 4: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Security | JTAG security

• Similar to MSP430 JTAG security control

• Code is developed and loaded into Flash by customer

• Device is then completely locked from external accesses (full chip secure)

• All memory areas within the device can be accessed by the customer’s code.

Customer’s Code to be

Secured

Code Memory (Flash)

Debugger

Free memory

Page 5: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Security | IP Protection

• Configure up to 4 regionally secured zones to protect IP from read/write access

• Facilitate securing protected IP code from vendors

• Prevent access during IP code execution by stalling JTAG until end of code execution

• Regionally secured zones can be updated via BSL

• Ease of use: Use CCS & other IDEs to configure and secure zones

5

Page 6: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Security | Device security setup

Security setup Mailbox structure:• CMD – Command ()

– JTAG/SWD Lock– IP Protection Setup (Zone 0-3)– BSL Configuration– Update device Firmware– Update IP Protection Firmware

• PARAMS – security parameters1. ENABLE2. START_ADDR3. LENGTH4. AES_INIT_VECTOR5. AES_DECRYPTION_KEYS6. UPGRADE PASSWORD7. ENCRYPTED_UPDATE_EN8. DATA_ACCESS_EN

6

Start

Program code to be secured

into device flash

Setup flash mailbox for

secure region/full chip security

setup

Perform reboot-reset on the

device

Success (ACK=0xAC

E)?

No

Security setup done.

Yes

Page 7: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Security | Device firmware update

• Password-protected BSL can be used to update a device’s firmware

• When locking JTAG/SWD, option to provide an encryption key– Key is only shared at the time of initial firmware programming– During field-update, BSL payload can be encrypted with the same

key– Invoke boot override to decrypt the payload and program the new

firmware

• IP Protection also requires an encryption key– Key is only shared at the time of IP protected zone programming– BSL payload is encrypted with the same key– No-one other than original IP provide has access to the key

7

Page 8: MSP432™ MCUs Training Part 7: Security 1 AES256 JTAG/SWD Lock IP Protection Firmware Update

Security | More Resources

Application Notes & SW examples • Software IP Protection

• Configuring Security features

Available in MSPWare

8