crypto: qat - comply with crypto_kpp_maxsize()
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>
Thu, 25 May 2017 07:18:11 +0000 (10:18 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Jun 2017 04:04:29 +0000 (12:04 +0800)
commit85ac98cbac1bb63c878486b88bfb6f5bac540e21
tree674d75a7581fa78ce841dded9e514a4bc82583c4
parentd0efb48b8615292e05373caa27854e36e732668b
crypto: qat - comply with crypto_kpp_maxsize()

crypto_kpp_maxsize() asks for the output buffer size without
caring for errors. It allways assume that will be called after
a valid setkey. Comply with it and return what he wants.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_asym_algs.c