Eric Biggers 73bed26f73 crypto: akcipher - pass instance to crypto_grab_akcipher()
Initializing a crypto_akcipher_spawn currently requires:

1. Set spawn->base.inst to point to the instance.
2. Call crypto_grab_akcipher().

But there's no reason for these steps to be separate, and in fact this
unneeded complication has caused at least one bug, the one fixed by
commit 6db43410179b ("crypto: adiantum - initialize crypto_spawn::inst")

So just make crypto_grab_akcipher() take the instance as an argument.

To keep the function call from getting too unwieldy due to this extra
argument, also introduce a 'mask' variable into pkcs1pad_create().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-01-09 11:30:54 +08:00
..
2019-12-06 13:36:31 -08:00
2019-12-05 12:09:47 -08:00
2019-11-30 14:35:43 -08:00
2019-11-27 17:45:48 -08:00
2019-11-30 10:33:14 -08:00
2019-12-06 10:28:09 -08:00
2020-01-04 13:49:51 +08:00
2019-11-28 11:16:43 -08:00