File indexing completed on 2025-01-18 10:05:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef OPENSSL_MD5_H
0011 # define OPENSSL_MD5_H
0012 # pragma once
0013
0014 # include <openssl/macros.h>
0015 # ifndef OPENSSL_NO_DEPRECATED_3_0
0016 # define HEADER_MD5_H
0017 # endif
0018
0019 # include <openssl/opensslconf.h>
0020
0021 # ifndef OPENSSL_NO_MD5
0022 # include <openssl/e_os2.h>
0023 # include <stddef.h>
0024 # ifdef __cplusplus
0025 extern "C" {
0026 # endif
0027
0028 # define MD5_DIGEST_LENGTH 16
0029
0030 # if !defined(OPENSSL_NO_DEPRECATED_3_0)
0031
0032
0033
0034
0035
0036 # define MD5_LONG unsigned int
0037
0038 # define MD5_CBLOCK 64
0039 # define MD5_LBLOCK (MD5_CBLOCK/4)
0040
0041 typedef struct MD5state_st {
0042 MD5_LONG A, B, C, D;
0043 MD5_LONG Nl, Nh;
0044 MD5_LONG data[MD5_LBLOCK];
0045 unsigned int num;
0046 } MD5_CTX;
0047 # endif
0048 # ifndef OPENSSL_NO_DEPRECATED_3_0
0049 OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
0050 OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
0051 OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
0052 OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
0053 unsigned char *md);
0054 OSSL_DEPRECATEDIN_3_0 void MD5_Transform(MD5_CTX *c, const unsigned char *b);
0055 # endif
0056
0057 # ifdef __cplusplus
0058 }
0059 # endif
0060 # endif
0061
0062 #endif