Allow IPv6 address entry in tools>ping - Loosens valid character check
[tomato/davidwu.git] / release / src / router / openssl / crypto / evp / m_wp.c
blobc51bc2d5d1eed3f355dca8e7f7a31b3fce4a4f8c
1 /* crypto/evp/m_wp.c */
3 #include <stdio.h>
4 #include "cryptlib.h"
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)
15 { return WHIRLPOOL_Init(ctx->md_data); }
17 static int update(EVP_MD_CTX *ctx,const void *data,size_t count)
18 { return WHIRLPOOL_Update(ctx->md_data,data,count); }
20 static int final(EVP_MD_CTX *ctx,unsigned char *md)
21 { return WHIRLPOOL_Final(md,ctx->md_data); }
23 static const EVP_MD whirlpool_md=
25 NID_whirlpool,
27 WHIRLPOOL_DIGEST_LENGTH,
29 init,
30 update,
31 final,
32 NULL,
33 NULL,
34 EVP_PKEY_NULL_method,
35 WHIRLPOOL_BBLOCK/8,
36 sizeof(EVP_MD *)+sizeof(WHIRLPOOL_CTX),
39 const EVP_MD *EVP_whirlpool(void)
41 return(&whirlpool_md);
43 #endif