aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2024-09-10 16:30:18 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2024-10-05 13:22:04 +0800
commit778206d87103ba6d3e401b84d4472e96db7b7582 (patch)
tree0c2979e73cefbf6fc07b051d24ecf23020a5965b /rust/helpers/build_bug.c
parentcrypto: rsassa-pkcs1 - Harden digest length verification (diff)
downloadwireguard-linux-778206d87103ba6d3e401b84d4472e96db7b7582.tar.xz
wireguard-linux-778206d87103ba6d3e401b84d4472e96db7b7582.zip
crypto: rsassa-pkcs1 - Avoid copying hash prefix
When constructing the EMSA-PKCS1-v1_5 padding for the sign operation, a buffer for the padding is allocated and the Full Hash Prefix is copied into it. The padding is then passed to the RSA decrypt operation as an sglist entry which is succeeded by a second sglist entry for the hash. Actually copying the hash prefix around is completely unnecessary. It can simply be referenced from a third sglist entry which sits in-between the padding and the digest. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions