sub_wrap_size
ret = sub_wrap_size(req_output_size, max_input_size, 8, 22);
ret = sub_wrap_size(req_output_size, max_input_size, 8, 34);