ecdh_unpack_data
ptr = ecdh_unpack_data(&secret, ptr, sizeof(secret));
ptr = ecdh_unpack_data(¶ms->key_size, ptr, sizeof(params->key_size));