diff options
author | Stephan Müller <smueller@chronox.de> | 2021-11-19 09:58:44 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-11-26 08:25:17 +0300 |
commit | d7921344234d15ce24a151d932aa0748797fc502 (patch) | |
tree | b7b53707a46d11005c9f391949734c720d8178bb /security/keys/Kconfig | |
parent | 026a733e66592e743a0905c7fd6b5d3bf89b2d7e (diff) | |
download | linux-d7921344234d15ce24a151d932aa0748797fc502.tar.xz |
security: DH - remove dead code for zero padding
Remove the specific code that adds a zero padding that was intended
to be invoked when the DH operation result was smaller than the
modulus. However, this cannot occur any more these days because the
function mpi_write_to_sgl is used in the code path that calculates the
shared secret in dh_compute_value. This MPI service function guarantees
that leading zeros are introduced as needed to ensure the resulting data
is exactly as long as the modulus. This implies that the specific code
to add zero padding is dead code which can be safely removed.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Acked-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'security/keys/Kconfig')
0 files changed, 0 insertions, 0 deletions