diff options
| author | jsing <> | 2023-03-29 05:11:37 +0000 |
|---|---|---|
| committer | jsing <> | 2023-03-29 05:11:37 +0000 |
| commit | 38bdf91e7a9fcb55b3b77885c22d5efe098df85c (patch) | |
| tree | ba225e428a596ffea803318e35eabba8e0de91eb /src/lib/libcrypto/sha/sha512.c | |
| parent | ad336b0d1b129ee64437ead164c4b6d653f849bf (diff) | |
| download | openbsd-38bdf91e7a9fcb55b3b77885c22d5efe098df85c.tar.gz openbsd-38bdf91e7a9fcb55b3b77885c22d5efe098df85c.tar.bz2 openbsd-38bdf91e7a9fcb55b3b77885c22d5efe098df85c.zip | |
Use multiple statements instead of a statement with multiple expressions.
No change in generated assembly.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/sha/sha512.c | 9 |
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 | |||
| 535 | SHA512_Transform(SHA512_CTX *c, const unsigned char *data) | 535 | SHA512_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 | } |
