Org.BouncyCastle.Crypto.Engines.Cast5Engine.DecryptBlock C# (CSharp) Метод

DecryptBlock() приватный Метод

private DecryptBlock ( byte src, int srcIndex, byte dst, int dstIndex ) : int
src byte
srcIndex int
dst byte
dstIndex int
Результат int
        internal virtual int DecryptBlock(
            byte[] src,
            int srcIndex,
            byte[] dst,
            int dstIndex)
        {
            // process the input block
            // batch the units up into a 32 bit chunk and go for it
            // the array is in bytes, the increment is 8x8 bits = 64
            uint L16 = Pack.BE_To_UInt32(src, srcIndex);
            uint R16 = Pack.BE_To_UInt32(src, srcIndex + 4);

            uint[] result = new uint[2];
            CAST_Decipher(L16, R16, result);

            // now stuff them into the destination block
            Pack.UInt32_To_BE(result[0], dst, dstIndex);
            Pack.UInt32_To_BE(result[1], dst, dstIndex + 4);

            return BLOCK_SIZE;
        }