mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
Add kex strengths for alternative EC named curves
This commit is contained in:
@@ -787,6 +787,10 @@ local function unpack_ecdhparams (blob, pos)
|
|||||||
local size = ret.curve_params.curve:match("(%d+)[rk]%d$")
|
local size = ret.curve_params.curve:match("(%d+)[rk]%d$")
|
||||||
if size then
|
if size then
|
||||||
strength = tonumber(size)
|
strength = tonumber(size)
|
||||||
|
elseif ret.curve_params.curve == "ecdh_x25519" then
|
||||||
|
strength = 256
|
||||||
|
elseif ret.curve_params.curve == "ecdh_x448" then
|
||||||
|
strength = 448
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
ret.public, pos = unpack("s1", blob, pos)
|
ret.public, pos = unpack("s1", blob, pos)
|
||||||
|
|||||||
Reference in New Issue
Block a user