File indexing completed on 2025-01-18 10:05:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef OPENSSL_RIPEMD_H
0011 # define OPENSSL_RIPEMD_H
0012 # pragma once
0013
0014 # include <openssl/macros.h>
0015 # ifndef OPENSSL_NO_DEPRECATED_3_0
0016 # define HEADER_RIPEMD_H
0017 # endif
0018
0019 # include <openssl/opensslconf.h>
0020
0021 # ifndef OPENSSL_NO_RMD160
0022 # include <openssl/e_os2.h>
0023 # include <stddef.h>
0024
0025 # define RIPEMD160_DIGEST_LENGTH 20
0026
0027 # ifdef __cplusplus
0028 extern "C" {
0029 # endif
0030 # if !defined(OPENSSL_NO_DEPRECATED_3_0)
0031
0032 # define RIPEMD160_LONG unsigned int
0033
0034 # define RIPEMD160_CBLOCK 64
0035 # define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4)
0036
0037 typedef struct RIPEMD160state_st {
0038 RIPEMD160_LONG A, B, C, D, E;
0039 RIPEMD160_LONG Nl, Nh;
0040 RIPEMD160_LONG data[RIPEMD160_LBLOCK];
0041 unsigned int num;
0042 } RIPEMD160_CTX;
0043 # endif
0044 # ifndef OPENSSL_NO_DEPRECATED_3_0
0045 OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Init(RIPEMD160_CTX *c);
0046 OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data,
0047 size_t len);
0048 OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
0049 OSSL_DEPRECATEDIN_3_0 unsigned char *RIPEMD160(const unsigned char *d, size_t n,
0050 unsigned char *md);
0051 OSSL_DEPRECATEDIN_3_0 void RIPEMD160_Transform(RIPEMD160_CTX *c,
0052 const unsigned char *b);
0053 # endif
0054
0055 # ifdef __cplusplus
0056 }
0057 # endif
0058 # endif
0059 #endif