Re: [PATCH v1 1/3] crypto: api - Adjust HASH_MAX_DESCSIZE for phmac context on s390

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

 



On Wed, Oct 30, 2024 at 05:22:33PM +0100, Harald Freudenberger wrote:
>
> +#ifdef CONFIG_S390
> +/*
> + * The descsize for phmac on s390 exceeds the generic "worst case".
> + */
> +#define HASH_MAX_DESCSIZE	384
> +#else
>  /*
>   * Worst case is hmac(sha3-224-generic).  Its context is a nested 'shash_desc'
>   * containing a 'struct sha3_state'.
>   */
>  #define HASH_MAX_DESCSIZE	(sizeof(struct shash_desc) + 360)
> +#endif

Why not just increase it everywhere? It's not a big difference.

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