2 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
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
11 # define OPENSSL_MD2_H
14 # include <openssl/macros.h>
15 # ifndef OPENSSL_NO_DEPRECATED_3_0
19 # include <openssl/opensslconf.h>
21 # ifndef OPENSSL_NO_MD2
27 # define MD2_DIGEST_LENGTH 16
29 # if !defined(OPENSSL_NO_DEPRECATED_3_0)
31 typedef unsigned char MD2_INT;
35 typedef struct MD2state_st {
37 unsigned char data[MD2_BLOCK];
38 MD2_INT cksm[MD2_BLOCK];
39 MD2_INT state[MD2_BLOCK];
42 # ifndef OPENSSL_NO_DEPRECATED_3_0
43 OSSL_DEPRECATEDIN_3_0 const char *MD2_options(void);
44 OSSL_DEPRECATEDIN_3_0 int MD2_Init(MD2_CTX *c);
45 OSSL_DEPRECATEDIN_3_0 int MD2_Update(MD2_CTX *c, const unsigned char *data,
47 OSSL_DEPRECATEDIN_3_0 int MD2_Final(unsigned char *md, MD2_CTX *c);
48 OSSL_DEPRECATEDIN_3_0 unsigned char *MD2(const unsigned char *d, size_t n,