![]() |
![]() |
CC27xxDriverLibrary
|
Build-time configuration options for the SHA2 SW module. More...
![]() |
Macros | |
#define | SHA2SW_VALIDATE_INPUTS (1) |
Include support for SHA2 224. More... | |
#define | SHA2SW_FAST_MESSAGE_SCHEDULE (1) |
Use a faster implementation of the message schedule which is slightly larger in code size. More... | |
#define | SHA2SW_FAST_WORKING_VARS (1) |
Use a faster implementation of the working variables a-h which is slightly larger in code size. More... | |
#define | SHA2SW_USE_ARMCLE (1) |
Use portions of the constants of the 512 algorithm to support the 256 and 224 algorithms. More... | |
Build-time configuration options for the SHA2 SW module.
#define SHA2SW_VALIDATE_INPUTS (1) |
Include support for SHA2 224.
Include support for SHA2 384.
If defined, SHA2SW library will check inputs for invalid conditions. Otherwise, parameters will not be checked.
If SHA2SW_VALIDATE_INPUTS is not defined then:
Not defining this value will reduce code size.
#define SHA2SW_FAST_MESSAGE_SCHEDULE (1) |
Use a faster implementation of the message schedule which is slightly larger in code size.
Expected time savings of 2,600 cycles or more per input block. Code size cost for enabling may be as little as 8 bytes.
#define SHA2SW_FAST_WORKING_VARS (1) |
Use a faster implementation of the working variables a-h which is slightly larger in code size.
Expected time savings of 750 cycles or more per input block. Code size cost for enabling may be as little as 24 bytes.
#define SHA2SW_USE_ARMCLE (1) |
Use portions of the constants of the 512 algorithm to support the 256 and 224 algorithms.
The initial hash values as well as the round constants (K) of 512/384 are extensions of the values used for 256/224. Thus, const data space can be saved by using the 512/384 constants for the 256/224 algorithm. However, the 256/224 algorithm must spend extra cycles to skip over unneeded constants.
Expected savings of at least 288 bytes of const data at the cost of a few bytes of code space and small change in performance.
Use Arm(R) C Language Extensions
Use ARM(R) CLE to directly access op codes which can improve code size and/or performance.