summaryrefslogtreecommitdiff
path: root/crypto/algif_rng.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-05-30 00:23:49 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2020-06-18 17:19:44 +1000
commita52eb0489f96f7318fce6b1afe1cabd46c750746 (patch)
tree7540759e83435ec5f044747ed3a4acb57e987eaf /crypto/algif_rng.c
parent01a078cc522b6e76f451f600260dfcd45b52c0ae (diff)
downloadlinux-crypto-a52eb0489f96f7318fce6b1afe1cabd46c750746.tar.gz
linux-crypto-a52eb0489f96f7318fce6b1afe1cabd46c750746.zip
crypto: algif_aead - Only wake up when ctx->more is zero
AEAD does not support partial requests so we must not wake up while ctx->more is set. In order to distinguish between the case of no data sent yet and a zero-length request, a new init flag has been added to ctx. SKCIPHER has also been modified to ensure that at least a block of data is available if there is more data to come. Fixes: c1b1fa586429 ("crypto: af_alg - consolidation of...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algif_rng.c')
0 files changed, 0 insertions, 0 deletions