summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccp/psp-dev.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
commite8829ef1f73fa4051a936ab9f0204195dae4ef2b (patch)
tree7393a8af5d26823a325da50a8d6d588741dc2c6f /drivers/crypto/ccp/psp-dev.c
parent9567d3dc760931afc38f7f1144c66dd8c4b8c680 (diff)
downloadlinux-e8829ef1f73fa4051a936ab9f0204195dae4ef2b.tar.gz
linux-e8829ef1f73fa4051a936ab9f0204195dae4ef2b.tar.bz2
linux-e8829ef1f73fa4051a936ab9f0204195dae4ef2b.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 'drivers/crypto/ccp/psp-dev.c')
0 files changed, 0 insertions, 0 deletions