summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/evp.h5
-rw-r--r--src/lib/libcrypto/evp/evp_names.c7
-rw-r--r--src/lib/libcrypto/evp/m_wp.c54
3 files changed, 2 insertions, 64 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index 7c767758da..c2b81d0576 100644
--- a/src/lib/libcrypto/evp/evp.h
+++ b/src/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp.h,v 1.136 2024/08/31 09:14:21 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.137 2024/08/31 10:38:49 tb 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 *
@@ -595,9 +595,6 @@ const EVP_MD *EVP_sm3(void);
595#ifndef OPENSSL_NO_RIPEMD 595#ifndef OPENSSL_NO_RIPEMD
596const EVP_MD *EVP_ripemd160(void); 596const EVP_MD *EVP_ripemd160(void);
597#endif 597#endif
598#ifndef OPENSSL_NO_WHIRLPOOL
599const EVP_MD *EVP_whirlpool(void);
600#endif
601const EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */ 598const EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */
602#ifndef OPENSSL_NO_DES 599#ifndef OPENSSL_NO_DES
603const EVP_CIPHER *EVP_des_ecb(void); 600const EVP_CIPHER *EVP_des_ecb(void);
diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c
index af3fd17c12..817d33602c 100644
--- a/src/lib/libcrypto/evp/evp_names.c
+++ b/src/lib/libcrypto/evp/evp_names.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_names.c,v 1.17 2024/07/29 06:05:31 tb Exp $ */ 1/* $OpenBSD: evp_names.c,v 1.18 2024/08/31 10:38:49 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -1464,11 +1464,6 @@ static const struct digest_name digest_names[] = {
1464 .digest = EVP_sha1, 1464 .digest = EVP_sha1,
1465 .alias = SN_sha1, 1465 .alias = SN_sha1,
1466 }, 1466 },
1467
1468 {
1469 .name = SN_whirlpool,
1470 .digest = EVP_whirlpool,
1471 },
1472}; 1467};
1473 1468
1474#define N_DIGEST_NAMES (sizeof(digest_names) / sizeof(digest_names[0])) 1469#define N_DIGEST_NAMES (sizeof(digest_names) / sizeof(digest_names[0]))
diff --git a/src/lib/libcrypto/evp/m_wp.c b/src/lib/libcrypto/evp/m_wp.c
deleted file mode 100644
index 6755d56e44..0000000000
--- a/src/lib/libcrypto/evp/m_wp.c
+++ /dev/null
@@ -1,54 +0,0 @@
1/* $OpenBSD: m_wp.c,v 1.14 2024/04/09 13:52:41 beck Exp $ */
2
3#include <stdio.h>
4
5#include <openssl/opensslconf.h>
6
7#ifndef OPENSSL_NO_WHIRLPOOL
8
9#include <openssl/evp.h>
10#include <openssl/objects.h>
11#include <openssl/x509.h>
12#include <openssl/whrlpool.h>
13
14#include "evp_local.h"
15
16static int
17init(EVP_MD_CTX *ctx)
18{
19 return WHIRLPOOL_Init(ctx->md_data);
20}
21
22static int
23update(EVP_MD_CTX *ctx, const void *data, size_t count)
24{
25 return WHIRLPOOL_Update(ctx->md_data, data, count);
26}
27
28static int
29final(EVP_MD_CTX *ctx, unsigned char *md)
30{
31 return WHIRLPOOL_Final(md, ctx->md_data);
32}
33
34static const EVP_MD whirlpool_md = {
35 .type = NID_whirlpool,
36 .pkey_type = 0,
37 .md_size = WHIRLPOOL_DIGEST_LENGTH,
38 .flags = 0,
39 .init = init,
40 .update = update,
41 .final = final,
42 .copy = NULL,
43 .cleanup = NULL,
44 .block_size = WHIRLPOOL_BBLOCK / 8,
45 .ctx_size = sizeof(EVP_MD *) + sizeof(WHIRLPOOL_CTX),
46};
47
48const EVP_MD *
49EVP_whirlpool(void)
50{
51 return (&whirlpool_md);
52}
53LCRYPTO_ALIAS(EVP_whirlpool);
54#endif