Exemple #1
0
        public int encrypt(ref byte[] raw, int offset, int size)
        {
            // reserve checksum
            size += 4;

            // padding
            size += 8 - size % 8;
            NewCrypt.appendChecksum(ref raw, offset, size);
            _crypt.crypt(ref raw, offset, size);

            return(size);
        }
Exemple #2
0
 public static void appendChecksum(byte[] raw)
 {
     NewCrypt.appendChecksum(ref raw, 0, raw.Length);
 }