]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: authenc - Consider ahash ASYNC bit
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2016 10:03:46 +0000 (18:03 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jul 2016 15:45:02 +0000 (23:45 +0800)
commit02df7567747280ab082bcd55c5ada82b15cf5bf8
tree884de0ba5d1d47c7997ab4aec04519d22c597477
parentf00279c356e1f67e6d6679eb8d6e9f68295e234c
crypto: authenc - Consider ahash ASYNC bit

As it is, if you get an async ahash with a sync skcipher you'll
end up with a sync authenc, which is wrong.

This patch fixes it by considering the ASYNC bit from ahash as
well.

It also fixes a little bug where if a sync version of authenc
is requested we may still end up using an async ahash.

Neither of them should have any effect as none of the authenc
users can request for a sync authenc.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/authenc.c
crypto/authencesn.c