aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorMahmoud Adam <[email protected]>2023-06-13 16:17:31 +0000
committerHerbert Xu <[email protected]>2023-06-23 16:15:36 +0800
commit6637e11e4ad22ff03183da0dbd36d65c98b81cf7 (patch)
tree90bdebeb49e1658dfdacc3069fdc36c7fc99d931 /tools/testing/selftests/bpf/progs/test_autoload.c
parentba51738fa78972fb446b49b6b9ddda4058a272e0 (diff)
crypto: rsa - allow only odd e and restrict value in FIPS mode
check if rsa public exponent is odd and check its value is between 2^16 < e < 2^256. FIPS 186-5 DSS (page 35)[1] specify that: 1. The public exponent e shall be selected with the following constraints: (a) The public verification exponent e shall be selected prior to generating the primes, p and q, and the private signature exponent d. (b) The exponent e shall be an odd positive integer such that: 2^16 < e < 2^256. [1] https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf Signed-off-by: Mahmoud Adam <[email protected]> Reviewed-by: Stephan Mueller <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions