summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-05-20 14:53:37 +0000
committertb <>2024-05-20 14:53:37 +0000
commit3be3f1f0f62004e6891d1b6f9320e574038582e2 (patch)
tree440b5966aba878b88f0aa87e9564263f6b150b06
parent05e1f254795c5c4e3a70d5ad5d3269adce132635 (diff)
downloadopenbsd-3be3f1f0f62004e6891d1b6f9320e574038582e2.tar.gz
openbsd-3be3f1f0f62004e6891d1b6f9320e574038582e2.tar.bz2
openbsd-3be3f1f0f62004e6891d1b6f9320e574038582e2.zip
cmac: zero_iv should be const
-rw-r--r--src/lib/libcrypto/cmac/cmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cmac/cmac.c b/src/lib/libcrypto/cmac/cmac.c
index 7ad3434836..5c917439a1 100644
--- a/src/lib/libcrypto/cmac/cmac.c
+++ b/src/lib/libcrypto/cmac/cmac.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cmac.c,v 1.23 2024/03/02 09:30:21 tb Exp $ */ 1/* $OpenBSD: cmac.c,v 1.24 2024/05/20 14:53:37 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -182,7 +182,7 @@ int
182CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen, 182CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,
183 const EVP_CIPHER *cipher, ENGINE *impl) 183 const EVP_CIPHER *cipher, ENGINE *impl)
184{ 184{
185 static unsigned char zero_iv[EVP_MAX_BLOCK_LENGTH]; 185 static const unsigned char zero_iv[EVP_MAX_BLOCK_LENGTH];
186 int block_size; 186 int block_size;
187 187
188 /* All zeros means restart */ 188 /* All zeros means restart */