Пример #1
0
        public void EraFile_DecryptTest()
        {
            string output_path = System.IO.Path.Combine(kEraCryptOutputDir);

            Console.WriteLine("Outputing to: {0}", output_path);

            // miniloader.era -> miniloader.bin
            EraFileUtil.Crypt(
                kEraCryptInputDir,
                kEraCryptTestFileName,
                output_path,
                Security.Cryptography.CryptographyTransformType.Decrypt,
                Console.Out);
        }
Пример #2
0
        public void EraFile_EncryptTest()
        {
            string input_path = System.IO.Path.Combine(kEraCryptOutputDir);

            Console.WriteLine("Reading from: {0}", input_path);
            string output_path = System.IO.Path.Combine(kEraCryptOutputDir);

            Console.WriteLine("Outputing to: {0}", output_path);

            // miniloader.bin -> miniloader.era
            EraFileUtil.Crypt(
                input_path,                 // DecryptTest outputs here, and that output is what we'll use to test encryption
                kEraCryptTestFileName,
                output_path,
                Security.Cryptography.CryptographyTransformType.Encrypt,
                Console.Out);
        }