summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/m_wp.c
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2015-08-02 21:54:22 +0000
committercvs2svn <admin@example.com>2015-08-02 21:54:22 +0000
commited3760bf4be4a96a89233fb8f8b84a0d44725862 (patch)
tree5609c82060f75c53af0a7641d9b33a88574876cd /src/lib/libcrypto/evp/m_wp.c
parentf8b563fb5ba1524c821d37308f4e6abfc866bc3f (diff)
downloadopenbsd-OPENBSD_5_8_BASE.tar.gz
openbsd-OPENBSD_5_8_BASE.tar.bz2
openbsd-OPENBSD_5_8_BASE.zip
This commit was manufactured by cvs2git to create tag 'OPENBSD_5_8_BASE'.OPENBSD_5_8_BASE
Diffstat (limited to 'src/lib/libcrypto/evp/m_wp.c')
-rw-r--r--src/lib/libcrypto/evp/m_wp.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/lib/libcrypto/evp/m_wp.c b/src/lib/libcrypto/evp/m_wp.c
deleted file mode 100644
index 3f543ac0af..0000000000
--- a/src/lib/libcrypto/evp/m_wp.c
+++ /dev/null
@@ -1,56 +0,0 @@
1/* $OpenBSD: m_wp.c,v 1.8 2014/07/13 09:30:02 miod 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
14static int
15init(EVP_MD_CTX *ctx)
16{
17 return WHIRLPOOL_Init(ctx->md_data);
18}
19
20static int
21update(EVP_MD_CTX *ctx, const void *data, size_t count)
22{
23 return WHIRLPOOL_Update(ctx->md_data, data, count);
24}
25
26static int
27final(EVP_MD_CTX *ctx, unsigned char *md)
28{
29 return WHIRLPOOL_Final(md, ctx->md_data);
30}
31
32static const EVP_MD whirlpool_md = {
33 .type = NID_whirlpool,
34 .pkey_type = 0,
35 .md_size = WHIRLPOOL_DIGEST_LENGTH,
36 .flags = 0,
37 .init = init,
38 .update = update,
39 .final = final,
40 .copy = NULL,
41 .cleanup = NULL,
42 .sign = NULL,
43 .verify = NULL,
44 .required_pkey_type = {
45 0, 0, 0, 0,
46 },
47 .block_size = WHIRLPOOL_BBLOCK / 8,
48 .ctx_size = sizeof(EVP_MD *) + sizeof(WHIRLPOOL_CTX),
49};
50
51const EVP_MD *
52EVP_whirlpool(void)
53{
54 return (&whirlpool_md);
55}
56#endif