mirror of
https://github.com/nmap/nmap.git
synced 2026-11-28 10:30:14 +00:00
Merge 7f6b12ba6f into 4568fbc1b8
This commit is contained in:
commit
6661e559a7
1 changed files with 25 additions and 1 deletions
|
|
@ -1791,13 +1791,16 @@ do
|
|||
DEFAULT_SIGALGS = EXTENSION_HELPERS["signature_algorithms"](sigalgs)
|
||||
end
|
||||
-- Equivalent for TLSv1.3 is SignatureScheme
|
||||
-- We'll offer all the sha256 and sha512 variants, plus a few extra
|
||||
-- Offer common sha256 and sha512 variants, the certificate-relevant sha384
|
||||
-- schemes, plus a few extra.
|
||||
local DEFAULT_SIGSCHEMES
|
||||
do
|
||||
local sigalgs = {
|
||||
"rsa_pkcs1_sha256",
|
||||
"rsa_pkcs1_sha384",
|
||||
"rsa_pkcs1_sha512",
|
||||
"ecdsa_secp256r1_sha256",
|
||||
"ecdsa_secp384r1_sha384",
|
||||
"ecdsa_secp521r1_sha512",
|
||||
"rsa_pss_rsae_sha256",
|
||||
"rsa_pss_rsae_sha512",
|
||||
|
|
@ -2084,4 +2087,25 @@ end
|
|||
for _, name in ipairs(DEFAULT_ELLIPTIC_CURVES) do
|
||||
test_suite:add_test(unittest.not_nil(ELLIPTIC_CURVES[name]), name .. " default elliptic curve (supported group)")
|
||||
end
|
||||
local expected_default_sigschemes = EXTENSION_HELPERS["signature_algorithms_13"]({
|
||||
"rsa_pkcs1_sha256",
|
||||
"rsa_pkcs1_sha384",
|
||||
"rsa_pkcs1_sha512",
|
||||
"ecdsa_secp256r1_sha256",
|
||||
"ecdsa_secp384r1_sha384",
|
||||
"ecdsa_secp521r1_sha512",
|
||||
"rsa_pss_rsae_sha256",
|
||||
"rsa_pss_rsae_sha512",
|
||||
"ed25519",
|
||||
"ed448",
|
||||
"rsa_pss_pss_sha256",
|
||||
"rsa_pss_pss_sha512",
|
||||
"rsa_pkcs1_sha1",
|
||||
"ecdsa_sha1",
|
||||
"mldsa44",
|
||||
})
|
||||
test_suite:add_test(
|
||||
unittest.equal(DEFAULT_SIGSCHEMES, expected_default_sigschemes),
|
||||
"default TLSv1.3 signature schemes"
|
||||
)
|
||||
return _ENV;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue