]>
git.proxmox.com Git - efi-boot-shim.git/blob - Cryptlib/OpenSSL/crypto/evp/m_wp.c
1 /* crypto/evp/m_wp.c */
6 #ifndef OPENSSL_NO_WHIRLPOOL
8 # include <openssl/evp.h>
9 # include <openssl/objects.h>
10 # include <openssl/x509.h>
11 # include <openssl/whrlpool.h>
12 # include "evp_locl.h"
14 static int init(EVP_MD_CTX
*ctx
)
16 return WHIRLPOOL_Init(ctx
->md_data
);
19 static int update(EVP_MD_CTX
*ctx
, const void *data
, size_t count
)
21 return WHIRLPOOL_Update(ctx
->md_data
, data
, count
);
24 static int final(EVP_MD_CTX
*ctx
, unsigned char *md
)
26 return WHIRLPOOL_Final(md
, ctx
->md_data
);
29 static const EVP_MD whirlpool_md
= {
32 WHIRLPOOL_DIGEST_LENGTH
,
41 sizeof(EVP_MD
*) + sizeof(WHIRLPOOL_CTX
),
44 const EVP_MD
*EVP_whirlpool(void)
46 return (&whirlpool_md
);