Skip to content

Commit

Permalink
crypto: skcipher - Remove SKCIPHER_REQUEST_ON_STACK()
Browse files Browse the repository at this point in the history
Now that all the users of the VLA-generating SKCIPHER_REQUEST_ON_STACK()
macro have been moved to SYNC_SKCIPHER_REQUEST_ON_STACK(), we can remove
the former.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Kees Cook authored and Herbert Xu committed Sep 28, 2018
1 parent 6adfbd6 commit a9cbfe4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/crypto/skcipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ struct skcipher_alg {
] CRYPTO_MINALIGN_ATTR; \
struct skcipher_request *name = (void *)__##name##_desc

#define SKCIPHER_REQUEST_ON_STACK(name, tfm) \
char __##name##_desc[sizeof(struct skcipher_request) + \
crypto_skcipher_reqsize(tfm)] CRYPTO_MINALIGN_ATTR; \
struct skcipher_request *name = (void *)__##name##_desc

/**
* DOC: Symmetric Key Cipher API
*
Expand Down

0 comments on commit a9cbfe4

Please sign in to comment.