summaryrefslogtreecommitdiffstats
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2025-02-03 14:37:02 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2025-02-22 15:56:02 +0800
commit17410baf65c51d9792528c5484c8167bd186e98d (patch)
tree5d211187839181b7541259024832e5bcce4bbb68 /tools/lib/python/kdoc/python_version.py
parentdede7911e603d6d1952f766fb4541b988e4439c0 (diff)
downloadlinux-17410baf65c51d9792528c5484c8167bd186e98d.tar.gz
linux-17410baf65c51d9792528c5484c8167bd186e98d.zip
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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions