From 7ddc619ceef43c35386d776c57d6979124df6da8 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 9 May 2026 07:03:49 +0000 Subject: Correct argument type for SHA context. These are SHA_CTX not SHA256_CTX. --- src/lib/libcrypto/sha/sha1_aarch64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/sha/sha1_aarch64.c b/src/lib/libcrypto/sha/sha1_aarch64.c index 04c87761e0..a9fb8235c6 100644 --- a/src/lib/libcrypto/sha/sha1_aarch64.c +++ b/src/lib/libcrypto/sha/sha1_aarch64.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha1_aarch64.c,v 1.1 2025/06/28 12:51:08 jsing Exp $ */ +/* $OpenBSD: sha1_aarch64.c,v 1.2 2026/05/09 07:03:49 jsing Exp $ */ /* * Copyright (c) 2025 Joel Sing * @@ -19,11 +19,11 @@ #include "crypto_arch.h" -void sha1_block_ce(SHA256_CTX *ctx, const void *in, size_t num); -void sha1_block_generic(SHA256_CTX *ctx, const void *in, size_t num); +void sha1_block_ce(SHA_CTX *ctx, const void *in, size_t num); +void sha1_block_generic(SHA_CTX *ctx, const void *in, size_t num); void -sha1_block_data_order(SHA256_CTX *ctx, const void *in, size_t num) +sha1_block_data_order(SHA_CTX *ctx, const void *in, size_t num) { if ((crypto_cpu_caps_aarch64 & CRYPTO_CPU_CAPS_AARCH64_SHA1) != 0) { sha1_block_ce(ctx, in, num); -- cgit v1.2.3-55-g6feb