Esempio n. 1
0
 internal void AddKV(byte[] data)
 {
     if (ECCData.Count < KVOffset)
     {
         ECCGenerator.UpdateStatus(string.Format("Padding to Keyvault Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, KVOffset - ECCData.Count));
         PadToFlash(KVOffset);
     }
     ECCGenerator.UpdateStatus(string.Format("Adding Keyvault Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, data.Length));
     ECCData.AddRange(data);
 }
Esempio n. 2
0
 internal void AddBootLoader(byte[] data, string version)
 {
     if (ECCData.Count < CBOffset)
     {
         ECCGenerator.UpdateStatus(string.Format("Padding to {2} Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, CBOffset - ECCData.Count, version));
         PadToFlash(CBOffset);
     }
     ECCGenerator.UpdateStatus(string.Format("Adding {2} Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, data.Length, version));
     ECCData.AddRange(data);
 }
Esempio n. 3
0
 internal void AddXeLL(byte[] data)
 {
     if (ECCData.Count < Xellbase)
     {
         ECCGenerator.UpdateStatus(string.Format("Padding to XeLL Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, Xellbase - ECCData.Count));
         PadToFlash(Xellbase);
     }
     ECCGenerator.UpdateStatus(string.Format("Adding KV Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, data.Length));
     ECCData.AddRange(data);
 }
Esempio n. 4
0
        internal void AddSMC(byte[] data)
        {
            var offset = (uint)(0x4000 - data.Length);

            if (ECCData.Count < offset)
            {
                ECCGenerator.UpdateStatus(string.Format("Padding to SMC Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, offset - ECCData.Count));
                PadToFlash(offset);
            }
            ECCGenerator.UpdateStatus(string.Format("Adding SMC Offset: 0x{0:X} Size: 0x{1:X}", ECCData.Count, data.Length));
            ECCData.AddRange(data);
        }