summaryrefslogtreecommitdiff
path: root/crypto/scatterwalk.c
diff options
context:
space:
mode:
authorJoachim Vandersmissen <git@jvdsn.com>2024-02-03 01:19:59 -0600
committerHerbert Xu <herbert@gondor.apana.org.au>2024-02-09 12:57:18 +0800
commitfe055ab2b57e6d08c31a631b93c2e1c6adce1385 (patch)
tree535036d71381d92809169603bbeebd68e0693b0a /crypto/scatterwalk.c
parentda84ab187fa5e027fb4364ed24a25919a16222b3 (diff)
downloadlinux-crypto-fe055ab2b57e6d08c31a631b93c2e1c6adce1385.tar.gz
linux-crypto-fe055ab2b57e6d08c31a631b93c2e1c6adce1385.zip
crypto: rsa - restrict plaintext/ciphertext values more
SP 800-56Br2, Section 7.1.1 [1] specifies that: 1. If m does not satisfy 1 < m < (n – 1), output an indication that m is out of range, and exit without further processing. Similarly, Section 7.1.2 of the same standard specifies that: 1. If the ciphertext c does not satisfy 1 < c < (n – 1), output an indication that the ciphertext is out of range, and exit without further processing. This range is slightly more conservative than RFC3447, as it also excludes RSA fixed points 0, 1, and n - 1. [1] https://doi.org/10.6028/NIST.SP.800-56Br2 Signed-off-by: Joachim Vandersmissen <git@jvdsn.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/scatterwalk.c')
0 files changed, 0 insertions, 0 deletions