summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2025-02-03 16:37:02 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2025-02-22 10:56:02 +0300
commit17410baf65c51d9792528c5484c8167bd186e98d (patch)
tree5d211187839181b7541259024832e5bcce4bbb68 /include/linux/debugobjects.h
parentdede7911e603d6d1952f766fb4541b988e4439c0 (diff)
downloadlinux-17410baf65c51d9792528c5484c8167bd186e98d.tar.xz
crypto: virtio - Simplify RSA key size caching
When setting a public or private RSA key, the integer n is cached in the transform context virtio_crypto_akcipher_ctx -- with the sole purpose of calculating the key size from it in virtio_crypto_rsa_max_size(). It looks like this was copy-pasted from crypto/rsa.c. Cache the key size directly instead of the integer n, thus simplifying the code and reducing the memory footprint. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions