From 627637adc351a3b2bf7afd98ed485857adfe46d1 Mon Sep 17 00:00:00 2001 From: jsing Date: Sun, 28 May 2023 14:49:21 +0000 Subject: [PATCH] Expand occurrences of HASH_CTX that were previously missed. No change in generated assembly. --- lib/libcrypto/sha/sha256.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/sha/sha256.c b/lib/libcrypto/sha/sha256.c index 5b536bfba76..ffc5ff7da51 100644 --- a/lib/libcrypto/sha/sha256.c +++ b/lib/libcrypto/sha/sha256.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha256.c,v 1.20 2023/05/28 14:14:33 jsing Exp $ */ +/* $OpenBSD: sha256.c,v 1.21 2023/05/28 14:49:21 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. * @@ -70,6 +70,7 @@ #define HASH_CBLOCK SHA_CBLOCK #define HASH_BLOCK_DATA_ORDER sha256_block_data_order + #ifndef SHA256_ASM static #endif @@ -397,7 +398,7 @@ SHA256_Init(SHA256_CTX *c) } int -SHA256_Update(HASH_CTX *c, const void *data_, size_t len) +SHA256_Update(SHA256_CTX *c, const void *data_, size_t len) { const unsigned char *data = data_; unsigned char *p; @@ -451,13 +452,13 @@ SHA256_Update(HASH_CTX *c, const void *data_, size_t len) } void -SHA256_Transform(HASH_CTX *c, const unsigned char *data) +SHA256_Transform(SHA256_CTX *c, const unsigned char *data) { sha256_block_data_order(c, data, 1); } int -SHA256_Final(unsigned char *md, HASH_CTX *c) +SHA256_Final(unsigned char *md, SHA256_CTX *c) { unsigned char *p = (unsigned char *)c->data; size_t n = c->num; -- 2.20.1