aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2022-01-18 16:13:04 -0800
committerHerbert Xu <[email protected]>2022-01-31 11:21:44 +1100
commitd3481accd974541e6a5d6a1fb588924a3519c36e (patch)
treed4d2e189b93a4784d9162fba6974c3d17ef296d9 /tools/perf/scripts/python/sctop.py
parente316f7179be22912281ce6331d96d7c121fb2b17 (diff)
crypto: rsa-pkcs1pad - restore signature length check
RSA PKCS#1 v1.5 signatures are required to be the same length as the RSA key size. RFC8017 specifically requires the verifier to check this (https://datatracker.ietf.org/doc/html/rfc8017#section-8.2.2). Commit a49de377e051 ("crypto: Add hash param to pkcs1pad") changed the kernel to allow longer signatures, but didn't explain this part of the change; it seems to be unrelated to the rest of the commit. Revert this change, since it doesn't appear to be correct. We can be pretty sure that no one is relying on overly-long signatures (which would have to be front-padded with zeroes) being supported, given that they would have been broken since commit c7381b012872 ("crypto: akcipher - new verify API for public key algorithms"). Fixes: a49de377e051 ("crypto: Add hash param to pkcs1pad") Cc: <[email protected]> # v4.6+ Cc: Tadeusz Struk <[email protected]> Suggested-by: Vitaly Chikunov <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions