Figure 32-26. Continuation of output parameters
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0
0x04 0x00 0x01 KeyID
Error Bits
Reserved
1
PLAIN_TEXT 7 [0:15]
2
PLAIN_TEXT 8 [0:15]
3
PLAIN_TEXT 9 [0:15]
4
PLAIN_TEXT 10 [0:15]
5
PLAIN_TEXT 11 [0:15]
6
PLAIN_TEXT 12 [0:15]
7
PLAIN_TEXT 13 [0:15]
32.5.13.9 CMD_GENERATE_MAC
The Generate MAC command operates on a MESSAGE of length in bits of
MESAGE_LENGTH. The function uses a key (KEY_ID) to encode a MAC value (128-
bits) for the full message body.
Data is processed in 128-bit blocks through MESSAGE_LENGH number of bits, with
padding done internally on the last block if not an integer divide by 128-bit.
Output does not reflect the CMAC value until the full message has been processed, at
which point it overwrites the second page of data as indicated in
Table 32-70. Generate MAC command details
Parameter
Direction
Width
KEY_ID
IN
5
MESSAGE_LENGTH
IN
32
MESSAGE (DATA <n>)
IN
n * 128
MAC
OUT
128
MAC = CMAC
KEY, KEY_ID
(MESSAGE, MESSAGE_LENGTH)
Error Codes: ERC_NO_ERROR, ERC_SEQUENCE_ERROR, ERC_KEY_NOT_AVAILABLE,
ERC_KEY_INVALID,ERC_KEY_EMPTY, ERC_MEMORY_FAILURE, ERC_BUSY, ERC_GENERAL_ERROR
Figure 32-27. Generate MAC input parameters
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0
0x05 0x00 0x00 KeyID
Error Bits
Reserved
MESSAGE_LENGTH
1
DATA 1 [0:15]
2
DATA 2 [0:15]
Table continues on the next page...
Chapter 32 Flash Memory Module (FTFC)
MWCT101xS Series Reference Manual, Rev. 3, 07/2019
NXP Semiconductors
795
Содержание MWCT101 S Series
Страница 2: ...MWCT101xS Series Reference Manual Rev 3 07 2019 2 NXP Semiconductors...
Страница 42: ...MWCT101xS Series Reference Manual Rev 3 07 2019 42 NXP Semiconductors...
Страница 50: ...Conventions MWCT101xS Series Reference Manual Rev 3 07 2019 50 NXP Semiconductors...
Страница 70: ...Aliased bit band regions MWCT101xS Series Reference Manual Rev 3 07 2019 70 NXP Semiconductors...
Страница 78: ...Pinout diagrams MWCT101xS Series Reference Manual Rev 3 07 2019 78 NXP Semiconductors...
Страница 96: ...WCT101xS safety concept MWCT101xS Series Reference Manual Rev 3 07 2019 96 NXP Semiconductors...
Страница 130: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 130 NXP Semiconductors...
Страница 200: ...Initialization application information MWCT101xS Series Reference Manual Rev 3 07 2019 200 NXP Semiconductors...
Страница 284: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 284 NXP Semiconductors...
Страница 430: ...Functional Description MWCT101xS Series Reference Manual Rev 3 07 2019 430 NXP Semiconductors...
Страница 472: ...Application Information MWCT101xS Series Reference Manual Rev 3 07 2019 472 NXP Semiconductors...
Страница 508: ...Reset memory map and register descriptions MWCT101xS Series Reference Manual Rev 3 07 2019 508 NXP Semiconductors...
Страница 528: ...Module clocks MWCT101xS Series Reference Manual Rev 3 07 2019 528 NXP Semiconductors...
Страница 634: ...SRAM configuration MWCT101xS Series Reference Manual Rev 3 07 2019 634 NXP Semiconductors...
Страница 696: ...Initialization and application information MWCT101xS Series Reference Manual Rev 3 07 2019 696 NXP Semiconductors...
Страница 818: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 818 NXP Semiconductors...
Страница 960: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 960 NXP Semiconductors...
Страница 970: ...Memory Map and Register Definition MWCT101xS Series Reference Manual Rev 3 07 2019 970 NXP Semiconductors...
Страница 992: ...ADC calibration scheme MWCT101xS Series Reference Manual Rev 3 07 2019 992 NXP Semiconductors...
Страница 1118: ...Application information MWCT101xS Series Reference Manual Rev 3 07 2019 1118 NXP Semiconductors...
Страница 1294: ...Initialization Procedure MWCT101xS Series Reference Manual Rev 3 07 2019 1294 NXP Semiconductors...
Страница 1348: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1348 NXP Semiconductors...
Страница 1366: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1366 NXP Semiconductors...
Страница 1514: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1514 NXP Semiconductors...
Страница 1726: ...Debug and security MWCT101xS Series Reference Manual Rev 3 07 2019 1726 NXP Semiconductors...
Страница 1740: ...Initialization application information MWCT101xS Series Reference Manual Rev 3 07 2019 1740 NXP Semiconductors...
Страница 1760: ...MWCT101xS Series Reference Manual Rev 3 07 2019 1760 NXP Semiconductors...