private function _roundKeys($hashPassword = null, $iv = null)
    {
        $roundKeys = [];
        $prevKey = $this->_encrypt($this->key, $hashPassword, $iv);
        for ($i = 1; $i <= $this->rounds; $i++) {
            $prevKey = $this->_encrypt($prevKey, $hashPassword, $iv);
            $roundKeys[$i] = substr(DataConverter::rawToBin($prevKey), -1 * $this->sideSize);
        }

        return $roundKeys;
    }
private function _roundKeys($hashPassword = null, $iv = null)
    {
        $roundKeys = [];
        $prevKey = $this->_encrypt($this->key, $hashPassword, $iv);
        for ($i = 1; $i <= $this->rounds; $i++) {
            $prevKey = $this->_encrypt($prevKey, $hashPassword, $iv);
            $roundKeys[$i] = substr(DataConverter::rawToBin($prevKey), -1 * $this->sideSize);
        }

        return $roundKeys;
    }
private function _roundKeys ( $ hashPassword = null , $ iv = null ) { $ roundKeys = [ ] ; $ prevKey = $ this -> _encrypt ( $ this -> key , $ hashPassword , $ iv ) ; for ( $ i = 1 ; $ i <= $ this -> rounds ; $ i ++ ) { $ prevKey = $ this -> _encrypt ( $ prevKey , $ hashPassword , $ iv ) ; $ roundKeys [ $ i ] = substr ( DataConverter :: rawToBin ( $ prevKey ) , - 1 * $ this -> sideSize ) ; } return $ roundKeys ; }
Generates hash keys.

@param string|null $hashPassword
@param string|null $iv

@return array
Generates hash keys .