created pkg auxiliaries for diffie and socket