From 4130e755f5f2f40ee1a99467f38f8be5951ff212 Mon Sep 17 00:00:00 2001 From: Diab Neiroukh Date: Tue, 26 Jan 2021 16:04:57 +0000 Subject: [PATCH] crypto: qcedev: Const-ify the SHA initialisation vectors Change-Id: Id199c8b1cbfea15e16e7d540c8f079d66cd49f70 Suggested-by: Daniel Micay Signed-off-by: Diab Neiroukh --- drivers/crypto/msm/qcedev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/msm/qcedev.c b/drivers/crypto/msm/qcedev.c index 12117d6ee7af..b1b19d7734e7 100644 --- a/drivers/crypto/msm/qcedev.c +++ b/drivers/crypto/msm/qcedev.c @@ -37,13 +37,13 @@ #define CACHE_LINE_SIZE 32 #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, 0x98, 0xBA, 0xDC, 0xFE, 0x10, 0x32, 0x54, 0x76, 0xC3, 0xD2, 0xE1, 0xF0 }; /* 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, 0x3C, 0x6E, 0xF3, 0x72, 0xA5, 0x4F, 0xF5, 0x3A, 0x51, 0x0E, 0x52, 0x7F, 0x9B, 0x05, 0x68, 0x8C,