Key exchange now working, all that's left is adding in function to compare keys