@@ -42,6 +42,7 @@ extern "C" {
42
42
#endif
43
43
44
44
#include <stdint.h>
45
+ #include "types.h"
45
46
46
47
/*
47
48
* Define enums from API v2.24, so applications that were using this version
@@ -85,7 +86,9 @@ struct rh_state2 {
85
86
* @param state Structure holding state info on current rolling hash
86
87
* @param w Window width (1 <= w <= 32)
87
88
* @returns 0 - success, -1 - failure
89
+ * @deprecated Please use isal_rolling_hash2_init() instead.
88
90
*/
91
+ ISAL_DEPRECATED ("Please use isal_rolling_hash2_init() instead" )
89
92
int
90
93
rolling_hash2_init (struct rh_state2 * state , uint32_t w );
91
94
@@ -95,7 +98,9 @@ rolling_hash2_init(struct rh_state2 *state, uint32_t w);
95
98
* @param state Structure holding state info on current rolling hash
96
99
* @param init_bytes Optional window size buffer to pre-init hash
97
100
* @returns none
101
+ * @deprecated Please use isal_rolling_hash2_reset() instead.
98
102
*/
103
+ ISAL_DEPRECATED ("Please use isal_rolling_hash2_reset() instead" )
99
104
void
100
105
rolling_hash2_reset (struct rh_state2 * state , uint8_t * init_bytes );
101
106
@@ -110,7 +115,9 @@ rolling_hash2_reset(struct rh_state2 *state, uint8_t *init_bytes);
110
115
* @param trigger Match value to compare with windowed hash at each input byte
111
116
* @param offset Offset from buffer to match, set if match found
112
117
* @returns ISAL_FINGERPRINT_RET_HIT - match found, ISAL_FINGERPRINT_RET_MAX - exceeded max length
118
+ * @deprecated Please use isal_rolling_hash2_run() instead.
113
119
*/
120
+ ISAL_DEPRECATED ("Please use isal_rolling_hash2_run() instead" )
114
121
int
115
122
rolling_hash2_run (struct rh_state2 * state , uint8_t * buffer , uint32_t max_len , uint32_t mask ,
116
123
uint32_t trigger , uint32_t * offset );
@@ -121,7 +128,9 @@ rolling_hash2_run(struct rh_state2 *state, uint8_t *buffer, uint32_t max_len, ui
121
128
* @param mean Target chunk size in bytes
122
129
* @param shift Bits to rotate result to get independent masks
123
130
* @returns 32-bit mask value
131
+ * @deprecated Please use isal_rolling_hashx_mask_gen() instead.
124
132
*/
133
+ ISAL_DEPRECATED ("Please use isal_rolling_hashx_mask_gen() instead" )
125
134
uint32_t
126
135
rolling_hashx_mask_gen (long mean , int shift );
127
136
0 commit comments