diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-07 14:38:05 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-07 14:38:05 +0000 |
commit | 9a9973a3ce733a64de4c276c96dfa4cbe765a421 (patch) | |
tree | 9d9b9419e22875b120462fe428da9dbb29a85ba7 /lib/libcrypto/modes | |
parent | fa3af9f4d9b7c47a5daae99011451ae34c0df378 (diff) |
xts128 mode: avoid two -Wshadow warnings in the BIG_ENDIAN code path.
Found by, compile tested & ok bluhm.
Diffstat (limited to 'lib/libcrypto/modes')
-rw-r--r-- | lib/libcrypto/modes/xts128.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/modes/xts128.c b/lib/libcrypto/modes/xts128.c index dfd3bc434e0..71881227fb4 100644 --- a/lib/libcrypto/modes/xts128.c +++ b/lib/libcrypto/modes/xts128.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xts128.c,v 1.9 2022/11/26 16:08:53 tb Exp $ */ +/* $OpenBSD: xts128.c,v 1.10 2023/05/07 14:38:04 tb Exp $ */ /* ==================================================================== * Copyright (c) 2011 The OpenSSL Project. All rights reserved. * @@ -120,9 +120,9 @@ int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16], } if (enc) { for (i=0;i<len;++i) { - u8 c = inp[i]; + u8 ch = inp[i]; out[i] = scratch.c[i]; - scratch.c[i] = c; + scratch.c[i] = ch; } scratch.u[0] ^= tweak.u[0]; scratch.u[1] ^= tweak.u[1]; @@ -165,9 +165,9 @@ int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16], scratch.u[1] ^= tweak1.u[1]; for (i=0;i<len;++i) { - u8 c = inp[16+i]; + u8 ch = inp[16+i]; out[16+i] = scratch.c[i]; - scratch.c[i] = c; + scratch.c[i] = ch; } scratch.u[0] ^= tweak.u[0]; scratch.u[1] ^= tweak.u[1]; |