src/Security/SlowAES/AES.php
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;
	}
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;
	}
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 ; }
gets a properly padded block
gets a properly padded block