diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-05-20 14:53:38 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-05-20 14:53:38 +0000 |
commit | 430afa57740c88145d912ebd5e605ebf738485d1 (patch) | |
tree | 42ffc6a0517a1022f87535b281a2f29192edece7 /lib | |
parent | 287db395cb18617df26278c63530f332c782a592 (diff) |
cmac: zero_iv should be const
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/cmac/cmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/cmac/cmac.c b/lib/libcrypto/cmac/cmac.c index 7ad34348367..5c917439a11 100644 --- a/lib/libcrypto/cmac/cmac.c +++ b/lib/libcrypto/cmac/cmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmac.c,v 1.23 2024/03/02 09:30:21 tb Exp $ */ +/* $OpenBSD: cmac.c,v 1.24 2024/05/20 14:53:37 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -182,7 +182,7 @@ int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen, const EVP_CIPHER *cipher, ENGINE *impl) { - static unsigned char zero_iv[EVP_MAX_BLOCK_LENGTH]; + static const unsigned char zero_iv[EVP_MAX_BLOCK_LENGTH]; int block_size; /* All zeros means restart */ |