public void init(boolean forEncryption, KeyParameter params)
    {
        if(params instanceof KeyParameter)
        {
            workingKey = ((KeyParameter) params).getKey();
            setKey(workingKey);
            return;
        }

        throw new IllegalArgumentException("invalid parameter passed to RC4 init" + params.getClass().getName());
    }