summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2023-03-26 19:30:45 +0000
committerjsing <>2023-03-26 19:30:45 +0000
commit395b320a6c8bf38513238b0f2214effae7c9b704 (patch)
treeea5637ddcf022d5915a770035750066526100ec0 /src
parent97d37d10e2c0063b05e5984e295e235a52395af4 (diff)
downloadopenbsd-395b320a6c8bf38513238b0f2214effae7c9b704.tar.gz
openbsd-395b320a6c8bf38513238b0f2214effae7c9b704.tar.bz2
openbsd-395b320a6c8bf38513238b0f2214effae7c9b704.zip
Replace HASH_BLOCK_DATA_ORDER with sha1_block_data_order.
The only reason to use HASH_BLOCK_DATA_ORDER in the implementation is to make the code harder to read.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/sha/sha1dgst.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/sha/sha1dgst.c b/src/lib/libcrypto/sha/sha1dgst.c
index 4a93a56a6f..604b0d8ba5 100644
--- a/src/lib/libcrypto/sha/sha1dgst.c
+++ b/src/lib/libcrypto/sha/sha1dgst.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha1dgst.c,v 1.21 2023/03/26 19:22:35 jsing Exp $ */ 1/* $OpenBSD: sha1dgst.c,v 1.22 2023/03/26 19:30:45 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -92,7 +92,7 @@
92#ifndef SHA1_ASM 92#ifndef SHA1_ASM
93static 93static
94#endif 94#endif
95void sha1_block_data_order (SHA_CTX *c, const void *p, size_t num); 95void sha1_block_data_order(SHA_CTX *c, const void *p, size_t num);
96 96
97#include "md32_common.h" 97#include "md32_common.h"
98 98
@@ -188,7 +188,7 @@ SHA1_Init(SHA_CTX *c)
188#if !defined(SHA1_ASM) 188#if !defined(SHA1_ASM)
189#include <endian.h> 189#include <endian.h>
190static void 190static void
191HASH_BLOCK_DATA_ORDER(SHA_CTX *c, const void *p, size_t num) 191sha1_block_data_order(SHA_CTX *c, const void *p, size_t num)
192{ 192{
193 const unsigned char *data = p; 193 const unsigned char *data = p;
194 unsigned MD32_REG_T A, B,C, D,E, T, l; 194 unsigned MD32_REG_T A, B,C, D,E, T, l;
@@ -417,7 +417,7 @@ HASH_BLOCK_DATA_ORDER(SHA_CTX *c, const void *p, size_t num)
417 417
418#if !defined(SHA1_ASM) 418#if !defined(SHA1_ASM)
419static void 419static void
420HASH_BLOCK_DATA_ORDER(SHA_CTX *c, const void *p, size_t num) 420sha1_block_data_order(SHA_CTX *c, const void *p, size_t num)
421{ 421{
422 const unsigned char *data = p; 422 const unsigned char *data = p;
423 unsigned MD32_REG_T A, B,C, D,E, T, l; 423 unsigned MD32_REG_T A, B,C, D,E, T, l;