summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2023-03-29 05:11:37 +0000
committerjsing <>2023-03-29 05:11:37 +0000
commitf8ba5010990dd811db416b2bd3faa3de528187eb (patch)
treeba225e428a596ffea803318e35eabba8e0de91eb /src
parent1a4c71afc95e1d79926c2f18f6bca0c55256b606 (diff)
downloadopenbsd-f8ba5010990dd811db416b2bd3faa3de528187eb.tar.gz
openbsd-f8ba5010990dd811db416b2bd3faa3de528187eb.tar.bz2
openbsd-f8ba5010990dd811db416b2bd3faa3de528187eb.zip
Use multiple statements instead of a statement with multiple expressions.
No change in generated assembly.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/sha/sha512.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/sha/sha512.c b/src/lib/libcrypto/sha/sha512.c
index 042badecd5..5dfe61b4a5 100644
--- a/src/lib/libcrypto/sha/sha512.c
+++ b/src/lib/libcrypto/sha/sha512.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha512.c,v 1.22 2023/03/27 10:27:12 jsing Exp $ */ 1/* $OpenBSD: sha512.c,v 1.23 2023/03/29 05:11:37 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -535,9 +535,10 @@ void
535SHA512_Transform(SHA512_CTX *c, const unsigned char *data) 535SHA512_Transform(SHA512_CTX *c, const unsigned char *data)
536{ 536{
537#ifndef SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA 537#ifndef SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA
538 if ((size_t)data % sizeof(c->u.d[0]) != 0) 538 if ((size_t)data % sizeof(c->u.d[0]) != 0) {
539 memcpy(c->u.p, data, sizeof(c->u.p)), 539 memcpy(c->u.p, data, sizeof(c->u.p));
540 data = c->u.p; 540 data = c->u.p;
541 }
541#endif 542#endif
542 sha512_block_data_order(c, data, 1); 543 sha512_block_data_order(c, data, 1);
543} 544}