예제 #1
0
    private byte[] method_11(byte[] A_0, int A_1, byte[] A_2, byte[] A_3)
    {
        byte[] buffer;
        int    length = A_0.Length;

        if ((length % A_1) != 0)
        {
            length = ((length / A_1) + 1) * A_1;
            buffer = this.class299_0.method_13(A_0, length, 0);
        }
        else
        {
            buffer = A_0;
        }
        byte[]   dst     = new byte[length];
        byte[]   buffer2 = new byte[A_1];
        byte[]   buffer3 = new byte[A_1];
        Class441 class2  = new Class441(Class441.KeySize.Bits128, A_2);

        for (int i = 0; i < length; i += A_1)
        {
            Buffer.BlockCopy(buffer, i, buffer2, 0, A_1);
            if (i == 0)
            {
                buffer2 = this.class299_0.method_14(buffer2, A_3);
            }
            else
            {
                buffer2 = this.class299_0.method_14(buffer2, buffer3);
            }
            class2.method_1(buffer2, buffer3);
            Buffer.BlockCopy(buffer3, 0, dst, i, A_1);
        }
        return(dst);
    }
예제 #2
0
    private void method_9(Stream A_0, byte[] A_1, Stream A_2)
    {
        Class441 class2 = new Class441(Class441.KeySize.Bits128, A_1);

        byte[] buffer  = new byte[0x10];
        byte[] buffer2 = new byte[0x10];
        while (A_0.Read(buffer, 0, 0x10) > 0)
        {
            class2.method_1(buffer, buffer2);
            A_2.Write(buffer2, 0, 0x10);
        }
    }