nuts_msg_newkeys_print()
nuts_msg_newkeys_scan()
Move nuts_kex_init struct to kex/msg.h
nuts_msg_kex_init_print()
Move nuts_kex_init_prepare(), nuts_kex_init_free() to kex/msg.h

This is the correct location.
nuts_namelist_dup()
nuts_msg_kex_init_scan()
Fix kex_algorithm_find()

Use the correct length to detect the algorithm
nuts_msg_kex_init_scan()