//tutaj jest enkrypcja i dekrypcja
    public void EncryptTest()
    {
        TwoFish tf = new TwoFish();

        tf.GenerateKeys(TwoFish.ConvertHexToBitArray("00000000000000000000000000000000"));
        BitArray encrypted = tf.Encrypt(TwoFish.ConvertHexToBitArray("00000000000000000000000000000000"));

        tf.DebugBits(encrypted);
        BitArray decrypted = tf.Decrypt(encrypted);

        tf.DebugBits(decrypted);
    }
    public void SingleLoopTest()
    {
        TwoFish tf = new TwoFish();

        tf.GenerateKeys(TwoFish.ConvertHexToBitArray("00000000000000000000000000000000"));
        BitArray[] wt = tf.InputWhitening(TwoFish.ConvertHexToBitArray("00000000000000000000000000000000"));
        BitArray[] wn = tf.SingleRound(wt[0], wt[1], wt[2], wt[3], 0);

        tf.DebugBits(wn[0]);
        tf.DebugBits(wn[1]);
        tf.DebugBits(wn[2]);
        tf.DebugBits(wn[3]);
    }
    public void SubKeyGeneratorTest()
    {
        TwoFish  tf    = new TwoFish();
        BitArray bytes = TwoFish.ConvertHexToBitArray("00000000000000000000000000000000");

        BitArray[] keys = tf.SubkeysKGenerator(0, bytes);
        tf.DebugBits(keys[0]);
    }