Re: [PATCH v4] crypto: conditionalize crypto api in arch glue for lib code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 25, 2019 at 11:31:12AM +0100, Jason A. Donenfeld wrote:
> For glue code that's used by Zinc, the actual Crypto API functions might
> not necessarily exist, and don't need to exist either. Before this
> patch, there are valid build configurations that lead to a unbuildable
> kernel. This fixes it to conditionalize those symbols on the existence
> of the proper config entry.
> 
> Signed-off-by: Jason A. Donenfeld <Jason@xxxxxxxxx>
> Acked-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
> ---
> Changes v3->v4:
>   - Rebased on cryptodev-2.6.git to make merging smoother.
> Changes v2->v3:
>   - v2 was a dud, with a find and replace operation gone wild. v3 is
>     what v2 should have been.
> Changes v1->v2:
>   - Discussing with Ard on IRC, we concluded that IS_REACHABLE makes
>     more sense than IS_ENABLED.
> 
>  arch/arm/crypto/chacha-glue.c        | 26 ++++++++++++++++----------
>  arch/arm/crypto/curve25519-glue.c    |  5 +++--
>  arch/arm/crypto/poly1305-glue.c      |  9 ++++++---
>  arch/arm64/crypto/chacha-neon-glue.c |  5 +++--
>  arch/arm64/crypto/poly1305-glue.c    |  5 +++--
>  arch/mips/crypto/chacha-glue.c       |  6 ++++--
>  arch/mips/crypto/poly1305-glue.c     |  6 ++++--
>  arch/x86/crypto/blake2s-glue.c       |  6 ++++--
>  arch/x86/crypto/chacha_glue.c        |  5 +++--
>  arch/x86/crypto/curve25519-x86_64.c  |  7 ++++---
>  arch/x86/crypto/poly1305_glue.c      |  5 +++--
>  11 files changed, 53 insertions(+), 32 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux