Small fix in public key algorithm selection

Build own intersecting list correctly, change names of lists and variable to
make it more readable.