decode algorithm uses special get_padding_size function without string