summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2026-05-09 07:03:49 +0000
committerjsing <>2026-05-09 07:03:49 +0000
commit7ddc619ceef43c35386d776c57d6979124df6da8 (patch)
tree728e08b88c3eaeebc2ee6628a0c2dd0664bc4916
parent9308ae7c309e076d15b1f28c092dc3848b684aa7 (diff)
downloadopenbsd-7ddc619ceef43c35386d776c57d6979124df6da8.tar.gz
openbsd-7ddc619ceef43c35386d776c57d6979124df6da8.tar.bz2
openbsd-7ddc619ceef43c35386d776c57d6979124df6da8.zip
Correct argument type for SHA context.
These are SHA_CTX not SHA256_CTX.
-rw-r--r--src/lib/libcrypto/sha/sha1_aarch64.c8
1 files changed, 4 insertions, 4 deletions
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 @@
1/* $OpenBSD: sha1_aarch64.c,v 1.1 2025/06/28 12:51:08 jsing Exp $ */ 1/* $OpenBSD: sha1_aarch64.c,v 1.2 2026/05/09 07:03:49 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2025 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2025 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -19,11 +19,11 @@
19 19
20#include "crypto_arch.h" 20#include "crypto_arch.h"
21 21
22void sha1_block_ce(SHA256_CTX *ctx, const void *in, size_t num); 22void sha1_block_ce(SHA_CTX *ctx, const void *in, size_t num);
23void sha1_block_generic(SHA256_CTX *ctx, const void *in, size_t num); 23void sha1_block_generic(SHA_CTX *ctx, const void *in, size_t num);
24 24
25void 25void
26sha1_block_data_order(SHA256_CTX *ctx, const void *in, size_t num) 26sha1_block_data_order(SHA_CTX *ctx, const void *in, size_t num)
27{ 27{
28 if ((crypto_cpu_caps_aarch64 & CRYPTO_CPU_CAPS_AARCH64_SHA1) != 0) { 28 if ((crypto_cpu_caps_aarch64 & CRYPTO_CPU_CAPS_AARCH64_SHA1) != 0) {
29 sha1_block_ce(ctx, in, num); 29 sha1_block_ce(ctx, in, num);