diff options
author | Eric Biggers <ebiggers@google.com> | 2019-06-02 22:45:16 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-13 14:31:40 +0800 |
commit | 776e7749dfdf21e7a270722bf7f0e0572155be7c (patch) | |
tree | 874d490e35be293da0ba84f8867afe192aa413f5 /crypto/842.c | |
parent | ca3f8c46b1cdeb98b220d104e26cf0b503f25628 (diff) | |
download | linux-crypto-776e7749dfdf21e7a270722bf7f0e0572155be7c.tar.gz linux-crypto-776e7749dfdf21e7a270722bf7f0e0572155be7c.zip |
crypto: aead - un-inline encrypt and decrypt functions
crypto_aead_encrypt() and crypto_aead_decrypt() have grown to be more
than a single indirect function call. They now also check whether a key
has been set, the decryption side checks whether the input is at least
as long as the authentication tag length, and with CONFIG_CRYPTO_STATS=y
they also update the crypto statistics. That can add up to a lot of
bloat at every call site. Moreover, these always involve a function
call anyway, which greatly limits the benefits of inlining.
So change them to be non-inline.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/842.c')
0 files changed, 0 insertions, 0 deletions