FAQ
- M051 Base Series(95)
- M0518 Series(97)
- M0519 Series(43)
- M0564 Series(1)
- Mini51 Base Series(90)
- Nano100/102 Base Series(101)
- Nano103 Base Series(10)
- Nano110/112 LCD Series(100)
- Nano120 USB Series(111)
- Nano130 Advanced Series(110)
- NUC029 Series(94)
- NUC100/200 Advanced Series(102)
- NUC120/122/123/220 USB Series(116)
- NUC121/125 Series(1)
- NUC126 USB Series(2)
- NUC130/230 CAN Series(103)
- NUC131/NUC1311 CAN Series(98)
- NUC140/240 Connectivity Series(114)
常見問答
請問M480的AES範例程式輸出結果為什麼跟網路工具的不同? http://testprotect.com/appendix/AEScalc 網路工具 日期:2018-11-27
從網路工具的例子來說:
Key: 000102030405060708090a0b0c0d0e0f
Plaintext: 00112233445566778899aabbccddeeff
Ciphertext: 69c4e0d86a7b0430d8cdb78070b4c55a
對應到AES暫存器的key輸入為:
CRYPTO_AESn_KEY0 = 0x00010203
CRYPTO_AESn_KEY1 = 0x04050607
CRYPTO_AESn_KEY2 = 0x08090a0b
CRYPTO_AESn_KEY3 = 0x0c0d0e0f
輸入數據:
CRYPTO_AES_DATIN = { 0x00112233, 0x44556677, 0x8899aabb, 0xccddeeff }
會得到輸出數據為:
CRYPTO_AES_DATOUT = { 0x69c4e0d8, 0x6a7b0430, 0x d8cdb780, 0x70b4c55a }
需注意AES的數據處理是以WORD的變數型態進行處理,與BYTE的變數型態會有不同的LSB與MSB。
| 產品: | 微控制器 ,Arm Cortex-M4 微控制器 ,M481 Base 系列 ,M482 USB FS OTG 系列 ,M483 CAN 系列 ,M484 USB HS OTG 系列 ,M485 Crypto 系列 ,M487 Ethernet 系列 |
|---|---|
| 應用: | |
| 功能: |