File indexing completed on 2025-01-18 10:05:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef OPENSSL_MD2_H
0011 # define OPENSSL_MD2_H
0012 # pragma once
0013
0014 # include <openssl/macros.h>
0015 # ifndef OPENSSL_NO_DEPRECATED_3_0
0016 # define HEADER_MD2_H
0017 # endif
0018
0019 # include <openssl/opensslconf.h>
0020
0021 # ifndef OPENSSL_NO_MD2
0022 # include <stddef.h>
0023 # ifdef __cplusplus
0024 extern "C" {
0025 # endif
0026
0027 # define MD2_DIGEST_LENGTH 16
0028
0029 # if !defined(OPENSSL_NO_DEPRECATED_3_0)
0030
0031 typedef unsigned char MD2_INT;
0032
0033 # define MD2_BLOCK 16
0034
0035 typedef struct MD2state_st {
0036 unsigned int num;
0037 unsigned char data[MD2_BLOCK];
0038 MD2_INT cksm[MD2_BLOCK];
0039 MD2_INT state[MD2_BLOCK];
0040 } MD2_CTX;
0041 # endif
0042 # ifndef OPENSSL_NO_DEPRECATED_3_0
0043 OSSL_DEPRECATEDIN_3_0 const char *MD2_options(void);
0044 OSSL_DEPRECATEDIN_3_0 int MD2_Init(MD2_CTX *c);
0045 OSSL_DEPRECATEDIN_3_0 int MD2_Update(MD2_CTX *c, const unsigned char *data,
0046 size_t len);
0047 OSSL_DEPRECATEDIN_3_0 int MD2_Final(unsigned char *md, MD2_CTX *c);
0048 OSSL_DEPRECATEDIN_3_0 unsigned char *MD2(const unsigned char *d, size_t n,
0049 unsigned char *md);
0050 # endif
0051
0052 # ifdef __cplusplus
0053 }
0054 # endif
0055 # endif
0056 #endif