
Message Digest Hardware Accelerator (MDHA)
Freescale Semiconductor
33-5
33.2.1.1
Invalid Modes
The following mode combinations trigger an interrupt to the interrupt controller and set the mode error bit
in the MDHA interrupt status register.
5
INIT
Initialization. Performs algorithm specific initialization of the digest registers. Most operations require this bit to be
set. Only static operations that are continuing from a known intermediate hash value should clear this bit.
0 Do not perform initialization
1 Initialize the selected algorithm’s starting registers
4–3
MAC
Message authentication code. Performs message authentication on messages. Requires keys loaded into the
context and key registers.
00 Do not perform MAC
01 Perform HMAC
10 Perform EHMAC
11 Reserved
2
PDATA
Pad data bit. Performs automatic message padding on the current partial message block.
0 Do not perform padding
1 Perform padding
1
Reserved, should be cleared.
0
ALG
Algorithm. Selects which algorithm the MDHA module uses
0 Secure Hash Algorithm (SHA-1)
1 Message Digest 5 (MD5)
Table 33-3. Invalid MDMR Bit Settings
MDMR bit settings
Comments
Setting any reserved bits.
—
IPAD=1
OPAD=1
Asserting both of the signals at the same time causes a mode to
occur that the MDHA is not capable of performing. These two
modes must be performed separately.
IPAD=1
PDATA=1
According to HMAC and EHMAC standards no padding is done
to the data when the IPAD function is performed.
OPAD=1
PDATA=1
According to HMAC and EHMAC standards no padding is done
to the data when the OPAD function is performed.
MAC=10
(EHMAC)
IPAD=1
MDHA requires that the IPAD step be performed as a separate
hash operation than message authentication.
MAC=10
(EHMAC)
OPAD=1
MDHA requires that the OPAD step be performed as a separate
hash operation than message authentication.
MAC=10
(EHMAC)
ALG=1
(MD5)
The standard for EHMAC is only defined for the SHA-1 algorithm.
MAC=01
(HMAC)
IPAD
MDHA requires that the IPAD step be performed as a separate
hash operation than message authentication.
MAC=01
(HMAC)
OPAD
MDHA requires that the OPAD step be performed as a separate
hash operation than message authentication.
Table 33-2. MDMR Field Descriptions (continued)
Field
Description
MCF5329 Reference Manual, Rev 3
Содержание MCF5329
Страница 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 126: ...Enhanced Multiply Accumulate Unit EMAC 4 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 564: ...Liquid Crystal Display Controller LCDC 22 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 692: ...Programmable Interrupt Timers PIT0 PIT3 28 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 720: ...Queued Serial Peripheral Interface QSPI 30 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 790: ...Message Digest Hardware Accelerator MDHA 33 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 902: ...Register Memory Map Quick Reference A 26 Freescale Semiconductor MCF5329 Reference Manual Rev 3...