MiniSmart II
38
2.
The definition:
This Check Value is calculated from Full Packets Data of BIN File. If Full Data of BIN
File (For Generating FM File) are not enough for Full Packages Data, FM File Generator
Tool will Pad 0xFF to calculate the Check Value.
RSSPSS RSA Raw Data Format, Device decrypts (using RSA-2048 algorithm &
Firmware RSA Key) the 256 bytes data to be 256 bytes data (BASE Data):
After this Block data are received, Device decrypts (using RSA-2048 algorithm) the 256
bytes data to be 256 bytes data (BASE Data). The 256 bytes (BASE Data) should be
saved in Special area. It is used for Bootloader Firmware.
Block 3 Data
1.
This Block data are (N * m) bytes data.
It is Plaintext or Encrypted Firmware Data.
Per Package is m bytes data (At least 1K).
If Package Data of BIN File (For Generating FM File) are not enough for a total Package,
FM File Generator Tool will Pad 0xFF.
2.
The Block data could be Plaintext or Encryption.
3.
The Encryption mode will be:
Plaintext
Only Firmware RSA Encryption Mode:
Per 256 bytes data of Plaintext BIN file will be Xor’ed 256 bytes (BASE Data) to
be Encrypted Block 3 data. So Device need:
Get Base Data from Special area
Per 256 byte received data need be Xor’ed 256 bytes (BASE Data) to be
Plaintext Block 3 data (Firmware Code).
Firmware Fix Key Encryption Mode:
Need Load a fix key - Firmware Fix Key
All data of Plaintext BIN file will be encrypted by the key using CBC algorithm
(IV is 0) to be Encrypted Block 3 data. So Device need decrypted received data
by the key using CBC (IV is 0 ) to be Plaintext Block 3 data (Firmware Code).
Block 4 Data
It is End Flag.
After this Block data are received, Device Read per 256 bytes from Full Packets Data to
Calculate per 32 bytes Signature Data, All these Signature Data are Xored to be a 32
bytes Signature Data (Sha-2 Signature Data 2).
RSSPSS RSA Raw Data Format:
Device encrypts (using RSAPSS algorithm) the Below y bytes TLVn data to be
256 bytes data (BASE1 Data) , TLVn data are: