Re: [PATCH] crypto: ahash - make hash walk functions private to ahash.c

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

 



On Fri, 27 Dec 2024 at 23:48, Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
>
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
>
> Due to the removal of the Niagara2 SPU driver, crypto_hash_walk_first(),
> crypto_hash_walk_done(), crypto_hash_walk_last(), and struct
> crypto_hash_walk are now only used in crypto/ahash.c.  Therefore, make
> them all private to crypto/ahash.c.  I.e. un-export the two functions
> that were exported, make the functions static, and move the struct
> definition to the .c file.  As part of this, move the functions to
> earlier in the file to avoid needing to add forward declarations.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
>  crypto/ahash.c                 | 158 ++++++++++++++++++---------------
>  include/crypto/internal/hash.h |  23 -----
>  2 files changed, 87 insertions(+), 94 deletions(-)
>

Acked-by: Ard Biesheuvel <ardb@xxxxxxxxxx>




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