Add handling of non-NIST algorithm selection

Implement functions to prefer non-NIST algorithms if the PK is also a non-NIST
(i.e. a Bernstein curve) algorithm.

Currently also force availability of Twofish.
Merge branch 'nnist' into develop