diff options
| author | Lukas Wunner <lukas@wunner.de> | 2025-02-03 16:37:02 +0300 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-02-22 10:56:02 +0300 |
| commit | 17410baf65c51d9792528c5484c8167bd186e98d (patch) | |
| tree | 5d211187839181b7541259024832e5bcce4bbb68 /include/linux/debugobjects.h | |
| parent | dede7911e603d6d1952f766fb4541b988e4439c0 (diff) | |
| download | linux-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
