crypto: qcedev: Const-ify the SHA initialisation vectors

Change-Id: Id199c8b1cbfea15e16e7d540c8f079d66cd49f70
Suggested-by: Daniel Micay <danielmicay@gmail.com>
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
This commit is contained in:
Diab Neiroukh 2021-01-26 16:04:57 +00:00 committed by Giovanni Ricca
parent aaf72d0ae8
commit 9626eb45d6
No known key found for this signature in database

View File

@ -37,13 +37,13 @@
#define CACHE_LINE_SIZE 32 #define CACHE_LINE_SIZE 32
#define CE_SHA_BLOCK_SIZE SHA256_BLOCK_SIZE #define CE_SHA_BLOCK_SIZE SHA256_BLOCK_SIZE
static uint8_t _std_init_vector_sha1_uint8[] = { static const uint8_t _std_init_vector_sha1_uint8[] = {
0x67, 0x45, 0x23, 0x01, 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01, 0xEF, 0xCD, 0xAB, 0x89,
0x98, 0xBA, 0xDC, 0xFE, 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE, 0x10, 0x32, 0x54, 0x76,
0xC3, 0xD2, 0xE1, 0xF0 0xC3, 0xD2, 0xE1, 0xF0
}; };
/* standard initialization vector for SHA-256, source: FIPS 180-2 */ /* standard initialization vector for SHA-256, source: FIPS 180-2 */
static uint8_t _std_init_vector_sha256_uint8[] = { static const uint8_t _std_init_vector_sha256_uint8[] = {
0x6A, 0x09, 0xE6, 0x67, 0xBB, 0x67, 0xAE, 0x85, 0x6A, 0x09, 0xE6, 0x67, 0xBB, 0x67, 0xAE, 0x85,
0x3C, 0x6E, 0xF3, 0x72, 0xA5, 0x4F, 0xF5, 0x3A, 0x3C, 0x6E, 0xF3, 0x72, 0xA5, 0x4F, 0xF5, 0x3A,
0x51, 0x0E, 0x52, 0x7F, 0x9B, 0x05, 0x68, 0x8C, 0x51, 0x0E, 0x52, 0x7F, 0x9B, 0x05, 0x68, 0x8C,