Package1: Difference between revisions

add package1 header format
Shchmue (talk | contribs)
Line 404: Line 404:
  aes_cmac(out_addr, out_size, keyslot, in_addr, in_size);
  aes_cmac(out_addr, out_size, keyslot, in_addr, in_size);
   
   
  // Comapre the generated hash with the first
  // Compare the generated hash with the first
  // 0x10 bytes of bct_customer_data
  // 0x10 bytes of bct_customer_data
  bool match = safe_memcmp(mac_addr, bct_customer_data_addr, 0x10);
  bool match = safe_memcmp(mac_addr, bct_customer_data_addr, 0x10);