Re: AF_ALG: hash returns -ENOKEY

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

 



Am Mittwoch, 27. Januar 2016, 00:16:37 schrieb Herbert Xu:

Hi Herbert,

> On Mon, Jan 25, 2016 at 10:22:36PM +0100, Stephan Mueller wrote:
> > Hi Herbert,
> > 
> > during testing of the current cryptodev-2.6 key, the AF_ALG hash does not
> > seem to work as it used to.
> 
> Oops, looks like I screwed up shash.
> 
> ---8<---
> Subject: crypto: shash - Fix has_key setting
> 
> The has_key logic is wrong for shash algorithms as they always
> have a setkey function.  So we should instead be testing against
> shash_no_setkey.
> 
> Fixes: a5596d633278 ("crypto: hash - Add crypto_ahash_has_setkey")
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Stephan Mueller <smueller@xxxxxxxxxx>
> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

Tested-by: Stephan Mueller <smueller@xxxxxxxxxx>

Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux