private static function getPaddedBlock($bytesIn,$start,$end,$mode){
		if($end - $start > 16)
			$end = $start + 16;

		$xarray = array_slice($bytesIn, $start, $end-$start);

		$cpad = 16 - count($xarray);

		while(count($xarray) < 16){
			array_push($xarray, $cpad);
		}

		return $xarray;
	}