CN106572106A - Method of transmitting message between TBOX terminal and TSP platform - Google Patents
Method of transmitting message between TBOX terminal and TSP platform Download PDFInfo
- Publication number
- CN106572106A CN106572106A CN201610973096.9A CN201610973096A CN106572106A CN 106572106 A CN106572106 A CN 106572106A CN 201610973096 A CN201610973096 A CN 201610973096A CN 106572106 A CN106572106 A CN 106572106A
- Authority
- CN
- China
- Prior art keywords
- tbox
- terminals
- key
- message
- tsp
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
- H04L63/1416—Event detection, e.g. attack signature detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0631—Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0877—Generation of secret information including derivation or calculation of cryptographic keys or passwords using additional device, e.g. trusted platform module [TPM], smartcard, USB or hardware security module [HSM]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
- Storage Device Security (AREA)
Abstract
The invention provides a method of transmitting a message between a TBOX terminal and a TSP platform. A secure encryption chip master key is generated; the secure encryption chip master key is stored to the TSP platform; the secure encryption chip master key is programmed to the TBOX terminal; a communication channel between the TBOX terminal and the TSP platform is built, and authentication is carried out according to the master key. Mutual message transmission between the TBOX terminal and the TSP platform is carried out, the phenomenon that communication data are cracked and leaked and a vehicle is controlled maliciously when the interaction process between the TBOX terminal and the TSP platform is attached can be prevented.
Description
Technical field
The present invention relates between a kind of TBOX terminals and TSP platforms message transmissions method.
Background technology
Car networking system is by car, vehicle-mounted TBOX terminals, TSP service platforms, mobile phone A PP of user side or PC
The part of WEB user sides four constitutes, and user can be controlled from the interface of software using mobile phone A PP or WEB user sides to vehicle
System, for example:Issue the orders such as car locking, switch air-conditioning, close door vehicle window, it is possible to by mobile phone A PP or WEB user sides
Check the relevant information of vehicle, carry out some vehicle-states check, fault diagnosis etc..Detailed process is that user uses mobile phone A PP
Or the instruction that WEB user sides send passes through network transmission to TSP platforms, is then forwarded to TBOX terminals, TBOX terminals pass through car
CAN order be handed down to vehicle, be controlled.TBOX terminals are by CAN, locating module, inertia measurement sensing
After the collection vehicle state such as device module, TSP platforms are sent to by cordless communication network, TSP platforms be then forwarded to mobile phone A PP or
Person's WEB user sides, client can be carried out state and check or fault diagnosis.
Its shortcoming for existing:Because multiple links adopt plaintext communication, easily suffer hacker attacks destroy, cause it is following after
Really:
The data communicated between TBOX terminals and TSP platforms are ravesdropping, and crack.Vehicle personal information is illegally accessed.
TBOX terminals and TSP platform authentications go wrong, and TBOX terminals are connected to illegal center, and vehicle is illegally controlled
System, causes traffic accidents:For example engine, throttle, ABS, air-conditioning, car door car window etc. are controlled.TSP platforms are connected to
Illegal TBOX, receives deceptive information.
Explanation of nouns:
TBOX terminals:Telematics BOX, referred to as vehicle-mounted TBOX, are mainly used in collection vehicle relevant information, comprising:Position
Confidence breath, attitude information, car status information (by connecting CAN on car) etc., are then passed information by radio communication
It is sent to TSP platforms.Simultaneously user can be by issuing a command to TBOX ends using the WEB user sides of mobile phone A PP and PC under TSP platforms
End, operation, such as close door, switch air-conditioning etc. are controlled to vehicle.
TSP platforms:TSP service platforms, for receiving the data of TBOX terminals upload, carry out Treatment Analysis, and by user
The wagon control instruction message issued from the WEB user sides of mobile phone A PP or PC is sent to TBOX terminals.
Mobile phone A PP/PC WEB user sides:The application installed on the application user end/PC installed on mobile phone
Program user end.
Key:Key.
HMAC:HMAC is related Hash operation message authentication code (the Hash-based Message of key
Authentication Code), HMAC computings utilize hash algorithm, with a key and a message as input, generate one
Eap-message digest is used as output.HMAC needs the hash function using an encryption, such as SHA (256).
SHA:Secure Hash Algorithm (Secure Hash Algorithm), is primarily adapted for use in DSS
Digital Signature Algorithm (the Digital Signature that (Digital Signature Standard DSS) the inside defines
Algorithm DSA)。
SHA(256):SHA algorithms based on 256bit length keys.
AES:Advanced Encryption Standard (English:Advanced Encryption Standard, abbreviation:AES), in cryptography
In also known as Rijndael enciphered methods, be a kind of block encryption standard that Federal Government is adopted, be a kind of symmetric encryption
Algorithm.This standard is used for substituting original DES, and widely the whole world is used.
AES(128):Aes algorithm based on 128bit length keys.
Security encryption chip:Built-in security AES, is connected by the MCU of the interfaces such as SPI or UART and TBOX terminals,
Can realize including:Obtain security encryption chip sequence number, data encryption, data deciphering, it is random generate numeral, preserve key and
The functions such as random number.
Key Management server (KMS):Abbreviation hardware encryption equipment, is responsible for generation, distribution, storage, backup, the pipe of key
Reason, destruction etc., while being responsible for the encryption and decryption of the message of TSP platforms.
The content of the invention
The technical problem to be solved in the present invention, is the side for providing message transmissions between a kind of TBOX terminals and TSP platforms
Method, prevents from communication data occur and be cracked leakage because the interaction flow between TBOX terminals and TSP platforms is attacked, vehicle quilt
Malice is controlled.
What the present invention was realized in:A kind of method of message transmissions between TBOX terminals and TSP platforms, including following step
Suddenly:
Step 1, generation security encryption chip master key;
Step 2, security encryption chip master key is stored to TSP platforms;
Step 3, by the programming of security encryption chip master key to TBOX terminals;
Step 4, TBOX terminals and TSP Platform communication passages are set up, and be authenticated according to master key;
Step 5, TBOX terminals and TSP platforms carry out the mutual transmission of message.
Further, a security encryption chip is provided with the TBOX terminals, the step 1 is further specially:
It is random on TSP platforms to generate Che Qi group root master key GRKey;
Vehicle sub-brand name master key VBMKey is generated by hmac algorithm;Wherein Che Qi groups root master key GRKey conducts
Input message, vehicle brand identifies VBId as key;
Security encryption chip production firm master key SCVMKey is generated by hmac algorithm;Wherein security encryption chip factory
Trade mark knows SCVId as key, and vehicle sub-brand name master key VBMKey is used as input message;
Primary key SCMORKey is generated by hmac algorithm;Wherein security encryption chip sequence number SCSNo as key,
Security encryption chip production firm master key SCVMKey is used as input message;
Using primary key SCMORKey as security encryption chip master key.
Further, it is described to be further specially primary key SCMORKey as security encryption chip master key:Cut
The byte of starting 16 and the byte of end 16 of primary key SCMORKey are taken, the security encryption chip master key of 32 bytes is constituted
SCMKey。
Further, a security encryption chip is provided with the TBOX terminals, the step 3 is further specially:
Security encryption chip master key SCMKey is sent to PC configuration tools by TSP platforms after encryption;
Programming is into security encryption chip after the data deciphering that PC configuration tools will be received.
Further, the cipher mode and manner of decryption are AES, and security encryption chip sequence number SCSNo is made
For key.
Further, the step 4 is further specially:
TBOX terminals obtain the sequence number SCSNo of security encryption chip from built-in security encryption chip, and generate
Random number TBOXrnd_8byte of one 8 byte;
TBOX terminals use the sequence number SCSNo and 8 byte random numbers TBOXrnd_8byte of security encryption chip, with
And TBOX terminal serial numbers generate TBOX terminal device authentication request messages, issue TSP platforms;
TSP platforms receive the authentication request packet from TBOX terminal devices, and generate the random number of 32 bytes
KMSrnd_32byte and 8 byte random numbers KMSrnd_8byte;Generate afterwards character string KMS_S (KMSrnd_8byte,
TSPId, TBOXrnd_8byte, SCSNo, KMSrnd_32byte), wherein TSPId is platform identification code;
Security encryption chip master key is obtained according to security encryption chip sequence number SCSNo, and KMS_S is encrypted,
The encrypted characters string ENKMS_S of formation is sent to into TBOX terminals;
TBOX terminals are decrypted character string ENKMS_S and obtain KMS_S according to safety chip master key, are then therefrom obtained
The value of SCSNo and TBOXrnd_8byte, and verified;
If check results pass through, then proceed two-way authentication, otherwise authentification failure, terminate certification;
TBOX terminals generate random number TBOXrnd_32byte of 32 bytes;TBOX terminals utilize TBOXrnd_
32byte and KMSrnd_32byte generate uplink session key KSET_U, uplink session sequence counter initial value SOC_U, descending
Session key KSET_D and descending conversation order counter initial value SOC_D;
TBOX terminals generation character string TBOX_SS (KMSrnd_8byte, TSPId, TBOXrnd_32byte, SCSNo,
KMSrnd_32byte), the safety chip master key and using TBOX terminals is encrypted to character string TBOX_SS, generates encryption
Character string ENTBOX_SS;
Encrypted characters string ENTBOX_SS is dealt into TSP platforms by TBOX terminals;
TSP platforms decrypt character string ENTBOX_SS according to safety chip master key, obtain character string TBOX_SS, and verify
The value of KMSrnd_32byte and KMSrnd_8byte;
If verification passes through, proceed certification;If do not passed through, two-way authentication failure terminates certification;
TSP platforms generate in the same way uplink session key using TBOXrnd_32byte and KMSrnd_32byte
At the beginning of KSET_U, uplink session sequence counter initial value SOC_U, descending session key KSET_D and descending conversation order counter
Value SOC_D;
Two-way authentication is completed, Path Setup success.
Further, the TSP platforms are provided with hardware encryption equipment, and the step 5 is further specially:
It is as follows to TSP platforms that TBOX terminals send message:
Send session counter to add up:TBOX terminals will need to upload to the clear data TBOX_SENDDATA of TSP platforms
It is ready to, and by uplink session counter SOC_U values+1;
Send message encryption:TBOX terminals use uplink session key KSET_U encrypting plaintext data SOC_U+TBOX_
SENDDATA, obtains encryption data ENTBOX_SENDDATA, using encryption data ENTBOX_SENDDATA as encrypted message
Body part;
Calculate cryptographic Hash:TBOX terminals calculate the cryptographic Hash of encryption data ENTBOX_SENDDATA using hmac algorithm, and
It is attached to behind encrypted message text, forms complete encrypted message;
Send encrypted message:It is flat to TSP that TBOX terminal devices send encrypted message and security encryption chip sequence number SCSNo
Platform, TSP platforms send encrypted message and security encryption chip sequence number SCSNo to hardware encryption equipment;
Message is received, integrality is verified:Hardware encryption equipment by uplink session counter SOC_U+1, first using hmac algorithm
The integrality of encrypted message is verified, whether the cryptographic Hash for verifying the afterbody of encrypted message is correct;
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon;
Decrypted message:Hardware encryption equipment decrypts the body part of encrypted message using uplink session key KSET_ENC_U,
Return in plain text to TSP platforms, be analyzed process;
It is as follows to TBOX terminals that TSP platforms send message:
Send session counter to add up:TSP platforms will need to send the clear data TSP_SENDDATA and peace of encryption
Full encryption chip sequence number SCSNo issues hardware encryption equipment, and hardware encryption equipment is by the value+1 of descending session counter value SOC_D;
Send message encryption:Hardware encryption equipment uses descending session key KSET_ENC_D encrypting plaintext data SOC_D+
TSP_SENDDATA, obtains encryption data ENTSP_SENDDATA, using encryption data ENTSP_SENDDATA as encrypted message
Body part;
Calculate cryptographic Hash:Hardware encryption equipment calculates the cryptographic Hash of encryption data ENTSP_SENDDATA using hmac algorithm,
It is attached to behind encrypted message body part, generates complete message, and returns to TSP platforms;
Send encrypted message:Encrypted message is issued TBOX terminals by TSP platforms;
Message is received, integrality is verified:The value+1 of descending session counter value SOC_D is used HMAC by TBOX terminals
Algorithm contrasts afterwards the subsidiary value of encrypted message afterbody, if correct calculating the cryptographic Hash of encrypted message text, checks message
Integrality;
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon;
Decrypted message:TBOX terminals decrypt the text value of encrypted message using descending session key KSET_ENC_D, obtain
In plain text, and processed.
Further, the upstream and downstream key generation method:
Calculate value D1 of HMAC (MACKey, TBOXrnd_32byte);
Calculate value D2 of HMAC (MACKey, KMSrnd_32byte).
Using the value and the value XOR of D2 of D1, D3 is generated;
16 bytes of starting of D3 are taken as KSET_ENC_U, is used for uplink session AES encryption, take the 16 of D3 ends
Individual byte is calculated for uplink session HMAC and used as KEY as KSET_MAC_U;By KSET_ENC_U and KSET_MAC_U
Composition uplink session key KSET_U;
Using the value and the value of D2 of D1, Accumulating generation D4
16 bytes of starting of D4 are taken as KSET_ENC_D, is used for descending session AES encryption, take the 16 of D4 ends
Individual byte is calculated for descending session HMAC and used as KEY as KSET_MAC_D;The key composition of two 16 bytes is descending
Session key KSET_D.
Further, SOC_U the and SOC_D generation methods:
Calculate value S1 of AES (AESKey, TBOXrnd_32byte);
Calculate value S2 of AES (AESKey, KMSrnd_32byte);
Using the value and the value of S2 of S1, Accumulating generation S3;
Initial 16 bytes of S3 are taken as SOC_U, uplink session sequence counter, 16 byte conducts at S3 ends are taken
SOC_D, as descending conversation order counter.
The invention has the advantages that:The method of message transmissions, realizes between a kind of TBOX terminals of the present invention and TSP platforms
The safety encryption of interaction is communicated between TBOX terminals and TSP platforms, the legal TSP of illegal TBOX terminals access is prevented from and is put down
Platform, and prevent legal TBOX terminals from accessing illegal TBOX platforms, finally prevent because between TBOX terminals and TSP platforms
Interaction flow is attacked and communication data occurs and be cracked leakage, and vehicle is maliciously controlled.
Description of the drawings
With reference to the accompanying drawings in conjunction with the embodiments the present invention is further illustrated.
Fig. 1 is the inventive method execution flow chart.
Fig. 2 is TBOX terminal security chip keys product processes in the present invention.
Fig. 3 is TBOX terminal security chip master key conveying flows in the present invention.
Fig. 4 is TBOX terminals and TSP platform two-way authentication flow processs in the present invention.
Fig. 5 is up-downgoing session key product process in the present invention.
Fig. 6 is up-downgoing session counter product process in the present invention.
Fig. 7 sends message and gives TSP platforms for TBOX terminals in the present invention.
Fig. 8 sends message and gives TBOX terminals for TSP platforms in the present invention.
Specific embodiment
As shown in figure 1, between TBOX terminals of the present invention and TSP platforms message transmissions method, comprise the steps:
A security encryption chip is provided with step 1, TBOX terminals;Random generation Che Qi group root masters are close on TSP platforms
Key GRKey;
Vehicle sub-brand name master key VBMKey is generated by hmac algorithm;Wherein Che Qi groups root master key GRKey conducts
Input message, vehicle brand identifies VBId as key;
Security encryption chip production firm master key SCVMKey is generated by hmac algorithm;Wherein security encryption chip factory
Trade mark knows SCVId as key, and vehicle sub-brand name master key VBMKey is used as input message;
Primary key SCMORKey is generated by hmac algorithm;Wherein security encryption chip sequence number SCSNo as key,
Security encryption chip production firm master key SCVMKey is used as input message;
Using primary key SCMORKey as security encryption chip master key, it is described using primary key SCMORKey as peace
Full encryption chip master key is further specially:The byte of starting 16 and the byte of end 16 of primary key SCMORKey are intercepted,
Constitute the security encryption chip master key SCMKey of 32 bytes;
Step 2, security encryption chip master key is stored to TSP platforms;
A security encryption chip is provided with step 3, TBOX terminals,
Security encryption chip master key SCMKey is sent to PC configuration tools by TSP platforms after encryption;
Programming is into security encryption chip after the data deciphering that PC configuration tools will be received, the cipher mode and decryption
Mode is AES, using security encryption chip sequence number SCSNo as key;
Step 4, TBOX terminals obtain the sequence number SCSNo of security encryption chip from built-in security encryption chip, with
And random number TBOXrnd_8byte of one 8 byte of generation;
TBOX terminals use the sequence number SCSNo and 8 byte random numbers TBOXrnd_8byte of security encryption chip, with
And TBOX terminal serial numbers generate TBOX terminal device authentication request messages, issue TSP platforms;
TSP platforms receive the authentication request packet from TBOX terminal devices, and generate the random number of 32 bytes
KMSrnd_32byte and 8 byte random numbers KMSrnd_8byte;Generate afterwards character string KMS_S (KMSrnd_8byte,
TSPId, TBOXrnd_8byte, SCSNo, KMSrnd_32byte), wherein TSPId is platform identification code;
Security encryption chip master key is obtained according to security encryption chip sequence number SCSNo, and KMS_S is encrypted,
The encrypted characters string ENKMS_S of formation is sent to into TBOX terminals;
TBOX terminals are decrypted character string ENKMS_S and obtain KMS_S according to safety chip master key, are then therefrom obtained
The value of SCSNo and TBOXrnd_8byte, and verified;
If check results pass through, then proceed two-way authentication, otherwise authentification failure, terminate certification;
TBOX terminals generate random number TBOXrnd_32byte of 32 bytes;TBOX terminals utilize TBOXrnd_
32byte and KMSrnd_32byte generate uplink session key KSET_U, uplink session sequence counter initial value SOC_U, descending
Session key KSET_D and descending conversation order counter initial value SOC_D;
TBOX terminals generation character string TBOX_SS (KMSrnd_8byte, TSPId, TBOXrnd_32byte, SCSNo,
KMSrnd_32byte), the safety chip master key and using TBOX terminals is encrypted to character string TBOX_SS, generates encryption
Character string ENTBOX_SS;
Encrypted characters string ENTBOX_SS is dealt into TSP platforms by TBOX terminals;
TSP platforms decrypt character string ENTBOX_SS according to safety chip master key, obtain character string TBOX_SS, and verify
The value of KMSrnd_32byte and KMSrnd_8byte;
If verification passes through, proceed certification;If do not passed through, two-way authentication failure terminates certification;
TSP platforms generate in the same way uplink session key using TBOXrnd_32byte and KMSrnd_32byte
At the beginning of KSET_U, uplink session sequence counter initial value SOC_U, descending session key KSET_D and descending conversation order counter
Value SOC_D;
Two-way authentication is completed, Path Setup success;
It is as follows to TSP platforms that step 5, TBOX terminals send message:
Send session counter to add up:TBOX terminals will need to upload to the clear data TBOX_SENDDATA of TSP platforms
It is ready to, and by uplink session counter SOC_U values+1;
Send message encryption:TBOX terminals use uplink session key KSET_U encrypting plaintext data SOC_U+TBOX_
SENDDATA, obtains encryption data ENTBOX_SENDDATA, using encryption data ENTBOX_SENDDATA as encrypted message
Body part;
Calculate cryptographic Hash:TBOX terminals calculate the cryptographic Hash of encryption data ENTBOX_SENDDATA using hmac algorithm, and
It is attached to behind encrypted message text, forms complete encrypted message;
Send encrypted message:It is flat to TSP that TBOX terminal devices send encrypted message and security encryption chip sequence number SCSNo
Platform, TSP platforms send encrypted message and security encryption chip sequence number SCSNo to hardware encryption equipment;
Message is received, integrality is verified:Hardware encryption equipment by uplink session counter SOC_U+1, first using hmac algorithm
The integrality of encrypted message is verified, whether the cryptographic Hash for verifying the afterbody of encrypted message is correct;
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon;
Decrypted message:Hardware encryption equipment decrypts the body part of encrypted message using uplink session key KSET_ENC_U,
Return in plain text to TSP platforms, be analyzed process;
It is as follows to TBOX terminals that TSP platforms send message:
Send session counter to add up:TSP platforms will need to send the clear data TSP_SENDDATA and peace of encryption
Full encryption chip sequence number SCSNo issues hardware encryption equipment, and hardware encryption equipment is by the value+1 of descending session counter value SOC_D;
Send message encryption:Hardware encryption equipment uses descending session key KSET_ENC_D encrypting plaintext data SOC_D+
TSP_SENDDATA, obtains encryption data ENTSP_SENDDATA, using encryption data ENTSP_SENDDATA as encrypted message
Body part;
Calculate cryptographic Hash:Hardware encryption equipment calculates the cryptographic Hash of encryption data ENTSP_SENDDATA using hmac algorithm,
It is attached to behind encrypted message body part, generates complete message, and returns to TSP platforms;
Send encrypted message:Encrypted message is issued TBOX terminals by TSP platforms;
Message is received, integrality is verified:The value+1 of descending session counter value SOC_D is used HMAC by TBOX terminals
Algorithm contrasts afterwards the subsidiary value of encrypted message afterbody, if correct calculating the cryptographic Hash of encrypted message text, checks message
Integrality;
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon;
Decrypted message:TBOX terminals decrypt the text value of encrypted message using descending session key KSET_ENC_D, obtain
In plain text, and processed.
The upstream and downstream key generation method:
Calculate value D1 of HMAC (MACKey, TBOXrnd_32byte);
Calculate value D2 of HMAC (MACKey, KMSrnd_32byte).
Using the value and the value XOR of D2 of D1, D3 is generated;
16 bytes of starting of D3 are taken as KSET_ENC_U, is used for uplink session AES encryption, take the 16 of D3 ends
Individual byte is calculated for uplink session HMAC and used as KEY as KSET_MAC_U;By KSET_ENC_U and KSET_MAC_U
Composition uplink session key KSET_U;
Using the value and the value of D2 of D1, Accumulating generation D4
16 bytes of starting of D4 are taken as KSET_ENC_D, is used for descending session AES encryption, take the 16 of D4 ends
Individual byte is calculated for descending session HMAC and used as KEY as KSET_MAC_D;The key composition of two 16 bytes is descending
Session key KSET_D.
SOC_U the and SOC_D generation methods:
Calculate value S1 of AES (AESKey, TBOXrnd_32byte);
Calculate value S2 of AES (AESKey, KMSrnd_32byte);
Using the value and the value of S2 of S1, Accumulating generation S3;
Initial 16 bytes of S3 are taken as SOC_U, uplink session sequence counter, 16 byte conducts at S3 ends are taken
SOC_D, as descending conversation order counter.
A kind of specific embodiment of the present invention:
The present invention thinking be:1st, the transmission between TBOX terminals and TSP platforms, using coded communication, safe key
The mode of access authentication.Specially:Increase by 1 module that can realize secure cryptographic algorithm in TBOX terminals, corresponding
Increase by 1 Key Management server (KMS), abbreviation hardware encryption equipment at the communication access service of TSP platforms.By such side
Method suffers that data crack leakage and illegal control command is issued protecting TBOX terminals not to be linked into the illegal center of distal end,
Support vehicles safety.2nd, the inventive method mainly uses symmetry cipher mode.
1 system general frame
System mainly (increased Key Management server by TBOX terminals (increased security encryption chip), TSP platforms
(KMS), also referred to as hardware encryption equipment), car, the part of WEB user sides four composition on mobile phone A PP or PC.
TBOX terminals:It is mainly used in collection vehicle relevant information, then TSP platforms is sent to by radio communication.Simultaneously
The WEB user sides of mobile phone A PP and PC can be controlled operation, example to vehicle by issuing a command to TBOX terminals under TSP platforms
Such as close door.Increase by 1 design in original TBOX terminals, internal MCU is connected by a SPI mouth or UART mouths
To a security encryption chip, it is possible to achieve include:Obtain security encryption chip sequence number, data encryption, data deciphering, random
Numeral is generated, the function such as key and random number is preserved.The safety chip at this place supports general International Algorithmic, including 3DES, AES,
SHA etc..
TSP platforms:Be responsible for receiving the data that TBOX terminals are uploaded, carry out Treatment Analysis, and by user from mobile phone A PP or
It is wagon control instruction message that WEB user sides are issued, is sent to TBOX terminals.Increase in original TSP Platform Designings:At end
End wireless network increases by 1 Key Management server (KMS), abbreviation hardware encryption equipment where accessing.Hardware encryption equipment is responsible for
Generation, distribution, storage, backup, management, destruction of key etc., while being responsible for the encryption and decryption to mutual message.
Car:Where user finally realizes that the thing of function control, TBOX terminals are installed, there is provided TBOX terminal supplying powers.
TBOX terminals can collect the various information of vehicle, including:Position, attitude, vehicle interior status data etc. are (total by CAN
Line).
In such a system, inside the hardware encryption equipment of TSP platform sides and the security encryption chip of TBOX end sides
Corresponding encryption key is stored, the end-to-end encryption mechanism that communicates between TSP platforms and TBOX terminals is realized, it is following main to realize
Security function:
Two-way authentication function between TSP platforms and TBOX terminals.
The encrypted transmission of crucial sensitive data.
The completeness check of information data.
In order to realize function above, it is necessary first to generate the master key of each distinctive security encryption chip of TBOX terminals,
And safely transfer secret key, write security encryption chip.
Afterwards, safe and reliable company is set up by a series of process of two-way authentications between TBOX terminals and TSP platforms
Connect, and generate interim session key.
Finally, TBOX terminals can carry out the communication of safe encryption by interim session key.
Session key cancels automatically after a conversation end, during next one session initiation, then carries out two-way authentication,
New Session key establishment.
AES used in this method is mainly used:AES (128) and hmac algorithm (all of hmac algorithm
All using SHA (256) as internal hashing algorithm).
The method of calling of hmac algorithm is HMAC (key, data).Key is key, and data is input message.
The master key product process of security encryption chip is as follows:
For different TBOX terminals, because its different vehicle for being available to different depots is used, therefore according to car
Enterprise is different, vehicle sub-brand name is different, and the security encryption chip producer that depot's requirement is customized is different, the sequence of each security encryption chip
Row number is different, generates the security encryption chip master key of different TBOX terminals.
As shown in Fig. 2 idiographic flow is described as follows:
Che Qi groups root master key is generated:Operating personnel's operation hardware encryption equipment generates safety chip master key.The first step
It is that hardware encryption equipment is by internal physical noise source randomizer, and the random Che Qi groups root master for generating 32 bytes is close
Key GRKey, and preserve.Subsequently such as need to use, it is not necessary to regenerate.
Vehicle sub-brand name master key is generated:Hardware encryption equipment identifies VBId (16 byte) and calculates vehicle according to vehicle brand
Brand master key VBMKey (64 byte).The algorithm for using is HMAC, and the mode of calculating is to use vehicle brand to identify VBId (16
Byte) used as key, Che Qi groups root master key GRKey (32 byte) are used as input message, method of calling:HMAC (VBId,
GRKey)。
Security encryption chip production firm master key is generated:Hardware encryption equipment is according to safety chip identification of the manufacturer SCVId (16
Byte) calculate security encryption chip production firm master key SCVMKey (64 byte).The algorithm for using is HMAC, the side of calculating
Formula is to use safety chip identification of the manufacturer SCVId (16 byte) as key, and vehicle sub-brand name master key VBMKey (64 byte) is made
To be input into message, method of calling:HMAC (SCVId, VBMKey).
Security encryption chip master key is generated:Hardware encryption equipment is according to calculating safety chip master key SCMKey (32 words
Section).First by safety chip sequence number SCSNo (16 byte) as key, security encryption chip production firm master key
SCVMKey (64 byte) is input into as message, and adopts hmac algorithm, generates 64 byte primary key SCMORKey, called side
Formula is HMAC (SCSNo, SCVMKey).Second step, intercepts the 16 initial bytes of primary key SCMORKey and 16 words of most end
Section, constitutes the safety chip master key SCMKey of 32 bytes.
Security encryption chip master key is transmitted:Safety chip master key SCMKey is passed to TBOX terminals by hardware encryption equipment
On security encryption chip carry out write preservation.With regard to the specific conveying flow of security encryption chip, as shown in Figure 3.
So far, after security encryption chip master key is generated, carry out transmitting the security encryption chip for being saved in TBOX terminals.
Security encryption chip master key SCMKey is actually a key group, is divided into two parts, the byte of each length 16, this
Two keys are respectively:
MACKey:The key value of MAC value calculating is exclusively used in, key when interacting for subsequent packet in hmac algorithm is used;
Wherein MACKey is the content of 16 bytes before SCMKey.AESKey:The key value of cryptographic operation is exclusively used in, for follow-up report
Key during text interaction in aes algorithm is used;AESKey is exactly the content of 16 bytes behind SCMKey.
2nd, security encryption chip master key conveying flow:Key conveying flow to security encryption chip, needs in TBOX
Terminal is carried out when production, as shown in Figure 3.
The whole machine production start parameter configurations of TBOX:TBOX terminals complete final assembly production, by the PC used in production
Configuration tool, proceeds by parameter configuration.(PC configuration tools are communicated by the serial ports and TBOX terminals connection on PC, real
Existing correlation function)
Operative configuration security encryption chip master key function:Producing line operating personnel use the configuration safety in PC configuration tools
Encryption chip master key SCMkey functions, press function button.
Request security encryption chip sequence number:PC configuration tools are said the word by serial ports and give TBOX terminals, are asked for safety and are added
Close chip serial number SCSNo.
Obtain security encryption chip sequence number:TBOX terminals receive the order of PC configuration tools, obtain to security encryption chip
After taking security encryption chip sequence number SCSNo, PC configuration tools are sent to.
Transmit Sequence Number and give TSP platforms with terminal item number information:PC configuration tools are by the TBOX end product material for being produced
Number and security encryption chip sequence number SCSNo packing after, the TSP platforms of distal end are sent to by network.
TSP platform query-related informations:TSP platforms inquire correspondence by background system according to TBOX end product item numbers
Depot's title and vehicle information, safety chip encryption trade name, send these information and security encryption chip sequence
Number SCSNo carries out security encryption chip master key SCMkey and calculates to the hardware encryption equipment (Key Management server) of TSP platforms.
Security encryption chip master key calculation:The information that Key Management server is transmitted according to TSP platforms, inquires car enterprise
Group root master key GRKey (32 byte), vehicle brand mark VBId (16 byte), safety chip identification of the manufacturer SCVId (16 words
Section) and security encryption chip master key calculation is carried out according to the security encryption chip sequence number SCSNo of TSP platforms transmission.
Security encryption chip master key encryption:The security encryption chip master key SCMkey that Key Management server will be generated
TSP platforms are sent to after being encrypted using security encryption chip sequence number SCSNo (16 byte).Cipher mode is AES
(128), using security encryption chip sequence number SCSNo (16 byte) as key.
The key of encryption returns configuration tool:Safety chip master key after encryption is issued PC configuration tools by TSP platforms,
PC configuration tools are handed down to TBOX terminals by serial ports.
The secret key decryption of encryption:Encryption of the TBOX terminals using security encryption chip sequence number SCSNo as key to issuing
Key be decrypted, manner of decryption is AES (128).
Security encryption chip master key writes:Security encryption chip master key is write security encryption chip by TBOX terminals.
Write is completed, is returned successfully:TBOX terminals " return " key" arranges successful response and gives PC configuration tools, completes safety
Encryption chip master key programming.
Two-way authentication flow process is as follows:
TBOX terminals and TSP platforms are mutually setting up communication connection, before carrying out data interaction, it is necessary to carry out two-way authentication,
To ensure the legitimacy of terminal and platform.
Two-way authentication is the effective means to secure data protection, its safety operation comprising two aspects:
TSP platforms need to provide legitimacy of the authentication information for TBOX client checks TSP platforms to TBOX terminals.
TBOX terminals are also required to provide the legitimacy that authentication information verifies TBOX terminals for TSP platforms to TSP platforms simultaneously.
Before each new session start, server should carry out two-way authentication with terminal.Complete two-way authentication it
Afterwards, equipment will provide the corresponding access rights to equipment to platform.Two-way authentication based on AES can be in the safety of checking both sides
The initial value SOC of common a session key and sequence counter is produced after key.SOC was mainly used within the session cycle
Anti-replay mechanism, often once encrypted/decrypted before computing using session key, it is necessary to which the value of SOC is added 1.
As shown in figure 4, obtaining safety chip sequence number and generating 8 random numbers:TBOX terminals are from built-in safety encryption
The sequence number SCSNo (16 byte) of security encryption chip, and random number TBOXrnd_ for generating 8 bytes are obtained in chip
8byte。
TBOX terminals send certification request:TBOX terminals using security encryption chip sequence number SCSNo and 8 bytes with
Machine number TBOXrnd_8byte, and TBOX terminal serial numbers generation TBOX terminal device authentication request messages, issue TSP platforms.
Request is issued hardware encryption equipment by TSP platforms:TSP platforms receive the certification request report from TBOX terminal devices
Text, is sent to hardware encryption equipment.
Hardware encryption equipment generates random number:Hardware encryption equipment generate 32 bytes random number KMSrnd_32byte with
And 8 byte random numbers KMSrnd_8byte.
Hardware encryption equipment generates character string:Hardware encryption equipment generation character string KMS_S (KMSrnd_8byte, TSPId,
TBOXrnd_8byte, SCSNo, KMSrnd_32byte), TSPId is platform identification code.
Hardware encryption equipment encrypted characters string:Hardware encryption equipment obtains safety and adds according to security encryption chip sequence number SCSNo
Close chip master key is simultaneously encrypted to KMS_S, and after character string KMS_S is encrypted, the encrypted characters string ENKMS_S of formation is issued
TSP platforms.AES is AES (128).
TSP platforms issue encrypted characters string and give TBOX terminals:Encrypted characters string ENKMS_S is sent to TBOX by TSP platforms
Terminal.
Encrypted characters string is decrypted:TBOX terminals are decrypted character string ENKMS_S and obtain KMS_S according to safety chip master key,
Then the value of SCSNo and TBOXrnd_8byte is therefrom obtained, and is verified.
Check results process:If check results pass through, then proceed two-way authentication, otherwise authentification failure, terminate stream
Journey.
TBOX terminals generate session key and session counter:TBOX terminals generate the random number of 32 bytes, and profit
Uplink session key KSET_U and uplink session sequence counter initial value are generated with TBOXrnd_32byte and KMSrnd_32byte
SOC_U, descending session key KSET_D and descending conversation order counter initial value SOC_D.Session key and session counter
Generating algorithm is referring to Fig. 6 and Fig. 5.
TBOX terminals generate character string and encrypt:TBOX terminals generation character string TBOX_SS (KMSrnd_8byte,
TSPId, TBOXrnd_32byte, SCSNo, KMSrnd_32byte), and using TBOX terminals safety chip master key to word
Symbol string TBOX_SS is encrypted, and generates encrypted characters string ENTBOX_SS.AES adopts AES (128).
TBOX terminals send encrypted characters string:Encrypted characters string ENTBOX_SS is dealt into TSP platforms by TBOX terminals.
TSP platforms forward character string to hardware encryption equipment:TSP platforms are dealt into encrypted characters string ENTBOX_SS in platform
The hardware encryption equipment in portion.
Hardware encryption equipment verifies random number value:Hardware encryption equipment obtains card master key according to SCSNo, decrypts character string
ENTBOX_SS, obtains character string TBOX_SS, and verifies the value of KMSrnd_32byte and KMSrnd_8byte.
Verification random number outcome:If verification passes through, proceed certification;If do not passed through, two-way authentication failure,
Terminate certification.
Hardware encryption equipment generates session key:Hardware encryption equipment is according to TBOXrnd_32byte and KMSrnd_32byte
Generate uplink session key KSET_U and uplink session sequence counter initial value SOC_U, descending session key KSET_D and descending
Conversation order counter initial value SOC_D, and preserve.The generating algorithm of session key and session counter such as Fig. 5 and Fig. 6 institutes
Show.
Two-way authentication is set up:Two-way authentication is set up, and can start to be interacted using encrypted message.
The product process of session key and session counter
What up-downgoing session key was generated is the key group of 32 bytes, is divided into two parts, is respectively used to MAC calculating
Calculate with AES encryption.
What up-downgoing session counter was generated is the number of 16 bytes.
As shown in figure 5, cryptographic Hash 1 is calculated:Value D1 of HMAC (MACKey, TBOXrnd_32byte) is calculated using algorithm
(64).
Cryptographic Hash 2 is calculated:Value D2 (64) of HMAC (MACKey, KMSrnd_32byte) is calculated using algorithm.
XOR value is calculated:Using the value and the value XOR of D2 of D1, D3 (64) is generated.
Up key is generated:Initial 16 bytes of D3 are taken as KSET_ENC_U, are used for uplink session AES encryption,
16 bytes of D3 most ends are taken as KSET_MAC_U, is calculated for uplink session HMAC and is used as KEY.Two 16 bytes
Key composition uplink session key KSET_U (32 byte).
Accumulated value is calculated:Using the value and the value of D2 of D1, Accumulating generation D4 (64)
Descending key is generated:Initial 16 bytes of D4 are taken as KSET_ENC_D, are used for descending session AES encryption,
16 bytes of D4 most ends are taken as KSET_MAC_D, is calculated for descending session HMAC and is used as KEY.Two 16 bytes
Key constitute descending session key KSET_D (32 byte).
As shown in fig. 6, up-downgoing session counter product process
Secret value 1 is calculated:Value S1 (88) of AES (AESKey, TBOXrnd_32byte) is calculated using algorithm.
Secret value 2 is calculated:Value S2 (88) of AES (AESKey, KMSrnd_32byte) is calculated using algorithm.
Cumulative and calculating:Using the value and the value of S2 of S1, Accumulating generation S3 (88).
Session counter is generated:Initial 16 bytes of S3 are taken as SOC_U, uplink session sequence counter, S3 most ends are taken
16 bytes of tail as SOC_D, as descending conversation order counter.
5th, after TBOX terminals and the two-way authentication of TSP platforms are set up, communication can be encrypted, as described in Fig. 7 and Fig. 8:
As shown in fig. 7, send session counter adding up:TBOX terminals will need to upload to the clear data of TSP platforms
TBOX_SENDDATA is ready to, and by uplink session counter SOC_U values+1.
Send message encryption:TBOX terminals use uplink session key KSET_U encrypting plaintext data SOC_U+TBOX_
SENDDATA, obtains encryption data ENTBOX_SENDDATA, using encryption data ENTBOX_SENDDATA as encrypted message
Body part.
Calculate cryptographic Hash:TBOX terminals calculate the cryptographic Hash of encryption data ENTBOX_SENDDATA using hmac algorithm, and
It is attached to behind encrypted message text, forms complete encrypted message.
Send encrypted message:It is flat to TSP that TBOX terminal devices send encrypted message and security encryption chip sequence number SCSNo
Platform, TSP platforms send encrypted message and security encryption chip sequence number SCSNo to hardware encryption equipment.
Message is received, integrality is verified:Hardware encryption equipment by uplink session counter SOC_U+1, first using hmac algorithm
The integrality of encrypted message is verified, whether the cryptographic Hash for verifying the afterbody of encrypted message is correct.
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon.
Decrypted message:Hardware encryption equipment decrypts the body part of encrypted message using uplink session key KSET_ENC_U,
Return in plain text to TSP platforms, be analyzed process.
As shown in figure 8, send session counter adding up:TSP platforms will need to send the clear data TSP_ of encryption
SENDDATA and security encryption chip sequence number SCSNo issue hardware encryption equipment, and hardware encryption equipment is by descending session counter
The value+1 of value SOC_D.
Send message encryption:Hardware encryption equipment uses descending session key KSET_ENC_D encrypting plaintext data SOC_D+
TSP_SENDDATA, obtains encryption data ENTSP_SENDDATA, using encryption data ENTSP_SENDDATA as encrypted message
Body part.
Calculate cryptographic Hash:Hardware encryption equipment calculates the cryptographic Hash of encryption data ENTSP_SENDDATA using hmac algorithm,
It is attached to behind encrypted message body part, generates complete message, and returns to TSP platforms.
Send encrypted message:Encrypted message is issued TBOX terminals by TSP platforms.
Message is received, integrality is verified:The value+1 of descending session counter value SOC_D is used HMAC by TBOX terminals
Algorithm contrasts afterwards the subsidiary value of encrypted message afterbody, if correct calculating the cryptographic Hash of encrypted message text, checks message
Integrality.
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon.
Decrypted message:TBOX terminals decrypt the text value of encrypted message using descending session key KSET_ENC_D, obtain
In plain text.
The value of session key and up-downgoing session counter SOC in chip will continuously effective, until session is due under
Row situation and terminate:
Security encryption chip the reason such as is restarted and is powered down reset because of TBOX terminals.
TBOX terminal disconnections connect with TSP platforms again.
TBOX terminals are cancelled using cipher mode and the connection of TSP platforms, use clear-text way instead.
Although the foregoing describing the specific embodiment of the present invention, those familiar with the art should manage
Solution, the specific embodiment described by us is merely exemplary, rather than for the restriction to the scope of the present invention, is familiar with this
The technical staff in field should be covered the present invention's in the equivalent modification and change made according to the spirit of the present invention
In scope of the claimed protection.
Claims (9)
1. between a kind of TBOX terminals and TSP platforms message transmissions method, it is characterised in that:Comprise the steps:
Step 1, generation security encryption chip master key;
Step 2, security encryption chip master key is stored to TSP platforms;
Step 3, by the programming of security encryption chip master key to TBOX terminals;
Step 4, TBOX terminals and TSP Platform communication passages are set up, and be authenticated according to master key;
Step 5, TBOX terminals and TSP platforms carry out the mutual transmission of message.
2. between a kind of TBOX terminals according to claim 1 and TSP platforms message transmissions method, it is characterised in that:
A security encryption chip is provided with the TBOX terminals, the step 1 is further specially:
It is random on TSP platforms to generate Che Qi group root master key GRKey;
Vehicle sub-brand name master key VBMKey is generated by hmac algorithm;Wherein Che Qi groups root master key GRKey is used as input
Message, vehicle brand identifies VBId as key;
Security encryption chip production firm master key SCVMKey is generated by hmac algorithm;Wherein security encryption chip manufacturer marks
SCVId is known as key, vehicle sub-brand name master key VBMKey is used as input message;
Primary key SCMORKey is generated by hmac algorithm;Wherein security encryption chip sequence number SCSNo is used as key, safety
Encryption chip production firm master key SCVMKey is used as input message;
Using primary key SCMORKey as security encryption chip master key.
3. the method for message transmissions between a kind of TBOX terminals and TSP platforms as claimed in claim 2, it is characterised in that:Institute
State and be further specially primary key SCMORKey as security encryption chip master key:Intercept primary key SCMORKey's
Initial 16 bytes and the byte of end 16, constitute the security encryption chip master key SCMKey of 32 bytes.
4. the method for message transmissions between a kind of TBOX terminals and TSP platforms as claimed in claim 1, it is characterised in that:Institute
State and a security encryption chip is provided with TBOX terminals, the step 3 is further specially:
Security encryption chip master key SCMKey is sent to PC configuration tools by TSP platforms after encryption;
Programming is into security encryption chip after the data deciphering that PC configuration tools will be received.
5. the method for message transmissions between a kind of TBOX terminals and TSP platforms as claimed in claim 4, it is characterised in that:Institute
State cipher mode and manner of decryption is AES, using security encryption chip sequence number SCSNo as key.
6. the method for message transmissions between a kind of TBOX terminals and TSP platforms as claimed in claim 1, it is characterised in that:Institute
State step 4 to be further specially:
TBOX terminals obtain the sequence number SCSNo of security encryption chip from built-in security encryption chip, and generate one 8
Random number TBOXrnd_8byte of byte;
TBOX terminals use the sequence number SCSNo and 8 byte random numbers TBOXrnd_8byte of security encryption chip, and
TBOX terminal serial numbers generate TBOX terminal device authentication request messages, issue TSP platforms;
TSP platforms receive the authentication request packet from TBOX terminal devices, and generate random number KMSrnd_ of 32 bytes
32byte and 8 byte random numbers KMSrnd_8byte;Generate afterwards character string KMS_S (KMSrnd_8byte, TSPId,
TBOXrnd_8byte, SCSNo, KMSrn d_32byte), wherein TSPId is platform identification code;
Security encryption chip master key is obtained according to security encryption chip sequence number SCSNo, and KMS_S is encrypted, by shape
Into encrypted characters string ENKMS_S be sent to TBOX terminals;
TBOX terminals according to safety chip master key decrypt character string ENKMS_S obtain KMS_S, then therefrom obtain SCSNo and
The value of TBOXrnd_8byte, and verified;
If check results pass through, then proceed two-way authentication, otherwise authentification failure, terminate certification;
TBOX terminals generate random number TBOXrnd_32byte of 32 bytes;TBOX terminals using TBOXrnd_32byte and
KMSrnd_32byte generates uplink session key KSET_U, uplink session sequence counter initial value SOC_U, descending session key
KSET_D and descending conversation order counter initial value SOC_D;
TBOX terminals generate character string TBOX_SS (KMSrnd_8byte, TSPId, TBOXrnd_32byte, SCSNo, KMSrnd_
32byte), the safety chip master key and using TBOX terminals is encrypted to character string TBOX_SS, generates encrypted characters string
ENTBOX_SS;
Encrypted characters string ENTBOX_SS is dealt into TSP platforms by TBOX terminals;
TSP platforms decrypt character string ENTBOX_SS according to safety chip master key, obtain character string TBOX_SS, and verify
The value of KMSrnd_32byte and KMSrnd_8byte;
If verification passes through, proceed certification;If do not passed through, two-way authentication failure terminates certification;
TSP platforms generate in the same way uplink session key KSET_ using TBOXrnd_32byte and KMSrnd_32byte
U, uplink session sequence counter initial value SOC_U, descending session key KSET_D and descending conversation order counter initial value
SOC_D;
Two-way authentication is completed, Path Setup success.
7. the method for message transmissions between a kind of TBOX terminals and TSP platforms as claimed in claim 6, it is characterised in that:Institute
State TSP platforms and be provided with hardware encryption equipment, the step 5 is further specially:
It is as follows to TSP platforms that TBOX terminals send message:
Send session counter to add up:TBOX terminals will need the clear data TBOX_SENDDATA for uploading to TSP platforms to prepare
It is good, and by uplink session counter SOC_U values+1;
Send message encryption:TBOX terminals use uplink session key KSET_U encrypting plaintext data SOC_U+TBOX_
SENDDATA, obtains encryption data ENTBOX_SENDDATA, using encryption data ENTBOX_SENDDATA as encrypted message
Body part;
Calculate cryptographic Hash:TBOX terminals calculate the cryptographic Hash of encryption data ENTBOX_SENDDATA using hmac algorithm, and are attached to
Behind encrypted message text, complete encrypted message is formed;
Send encrypted message:TBOX terminal devices send encrypted message and security encryption chip sequence number SCSNo gives TSP platforms,
TSP platforms send encrypted message and security encryption chip sequence number SCSNo to hardware encryption equipment;
Message is received, integrality is verified:Hardware encryption equipment first adds uplink session counter SOC_U+1 using hmac algorithm pair
The integrality of secret report text is verified, and whether the cryptographic Hash for verifying the afterbody of encrypted message is correct;
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon;
Decrypted message:Hardware encryption equipment decrypts the body part of encrypted message using uplink session key KSET_ENC_U, returns
TSP platforms are given in plain text, are analyzed process;
It is as follows to TBOX terminals that TSP platforms send message:
Send session counter to add up:TSP platforms will need the clear data TSP_SENDDATA and safety that send encryption to add
Close chip serial number SCSNo issues hardware encryption equipment, and hardware encryption equipment is by the value+1 of descending session counter value SOC_D;
Send message encryption:Hardware encryption equipment uses descending session key KSET_ENC_D encrypting plaintext data SOC_D+TSP_
SENDDATA, obtains encryption data ENTSP_SENDDATA, using encryption data ENTSP_SENDDATA as encrypted message just
Literary part;
Calculate cryptographic Hash:Hardware encryption equipment calculates the cryptographic Hash of encryption data ENTSP_SENDDATA using hmac algorithm, is attached to
Behind encrypted message body part, complete message is generated, and return to TSP platforms;
Send encrypted message:Encrypted message is issued TBOX terminals by TSP platforms;
Message is received, integrality is verified:The value+1 of descending session counter value SOC_D is used hmac algorithm by TBOX terminals
To calculate the cryptographic Hash of encrypted message text, the subsidiary value of encrypted message afterbody is contrasted afterwards, if correct, check the complete of message
Whole property;
Check results:Check results pass through, then enter decryption link, otherwise it is assumed that message is imperfect, abandon;
Decrypted message:TBOX terminals decrypt the text value of encrypted message using descending session key KSET_ENC_D, obtain in plain text,
And processed.
8. the method for message transmissions between a kind of TBOX terminals and TSP platforms as claimed in claim 7, it is characterised in that:Institute
State upstream and downstream key generation method:
Calculate value D1 of HMAC (MACKey, TBOXrnd_32byte);
Calculate value D2 of HMAC (MACKey, KMSrnd_32byte).
Using the value and the value XOR of D2 of D1, D3 is generated;
16 bytes of starting of D3 are taken as KSET_ENC_U, is used for uplink session AES encryption, take 16 words at D3 ends
Section is calculated for uplink session HMAC and used as KEY as KSET_MAC_U;KSET_ENC_U and KSET_MAC_U is constituted
Uplink session key KSET_U;
Using the value and the value of D2 of D1, Accumulating generation D4
16 bytes of starting of D4 are taken as KSET_ENC_D, is used for descending session AES encryption, take 16 words at D4 ends
Section is calculated for descending session HMAC and used as KEY as KSET_MAC_D;The key of two 16 bytes constitutes descending session
Key KSET_D.
9. the method for message transmissions between a kind of TBOX terminals and TSP platforms as claimed in claim 7, it is characterised in that:Institute
State SOC_U and SOC_D generation methods:
Calculate value S1 of AES (AESKey, TBOXrnd_32byte);
Calculate value S2 of AES (AESKey, KMSrnd_32byte);
Using the value and the value of S2 of S1, Accumulating generation S3;
Initial 16 bytes of S3 are taken as SOC_U, uplink session sequence counter, 16 bytes at S3 ends is taken as SOC_D,
As descending conversation order counter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610973096.9A CN106572106B (en) | 2016-11-07 | 2016-11-07 | Method for transmitting message between TBOX terminal and TSP platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610973096.9A CN106572106B (en) | 2016-11-07 | 2016-11-07 | Method for transmitting message between TBOX terminal and TSP platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106572106A true CN106572106A (en) | 2017-04-19 |
CN106572106B CN106572106B (en) | 2020-02-21 |
Family
ID=58539875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610973096.9A Active CN106572106B (en) | 2016-11-07 | 2016-11-07 | Method for transmitting message between TBOX terminal and TSP platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106572106B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107508797A (en) * | 2017-07-28 | 2017-12-22 | 广州亿程交通信息有限公司 | Car networking platform data transmission security method |
CN107666420A (en) * | 2017-08-30 | 2018-02-06 | 宁波梦居智能科技有限公司 | A kind of intelligent domestic gateway production control and identity mirror method for distinguishing |
CN108243181A (en) * | 2017-10-09 | 2018-07-03 | 北京车和家信息技术有限公司 | A kind of car networking terminal, data ciphering method and car networking server |
CN108494725A (en) * | 2018-01-30 | 2018-09-04 | 惠州市德赛西威汽车电子股份有限公司 | A kind of encryption communication method of vehicle-mounted CAN bus message |
CN108528385A (en) * | 2018-03-21 | 2018-09-14 | 北京汽车股份有限公司 | Automobile body antitheft system and its control method |
CN109327466A (en) * | 2018-11-16 | 2019-02-12 | 广州创想云科技有限公司 | Data encryption and transmission method, electronic equipment, storage medium |
CN109495449A (en) * | 2018-10-18 | 2019-03-19 | 东南(福建)汽车工业有限公司 | A kind of vehicle CAN bus encryption method |
CN109962901A (en) * | 2017-12-26 | 2019-07-02 | 广东电网有限责任公司电力调度控制中心 | A kind of electric power wireless public network data safe transmission method |
CN110896395A (en) * | 2018-09-13 | 2020-03-20 | 北京奇虎科技有限公司 | Method and device for providing encryption service |
CN111294771A (en) * | 2018-12-10 | 2020-06-16 | 大陆汽车电子(连云港)有限公司 | In-vehicle device, system for implementing in-vehicle communication and related method |
CN113541955A (en) * | 2021-06-03 | 2021-10-22 | 国电南瑞科技股份有限公司 | Encryption method and device for 2M communication of security control system |
CN113542428A (en) * | 2021-07-29 | 2021-10-22 | 中国第一汽车股份有限公司 | Vehicle data uploading method and device, vehicle, system and storage medium |
CN113765651A (en) * | 2021-07-27 | 2021-12-07 | 延锋伟世通电子科技(上海)有限公司 | Safety communication method suitable for chips in vehicle-mounted ECU |
CN116795741A (en) * | 2023-08-28 | 2023-09-22 | 凡澈科技(武汉)有限公司 | Method and system for preventing memory data from being deleted and tampered |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101686225A (en) * | 2008-09-28 | 2010-03-31 | ***股份有限公司 | Methods of data encryption and key generation for on-line payment |
CN102186169A (en) * | 2010-04-30 | 2011-09-14 | 北京华大智宝电子***有限公司 | Identity authentication method, device and system |
EP2611102A1 (en) * | 2011-12-27 | 2013-07-03 | Ricoh Company, Ltd. | Providing a web application with measures against vulnerabilities |
CN103400062A (en) * | 2013-07-30 | 2013-11-20 | 深圳创维数字技术股份有限公司 | Method and system for authorized use of software |
CN104363266A (en) * | 2014-10-23 | 2015-02-18 | 北京远特科技有限公司 | Remote vehicle control method, TSP (telematics service provider) backstage system and vehicular terminal |
-
2016
- 2016-11-07 CN CN201610973096.9A patent/CN106572106B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101686225A (en) * | 2008-09-28 | 2010-03-31 | ***股份有限公司 | Methods of data encryption and key generation for on-line payment |
CN102186169A (en) * | 2010-04-30 | 2011-09-14 | 北京华大智宝电子***有限公司 | Identity authentication method, device and system |
EP2611102A1 (en) * | 2011-12-27 | 2013-07-03 | Ricoh Company, Ltd. | Providing a web application with measures against vulnerabilities |
CN103400062A (en) * | 2013-07-30 | 2013-11-20 | 深圳创维数字技术股份有限公司 | Method and system for authorized use of software |
CN104363266A (en) * | 2014-10-23 | 2015-02-18 | 北京远特科技有限公司 | Remote vehicle control method, TSP (telematics service provider) backstage system and vehicular terminal |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107508797B (en) * | 2017-07-28 | 2020-08-25 | 广州亿程交通信息有限公司 | Data transmission security method for Internet of vehicles platform |
CN107508797A (en) * | 2017-07-28 | 2017-12-22 | 广州亿程交通信息有限公司 | Car networking platform data transmission security method |
CN107666420A (en) * | 2017-08-30 | 2018-02-06 | 宁波梦居智能科技有限公司 | A kind of intelligent domestic gateway production control and identity mirror method for distinguishing |
CN107666420B (en) * | 2017-08-30 | 2020-12-15 | 宁波梦居智能科技有限公司 | Method for production control and identity authentication of intelligent home gateway |
CN108243181A (en) * | 2017-10-09 | 2018-07-03 | 北京车和家信息技术有限公司 | A kind of car networking terminal, data ciphering method and car networking server |
CN109962901A (en) * | 2017-12-26 | 2019-07-02 | 广东电网有限责任公司电力调度控制中心 | A kind of electric power wireless public network data safe transmission method |
CN108494725A (en) * | 2018-01-30 | 2018-09-04 | 惠州市德赛西威汽车电子股份有限公司 | A kind of encryption communication method of vehicle-mounted CAN bus message |
CN108494725B (en) * | 2018-01-30 | 2021-03-30 | 惠州市德赛西威汽车电子股份有限公司 | Encrypted communication method for vehicle-mounted CAN bus message |
CN108528385A (en) * | 2018-03-21 | 2018-09-14 | 北京汽车股份有限公司 | Automobile body antitheft system and its control method |
CN110896395A (en) * | 2018-09-13 | 2020-03-20 | 北京奇虎科技有限公司 | Method and device for providing encryption service |
CN109495449A (en) * | 2018-10-18 | 2019-03-19 | 东南(福建)汽车工业有限公司 | A kind of vehicle CAN bus encryption method |
CN109327466A (en) * | 2018-11-16 | 2019-02-12 | 广州创想云科技有限公司 | Data encryption and transmission method, electronic equipment, storage medium |
CN111294771A (en) * | 2018-12-10 | 2020-06-16 | 大陆汽车电子(连云港)有限公司 | In-vehicle device, system for implementing in-vehicle communication and related method |
CN113541955A (en) * | 2021-06-03 | 2021-10-22 | 国电南瑞科技股份有限公司 | Encryption method and device for 2M communication of security control system |
CN113765651A (en) * | 2021-07-27 | 2021-12-07 | 延锋伟世通电子科技(上海)有限公司 | Safety communication method suitable for chips in vehicle-mounted ECU |
CN113542428A (en) * | 2021-07-29 | 2021-10-22 | 中国第一汽车股份有限公司 | Vehicle data uploading method and device, vehicle, system and storage medium |
CN113542428B (en) * | 2021-07-29 | 2022-08-02 | 中国第一汽车股份有限公司 | Vehicle data uploading method and device, vehicle, system and storage medium |
CN116795741A (en) * | 2023-08-28 | 2023-09-22 | 凡澈科技(武汉)有限公司 | Method and system for preventing memory data from being deleted and tampered |
CN116795741B (en) * | 2023-08-28 | 2023-11-10 | 凡澈科技(武汉)有限公司 | Method and system for preventing memory data from being deleted and tampered |
Also Published As
Publication number | Publication date |
---|---|
CN106572106B (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106357400B (en) | Establish the method and system in channel between TBOX terminal and TSP platform | |
CN106572106A (en) | Method of transmitting message between TBOX terminal and TSP platform | |
CN106506149B (en) | Key generation method and system between a kind of TBOX terminal and TSP platform | |
CN108055235B (en) | Control method of intelligent lock, related equipment and system | |
CN100499452C (en) | Device and method for securely transmitting authorization data | |
US8799657B2 (en) | Method and system of reconstructing a secret code in a vehicle for performing secure operations | |
CN111028397B (en) | Authentication method and device, and vehicle control method and device | |
JP2014204444A (en) | Method and device for detecting manipulation of sensor and/or sensor data of the sensor | |
CN101251883B (en) | Method for performing safety controllable remote upgrade for software protecting device | |
CN110768938A (en) | Vehicle safety communication method and device | |
CN104583028B (en) | One-way key fob and vehicle pairing | |
CN104322003A (en) | Cryptographic authentication and identification method using real-time encryption | |
CN106850207A (en) | CA-free identity authentication method and system | |
CN105897748B (en) | A kind of transmission method and equipment of symmetric key | |
CN110855616B (en) | Digital key generation system | |
CN112182551B (en) | PLC equipment identity authentication system and PLC equipment identity authentication method | |
CN112653719A (en) | Automobile information safety storage method and device, electronic equipment and storage medium | |
CN106789024A (en) | A kind of remote de-locking method, device and system | |
CN110383755A (en) | The network equipment and trusted third party's equipment | |
CN113114621A (en) | Communication method for bus dispatching system and bus dispatching system | |
CN105612728A (en) | Secured data channel authentication implying a shared secret | |
CN106357633A (en) | Method and device for protecting car TCU data | |
CN114267100A (en) | Unlocking authentication method and device, security chip and electronic key management system | |
CN102404329A (en) | Method for validating and encrypting interaction between user terminal and virtual community platform | |
CN109451504A (en) | Internet of Things mould group method for authenticating and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |