summaryrefslogtreecommitdiff
path: root/lib/libcrypto/evp/m_wp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/evp/m_wp.c')
-rw-r--r--lib/libcrypto/evp/m_wp.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/lib/libcrypto/evp/m_wp.c b/lib/libcrypto/evp/m_wp.c
index ca53be6abbb..27a0e8ab656 100644
--- a/lib/libcrypto/evp/m_wp.c
+++ b/lib/libcrypto/evp/m_wp.c
@@ -30,18 +30,22 @@ final(EVP_MD_CTX *ctx, unsigned char *md)
}
static const EVP_MD whirlpool_md = {
- NID_whirlpool,
- 0,
- WHIRLPOOL_DIGEST_LENGTH,
- 0,
- init,
- update,
- final,
- NULL,
- NULL,
- EVP_PKEY_NULL_method,
- WHIRLPOOL_BBLOCK/8,
- sizeof(EVP_MD *) + sizeof(WHIRLPOOL_CTX),
+ .type = NID_whirlpool,
+ .pkey_type = 0,
+ .md_size = WHIRLPOOL_DIGEST_LENGTH,
+ .flags = 0,
+ .init = init,
+ .update = update,
+ .final = final,
+ .copy = NULL,
+ .cleanup = NULL,
+ .sign = NULL,
+ .verify = NULL,
+ .required_pkey_type = {
+ 0, 0, 0, 0,
+ },
+ .block_size = WHIRLPOOL_BBLOCK / 8,
+ .ctx_size = sizeof(EVP_MD *) + sizeof(WHIRLPOOL_CTX),
};
const EVP_MD *