--- zzzz-none-000/linux-4.4.271/include/linux/crypto.h 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/include/linux/crypto.h 2023-04-19 10:22:30.000000000 +0000 @@ -102,6 +102,11 @@ #define CRYPTO_ALG_INTERNAL 0x00002000 /* + * Set this flag if algorithm does not support SG list transforms + */ +#define CRYPTO_ALG_NOSUPP_SG 0x00004000 + +/* * Transform masks and values (for crt_flags). */ #define CRYPTO_TFM_REQ_MASK 0x000fff00 @@ -648,6 +653,11 @@ return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK; } +static inline u32 crypto_tfm_alg_flags(struct crypto_tfm *tfm) +{ + return tfm->__crt_alg->cra_flags & ~CRYPTO_ALG_TYPE_MASK; +} + static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) { return tfm->__crt_alg->cra_blocksize;