31 #ifndef SHA2SW_COMMON_H_ 32 #define SHA2SW_COMMON_H_ 56 #if SHA2SW_SUPPORT_SHA2_224 == 1 57 SHA2SW_HASH_TYPE_224 = 1,
59 #if SHA2SW_SUPPORT_SHA2_384 == 1 60 SHA2SW_HASH_TYPE_384 = 2,
68 #define SHA2SW_224_OR_256_ROUNDS ((uint8_t)64u) 73 #define SHA2SW_384_OR_512_ROUNDS ((uint8_t)80u) 78 #define SHA2SW_224_OR_256_BLOCK_SIZE ((uint8_t)64u) 83 #define SHA2SW_384_OR_512_BLOCK_SIZE ((uint8_t)128u) 89 #define SHA2SW_MAX_MESSAGE_BIT_LENGTH ((uint32_t)0x20000000u) 105 #define SHA2SW_STATUS_SUCCESS ((int_fast16_t)0) 113 #define SHA2SW_STATUS_ERROR ((int_fast16_t)-100) 120 #define SHA2SW_STATUS_UNSUPPORTED ((int_fast16_t)-102) 127 #define SHA2SW_STATUS_LENGTH_TOO_LARGE ((int_fast16_t)-103) 134 #define SHA2SW_STATUS_NULL_INPUT ((int_fast16_t)-104) Definition: sha2sw_common.h:55
Definition: sha2sw_common.h:62
SHA2SW_HashType
Enum for the hash types supported by the library.
Definition: sha2sw_common.h:53