SLUAAQ0 March   2025 BQ27Z558 , BQ27Z561 , BQ27Z561-R1 , BQ27Z561-R2 , BQ27Z746 , BQ27Z758 , BQ28Z610 , BQ28Z610-R1 , BQ34Z100-G1 , BQ34Z100-R2 , BQ4050 , BQ40Z50 , BQ40Z50-R1 , BQ40Z50-R2 , BQ40Z80 , BQ41Z50 , BQ41Z90

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Generating a Key File with BQKEYPACKAGER
    1. 1.1 SHA1 Process
      1. 1.1.1 How to Calculate SHA1 Key
    2. 1.2 SHA256 Process
    3. 1.3 ECC Process
  5. 2Programming a Key Into the Fuel Gauge With BQKEYPROGRAMMER
  6. 3Programming Keys in Production
  7. 4Summary
  8. 5References

SHA256 Process

For SHA256, there are 2 ways of generating a key, either inputting 2 challenges and the key can be generated from the challenges, or inputting a pre-generated key.

Step 1: Download and install BQKEYPACKAGER.

Step 2: Open BQKEYPACKAGER and select the correct authentication scheme and corresponding device. For this example we selected SHA256 Key BQ9035.

Step 3: Input either the 2 challenges or single per-generated key. For this example the 2 challenges input are 12345678901234567890123456789012345678901234 and 09876543210987654321098765432109876543210987. The pre-generated key in this example is AAAA1111BBBB2222CCCC3333DDDD4444EEEE5555FFFF66667777888899990000.

Step 4: Enter a password for the generated .bqk file and any comments to display in BQKEYPROGRAMMER. For these examples, the password is example1234567890 , and the comment is example.

Step 5: Select Create bqKey file and choose output destination and file name. If using the SHA256 Challenge method, after creating the file, there is a pop up window with the full generated key. In this example the output key is CA1194A558362B5FA6E7887DA7B41EC65481031C133249274853B0559D887BA3.

 SHA256 Challenge Example with
                    BQ9035 Figure 1-3 SHA256 Challenge Example with BQ9035
 SHA256 Key Example with
                    BQ9035 Figure 1-4 SHA256 Key Example with BQ9035
 SHA256 Generated Key
                    Output Figure 1-5 SHA256 Generated Key Output