Refactoring dtls basic data types