diff options
author | Tudor-Dan Ambarus <tudor.ambarus@microchip.com> | 2017-05-25 10:18:12 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-06-10 07:04:29 +0300 |
commit | 561f8e2df990a7a2859a98bd208d0f7dc932c3f7 (patch) | |
tree | fbc775fe95009d6bd4c99a9e3d83839404b08ccb /crypto | |
parent | 85ac98cbac1bb63c878486b88bfb6f5bac540e21 (diff) | |
download | linux-561f8e2df990a7a2859a98bd208d0f7dc932c3f7.tar.xz |
crypto: akcipher - assume key is already set in maxsize
As of now, crypto_akcipher_maxsize() can not be reached without
successfully setting the key for the transformation. akcipher
algorithm implementations check if the key was set and then return
the output buffer size required for the given key.
Change the return type to unsigned int and always assume that this
function is called after a successful setkey of the transformation.
akcipher algorithm implementations will remove the check if key is not NULL
and directly return the max size.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions