implement cipher, kex and mac as validator and reuse them in server and client config
robocop fixes
Merge pull request #21 from TelekomLabs/validator

common validator for client and server config