diff options
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/crypto/skcipher.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backport/backport-include/crypto/skcipher.h b/backport/backport-include/crypto/skcipher.h new file mode 100644 index 00000000..19a5a73d --- /dev/null +++ b/backport/backport-include/crypto/skcipher.h @@ -0,0 +1,14 @@ +#ifndef __BP_CRYPTO_SKCIPHER_H +#define __BP_CRYPTO_SKCIPHER_H +#include_next <crypto/skcipher.h> + +#if LINUX_VERSION_IS_LESS(4,6,0) +static inline void skcipher_request_zero(struct skcipher_request *req) +{ + struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); + + memzero_explicit(req, sizeof(*req) + crypto_skcipher_reqsize(tfm)); +} +#endif + +#endif /* __BP_CRYPTO_SKCIPHER_H */ |