Go to the documentation of this file.
5 #ifndef _CRYPTO_GLUE_HELPER_H
6 #define _CRYPTO_GLUE_HELPER_H
8 #include <linux/kernel.h>
18 #define GLUE_FUNC_CAST(fn) ((common_glue_func_t)(fn))
19 #define GLUE_CBC_FUNC_CAST(fn) ((common_glue_cbc_func_t)(fn))
20 #define GLUE_CTR_FUNC_CAST(fn) ((common_glue_ctr_func_t)(fn))
42 static inline bool glue_fpu_begin(
unsigned int bsize,
int fpu_blocks_limit,
44 bool fpu_enabled,
unsigned int nbytes)
46 if (
likely(fpu_blocks_limit < 0))
56 if (nbytes < bsize * (
unsigned int)fpu_blocks_limit)
68 static inline void glue_fpu_end(
bool fpu_enabled)
86 static inline void u128_inc(
u128 *
i)
102 unsigned int nbytes);
108 unsigned int nbytes);