summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2024-03-28 04:23:02 +0000
committerjsing <>2024-03-28 04:23:02 +0000
commit3c65ffb7ce164ae901015facc15123d3fae07474 (patch)
tree782c22a1809c6d9c5c7a4350b4a3bda8dd8038d5 /src
parent1e9172633a9b8defb5a4ea936d9d30ab1d031db1 (diff)
downloadopenbsd-3c65ffb7ce164ae901015facc15123d3fae07474.tar.gz
openbsd-3c65ffb7ce164ae901015facc15123d3fae07474.tar.bz2
openbsd-3c65ffb7ce164ae901015facc15123d3fae07474.zip
Fix line wrapping.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/sha/sha256.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libcrypto/sha/sha256.c b/src/lib/libcrypto/sha/sha256.c
index 00c9368114..d18e8d219d 100644
--- a/src/lib/libcrypto/sha/sha256.c
+++ b/src/lib/libcrypto/sha/sha256.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha256.c,v 1.30 2023/08/11 15:27:28 jsing Exp $ */ 1/* $OpenBSD: sha256.c,v 1.31 2024/03/28 04:23:02 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 *
@@ -131,16 +131,14 @@ Maj(SHA_LONG x, SHA_LONG y, SHA_LONG z)
131} 131}
132 132
133static inline void 133static inline void
134sha256_msg_schedule_update(SHA_LONG *W0, SHA_LONG W1, 134sha256_msg_schedule_update(SHA_LONG *W0, SHA_LONG W1, SHA_LONG W9, SHA_LONG W14)
135 SHA_LONG W9, SHA_LONG W14)
136{ 135{
137 *W0 = sigma1(W14) + W9 + sigma0(W1) + *W0; 136 *W0 = sigma1(W14) + W9 + sigma0(W1) + *W0;
138} 137}
139 138
140static inline void 139static inline void
141sha256_round(SHA_LONG *a, SHA_LONG *b, SHA_LONG *c, SHA_LONG *d, 140sha256_round(SHA_LONG *a, SHA_LONG *b, SHA_LONG *c, SHA_LONG *d, SHA_LONG *e,
142 SHA_LONG *e, SHA_LONG *f, SHA_LONG *g, SHA_LONG *h, 141 SHA_LONG *f, SHA_LONG *g, SHA_LONG *h, SHA_LONG Kt, SHA_LONG Wt)
143 SHA_LONG Kt, SHA_LONG Wt)
144{ 142{
145 SHA_LONG T1, T2; 143 SHA_LONG T1, T2;
146 144