Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: ahash - Add HASH_REQUEST_ZERO

Add a helper to zero hash stack requests that were never cloned
off the stack.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+4
+4
include/crypto/internal/hash.h
··· 301 301 return crypto_shash_statesize(tfm) - crypto_shash_blocksize(tfm) - 1; 302 302 } 303 303 304 + /* This can only be used if the request was never cloned. */ 305 + #define HASH_REQUEST_ZERO(name) \ 306 + memzero_explicit(__##name##_req, sizeof(__##name##_req)) 307 + 304 308 #endif /* _CRYPTO_INTERNAL_HASH_H */ 305 309