summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);