TSEC Firmware: Difference between revisions

better names
Main: better
Line 944: Line 944:
  u32 c_old = cauth_old;
  u32 c_old = cauth_old;
   
   
// fuc5 crypt cauth instruction
  // Set auth_addr to 0x300 and auth_size to blob1_size
  // Set auth_addr to 0x300 and auth_size to blob1_size
  cauth((blob1_size << 0x10) | (0x300 >> 0x08));
  $cauth = ((blob1_size << 0x10) | (0x300 >> 0x08));
   
   
  // fuc5 crypt cxset instruction
  // fuc5 crypt cxset instruction
Line 978: Line 977:
   return keygenldr_res;
   return keygenldr_res;
   
   
// fuc5 crypt cauth instruction
  // Restore previous cauth value
  // Restore previous cauth value
  cauth(c_old);
  $cauth = c_old;
   
   
  u8 flcn_hdr_buf[0x18];
  u8 flcn_hdr_buf[0x18];