
NUC970 Technical Reference Manual
Publication Release Date: Dec. 15, 2015
- 993 -
Revision V1.30
NUC97
0
T
E
CHNIC
A
L
RE
F
E
RE
N
CE
MA
NUA
L
SHA/HMAC Control Register (CRPT_HMAC_CTL)
Register
Offset
R/W Description
Reset Value
CRPT_HMAC_CTL
0x300 R/W SHA/HMAC Control Register
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
INSWAP
OUTSWAP
Reserved
15
14
13
12
11
10
9
8
CMPEN
Reserved
OPMODE
7
6
5
4
3
2
1
0
DMAEN
Reserved
DMALAST
HMACEN
Reserved
STOP
START
Bits
Description
[31:24]
Reserved
Reserved.
[23]
INSWAP
SHA/HMAC Engine Input Data Swap
0 = Keep the original order.
1 = The order that CPU feeds data to the accelerator will be changed from
{byte3, byte2, byte1, byte0} to {byte0, byte1, byte2, byte3}.
[22]
OUTSWAP
SHA/HMAC Engine Output Data Swap
0 = Keep the original order.
1 = The order that CPU feeds data to the accelerator will be changed from
{byte3, byte2, byte1, byte0} to {byte0, byte1, byte2, byte3}.
[21:16]
Reserved
Reserved.
[15]
CMPEN
Compare SHA/HMAC Output Digest with MTP Key
0 = Don
’t compare with MTP key.
1 = The SHA/HMAC output digest would be compared with MTP key. Since
MTP is 256 bits in size, HMAC digest comparing is not supported in HMAC-
SHA-384 and HMAC-SHA-512.
[14:11]
Reserved
Reserved.
[10:8]
OPMODE
SHA/HMAC Engine Operation Modes
0x0xx: SHA160
0x100: SHA256
0x101: SHA224
0x110: SHA512
0x111: SHA384
These bits can be read and written. But writing to
them wouldn’t take effect
as BUSY is 1.