summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbcook <>2025-05-18 09:21:29 +0000
committerbcook <>2025-05-18 09:21:29 +0000
commita0c7af9760fd2fcb13036f23099c8ac3bfa35e9d (patch)
tree9e510eb6d46f7b0580fa5a35a42a44a360a55866 /src
parent0ac35676ac1491f404111288e14d55d54ca52445 (diff)
downloadopenbsd-a0c7af9760fd2fcb13036f23099c8ac3bfa35e9d.tar.gz
openbsd-a0c7af9760fd2fcb13036f23099c8ac3bfa35e9d.tar.bz2
openbsd-a0c7af9760fd2fcb13036f23099c8ac3bfa35e9d.zip
add missing u64/uint64_t conversion
ok jsing@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/modes/ccm128.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/modes/ccm128.c b/src/lib/libcrypto/modes/ccm128.c
index c4df198c0b..e27681ee62 100644
--- a/src/lib/libcrypto/modes/ccm128.c
+++ b/src/lib/libcrypto/modes/ccm128.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ccm128.c,v 1.11 2025/05/18 09:05:59 jsing Exp $ */ 1/* $OpenBSD: ccm128.c,v 1.12 2025/05/18 09:21:29 bcook Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -230,8 +230,8 @@ CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx,
230 temp.u[1] ^= scratch.u[1]; 230 temp.u[1] ^= scratch.u[1];
231 memcpy(out, temp.c, 16); 231 memcpy(out, temp.c, 16);
232#else 232#else
233 ((uint64_t *)out)[0] = scratch.u[0] ^ ((u64 *)inp)[0]; 233 ((uint64_t *)out)[0] = scratch.u[0] ^ ((uint64_t *)inp)[0];
234 ((uint64_t *)out)[1] = scratch.u[1] ^ ((u64 *)inp)[1]; 234 ((uint64_t *)out)[1] = scratch.u[1] ^ ((uint64_t *)inp)[1];
235#endif 235#endif
236 inp += 16; 236 inp += 16;
237 out += 16; 237 out += 16;