fix incorrect weak kex algo

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>