remove restriction &out != &in for ECDouble