Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

AN4240 Datasheet(PDF) 2 Page - STMicroelectronics

Part # AN4240
Description  This application note provides an easy introduction to the usage
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4240 Datasheet(HTML) 2 Page - STMicroelectronics

  AN4240 Datasheet HTML 1Page - STMicroelectronics AN4240 Datasheet HTML 2Page - STMicroelectronics AN4240 Datasheet HTML 3Page - STMicroelectronics AN4240 Datasheet HTML 4Page - STMicroelectronics AN4240 Datasheet HTML 5Page - STMicroelectronics AN4240 Datasheet HTML 6Page - STMicroelectronics AN4240 Datasheet HTML 7Page - STMicroelectronics AN4240 Datasheet HTML 8Page - STMicroelectronics AN4240 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 2 / 30 page
background image
Contents
AN4240
2/30
Doc ID024209 Rev 2
Contents
1
CSE IP block overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2
AES-128 encryption and decryption overview . . . . . . . . . . . . . . . . . . . . 7
2.1
Electronic Code Book (ECB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2
Cipher Block Chaining (CBC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3
CMAC (Cipherbased Message Authentication Code) . . . . . . . . . . . . . . . . 8
3
Secure Boot procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4
Secure storage for cryptographic keys . . . . . . . . . . . . . . . . . . . . . . . . . 11
5
Application code structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1
Peripherals and tools used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.2
Code Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.2.1
Disable Software Watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.2.2
Mode Init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.2.3
PLL configuration function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2.4
CSE initialization function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.2.5
Load Crypto Keys function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2.6
App code to be added to have a secure boot . . . . . . . . . . . . . . . . . . . . 17
5.2.7
Demo application code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6
Application demo results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Appendix A
How to generate the M1-M5 parameters . . . . . . . . . . . . . . . . . . . . . 26
A.1
Memory update protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.2
Cryptographic keys used. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Appendix B
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
B.1
Reference documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com