source: asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfssl/openssl/md5.h@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.1 KB
Line 
1/* md5.h for openssl */
2
3
4#ifndef WOLFSSL_MD5_H_
5#define WOLFSSL_MD5_H_
6
7#include <wolfssl/wolfcrypt/settings.h>
8
9#ifndef NO_MD5
10
11#include <wolfssl/wolfcrypt/hash.h>
12
13#ifdef WOLFSSL_PREFIX
14#include "prefix_md5.h"
15#endif
16
17#ifdef __cplusplus
18 extern "C" {
19#endif
20
21
22typedef struct WOLFSSL_MD5_CTX {
23 int holder[28 + (WC_ASYNC_DEV_SIZE / sizeof(int))]; /* big enough to hold wolfcrypt md5, but check on init */
24} WOLFSSL_MD5_CTX;
25
26WOLFSSL_API int wolfSSL_MD5_Init(WOLFSSL_MD5_CTX*);
27WOLFSSL_API int wolfSSL_MD5_Update(WOLFSSL_MD5_CTX*, const void*, unsigned long);
28WOLFSSL_API int wolfSSL_MD5_Final(unsigned char*, WOLFSSL_MD5_CTX*);
29
30
31typedef WOLFSSL_MD5_CTX MD5_CTX;
32
33#define MD5_Init wolfSSL_MD5_Init
34#define MD5_Update wolfSSL_MD5_Update
35#define MD5_Final wolfSSL_MD5_Final
36
37#ifdef OPENSSL_EXTRA_BSD
38 #define MD5Init wolfSSL_MD5_Init
39 #define MD5Update wolfSSL_MD5_Update
40 #define MD5Final wolfSSL_MD5_Final
41#endif
42
43#ifndef MD5
44#define MD5(d, n, md) wc_Md5Hash((d), (n), (md))
45#endif
46
47#define MD5_DIGEST_LENGTH MD5_DIGEST_SIZE
48
49#ifdef __cplusplus
50 } /* extern "C" */
51#endif
52
53#endif /* NO_MD5 */
54
55#endif /* WOLFSSL_MD5_H_ */
Note: See TracBrowser for help on using the repository browser.