Add legacy include guards to public header files
[openssl.git] / include / openssl / md2.h
1 /*
2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #ifndef OPENSSL_MD2_H
11 # define OPENSSL_MD2_H
12 # pragma once
13
14 # include <openssl/macros.h>
15 # if !OPENSSL_API_3
16 #  define HEADER_MD2_H
17 # endif
18
19 # include <openssl/opensslconf.h>
20
21 # ifndef OPENSSL_NO_MD2
22 # include <stddef.h>
23 # ifdef  __cplusplus
24 extern "C" {
25 # endif
26
27 typedef unsigned char MD2_INT;
28
29 # define MD2_DIGEST_LENGTH       16
30 # define MD2_BLOCK               16
31
32 typedef struct MD2state_st {
33     unsigned int num;
34     unsigned char data[MD2_BLOCK];
35     MD2_INT cksm[MD2_BLOCK];
36     MD2_INT state[MD2_BLOCK];
37 } MD2_CTX;
38
39 const char *MD2_options(void);
40 int MD2_Init(MD2_CTX *c);
41 int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len);
42 int MD2_Final(unsigned char *md, MD2_CTX *c);
43 unsigned char *MD2(const unsigned char *d, size_t n, unsigned char *md);
44
45 # ifdef  __cplusplus
46 }
47 # endif
48 # endif
49
50 #endif