properly delete[] c_key and c_salt.