Summary of the invention
In order to solve the above-mentioned technical problem that exists in the background technology, the invention provides the method for higher read write line of a kind of fail safe and secure electronic label communication and realize the read write line and the electronic tag of this method.
Technical solution of the present invention is: the invention provides the method for a kind of read write line and secure electronic label communication, its special character is: said method comprising the steps of:
1) read write line and electronic tag are set up physical connection;
2) read write line and electronic tag are set up safety chain.
Above-mentioned steps 2) specific implementation is:
2.1.0) read write line has master key MK, label has wildcard PSK, and wildcard PSK is derived by calculating by the sign TID of master key MK and label;
2.1.1) read write line sends security parameter to label and obtain message, security parameter obtains the safety chain that message is used to start read write line and label and sets up process;
2.1.2) after label received that the security parameter of read write line obtains message, label configurations security parameter response message sent to read write line, comprises the security algorithm type that label is supported in the described security parameter response message;
2.1.3) read write line is to label transmission discriminating request message, described discriminating request message comprises N
rField, N
rIt is the random number that read write line generates;
2.1.4) after label received the discriminating request message of read write line, if need differentiate read write line, then label generated random number N
t, and utilize wildcard PSK to N
r|| N
tCalculation of integrity check code MIC
1, label returns differentiates that request response to read write line, comprises N in the described discriminating request response
r, N
tAnd MIC
1, N wherein
rBe Optional Field;
If label does not need read write line is differentiated that label utilizes wildcard PSK to N
rCalculation of integrity check code MIC
1, and return and differentiate request response to read write line, described discriminating request response comprises N
rAnd MIC
1, N wherein
rBe Optional Field;
2.1.5) after read write line receives the discriminating request response that label returns, if comprise N in the message
rAnd this N
rWith read write line at step 2.1.3) in the random number N that generates
rUnequal, then read write line abandons this discriminating request response; If comprise N in the discriminating request response
rAnd this N
rWith read write line at step 2.1.3) in the random number N that generates
rEqual or discriminating request response does not comprise N
r, then read write line utilizes the identifier TID of master key MK and label, derives PSK by MK||TID is calculated;
When read write line need be differentiated label, read write line by PSK to N
r|| N
tRecomputate completeness check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if the two is unequal, read write line abandons this discriminating request response; If the two equates that read write line thinks that label is legal, read write line utilizes PSK to N
tCalculate and generate MIC
2, and, comprise N in the described discriminating response confirmation message to label transmission discriminating response confirmation message
t, MIC
2, N wherein
tBe Optional Field;
When read write line does not need to differentiate label, read write line by PSK to N
rRecomputate completeness check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if the two is unequal, read write line abandons this discriminating request response; If the two equates that read write line thinks that label is legal;
2.1.6) after label receives the discriminating response confirmation message of read write line, if comprise N in the message
tAnd this N
tWith label at step 2.1.4) in the random number N that generates
tUnequal, then label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If differentiate in the response confirmation message and comprise N
tAnd this N
tWith label at step 2.1.4) in the random number N that generates
tEquate or differentiate in the response confirmation message not comprise N
t, then label utilizes PSK to N
tRecomputate completeness check code MIC
2', with MIC
2' with the discriminating response confirmation message received in MIC
2Relatively;
Label is with MIC
2' with the discriminating response confirmation message received in MIC
2In the time of relatively, if unequal, then label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If equate that label thinks that read write line is legal.
Above-mentioned steps 2.1.6) afterwards, read write line needs label is differentiated and label when also needing differentiate read write line that label sends identification result message to read write line; If label thinks that read write line is legal, comprise the discriminating success message in the then described discriminating response confirmation message; If label thinks that read write line is illegal, comprise the discriminating failed message in the then described discriminating response confirmation message.
If read write line needs to differentiate with label and label also needs read write line is differentiated, then at step 2.1.4) in, label utilizes N
r, N
tAnd PSK derives and the session key of read write line, at step 2.1.5) in, read write line utilizes N
r, N
tAnd PSK derives and the session key of label;
Label does not need read write line is differentiated if the read write line need are differentiated label, then at step 2.1.4) in, label utilizes N
rWith the session key of PSK derivation, at step 2.1.5 with read write line) in, read write line utilizes N
rWith the session key of PSK derivation with label.
Above-mentioned steps 2) specific implementation can also be:
2.2.0) read write line has master key MK, label has wildcard PSK, and wildcard PSK is derived by calculating by the sign TID of master key MK and label;
2.2.1) read write line sends security parameter to label and obtain message, security parameter obtains the safety chain that message is used to start with label and sets up process;
2.2.2) after label received that the security parameter of read write line obtains message, label configurations security parameter response message sent to read write line, comprises the security algorithm class that label is supported in the described security parameter response message;
2.2.3) read write line is to label transmission discriminating activation message, discriminating activates message and is used to start the discrimination process of label to read write line;
2.2.4) after label receives that discriminating that read write line sends activates message, generate random number N
t, and construct and differentiate that request message sends to read write line, comprise N in the described discriminating request message
t
2.2.5) after read write line received the discriminating request message that label returns, read write line at first utilized the identifier TID of master key MK and label, derives PSK by MK||TID is calculated, and utilizes PSK to N again
tCalculation of integrity check code MIC
1, read write line sends to label and differentiates request response, comprises N in the described discriminating request response
t, MIC
1, N wherein
tBe Optional Field;
2.2.6) after label receives the discriminating request response that read write line returns, if comprise N in the message
tAnd this N
tWith label at step 2.2.4) in the random number N that generates
tUnequal, then label is thought that read write line is illegal and is abandoned this discriminating request response; If comprise N in the discriminating request response
tAnd with label at step 2.2.4) in the random number N that generates
tEqual or discriminating request response kind does not comprise N
t, then label utilizes PSK to N
tCalculation of integrity check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if unequal, then label is thought that read write line is illegal and is abandoned this discriminating request response, if equate that label thinks that read write line is legal.
Above-mentioned steps 2.2.6) afterwards, label sends identification result message to read write line; If label thinks that read write line is legal, then comprise the discriminating success message in this message, if label thinks that read write line is illegal; Then comprise the discriminating failed message in this message.
At step 2.2.5) in, read write line utilizes N
tWith the session key of PSK derivation, at step 2.1.6 with label) in, label utilizes N
tWith the session key of PSK derivation with read write line.
This method also comprises the secure access process, and promptly read write line and label can utilize the session key of derivation that the conversation message between read write line and the label is carried out encrypted transmission.
The specific implementation of secure access process is:
3.1) read write line structure is to the operational order of label, utilizes session key and cryptographic algorithm to encrypt the operational order of label and forms encrypt data ER, read write line is with the load of ER as secure access message, and structure secure access message sends to label;
3.2) after label receives the secure access message of read write line, at first resolve described secure access message and obtain its load, load deciphering back is obtained the operational order of read write line to label, label is according to the operational order tectonic response data of read write line to label, and this response data is encrypted the back sends to read write line as the load of secure access response message;
3.3) after read write line receives the secure access response message that label sends, described secure access response message resolved and its load is decrypted obtain the response data of label to the read write line operational order.
The present invention also provides a kind of read write line, and its special character is: described read write line has
Set up the function of physical connection with electronic tag; And
Set up the function of safety chain with electronic tag.
A kind of form of described read write line is:
Described read write line has master key MK;
Described read write line can send security parameter to label and obtain message;
Described read write line receives can send to label behind the security parameter response message of label and differentiates request message that described discriminating request message comprises N
rField, N
rIt is the random number that read write line generates;
Described read write line can be judged the N that whether comprises that differentiates in the request response after receiving the discriminating request response of label
rAnd this N
rThe N that generates with described read write line whether
rEquate, comprise N if differentiate in the request response
rAnd this N
rWith the N that generates with described read write line
rUnequal, then described read write line abandons this discriminating request response; If comprise N in the discriminating request response
rAnd this N
rN with described read write line generation
rEqual or discriminating request response does not comprise N
r, then described read write line utilizes the identifier TID of master key MK and label, derives PSK by MK||TID is calculated;
When described read write line need be differentiated label, read write line can be by PSK to N
r|| N
tRecomputate completeness check code MIC
1', and with MIC
1' with the MIC that differentiates in the request response
1Relatively, if the two is unequal, described read write line abandons this discriminating request response; If the two equates that then described read write line thinks that label is legal, read write line utilizes PSK to N
tCalculate and generate MIC
2, and, comprise N in the described discriminating response confirmation message to label transmission discriminating response confirmation message
t, MIC
2, N wherein
tBe Optional Field;
Described when writing device and not needing to differentiate label when reading, described read write line by PSK to N
rRecomputate completeness check code MIC
1', and with MIC
1' with the MIC that differentiates in the request response
1Relatively, if the two is unequal, then described read write line abandons this discriminating request response; If the two equates that then described read write line thinks that label is legal;
The another kind of form of described read write line is:
Described read write line has master key MK;
Described read write line can send security parameter to label and obtain message, and security parameter obtains the safety chain that message is used to start with label and sets up process;
Described read write line is received behind the security parameter response message of label to send to label and is differentiated and activate message, differentiates that activating message is used to start the discrimination process of label to read write line;
After described read write line is received the discriminating request message of label, can utilize the identifier TID of master key MK and label, derive PSK, utilize PSK again N by MK||TID is calculated
tCalculation of integrity check code MIC
1, and, comprise N in the described discriminating request response to label transmission discriminating request response
t, MIC
1, N wherein
tBe Optional Field.
The present invention also provides a kind of electronic tag, and its special character is: described electronic tag has
Set up the function of physical connection with read write line; And
Set up the function of safety chain with read write line.
A kind of form of described label is:
Described label has wildcard PSK;
After described label receives that the security parameter of read write line obtains message, can construct the security parameter response message and send to read write line, comprise the security algorithm type that label is supported in the described security parameter response message;
After described label is received the discriminating request message of read write line, if need differentiate that then described label can generate random number N to read write line
t, and utilize wildcard PSK to N
r|| N
tCalculation of integrity check code MIC
1, label returns differentiates that request response to read write line, comprises N in the described discriminating request response
r, N
tAnd MIC
1, wherein, N
rBe the random number that read write line generates, N
rBe Optional Field;
If described label does not need read write line is differentiated that then described label can utilize wildcard PSK to N
rCalculation of integrity check code MIC
1, and return and differentiate request response to read write line, described discriminating request response comprises N
r, MIC
1, N wherein
rBe Optional Field;
Described label can judge to differentiate in the response confirmation message whether comprise N after receiving the discriminating response confirmation message of read write line
tAnd this N
tRandom number N with described label generation
tWhether equate, comprise N if differentiate in the response confirmation message
tAnd this N
tRandom number N with described label generation
tUnequal, then described label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If differentiate in the response confirmation message and comprise N
tAnd this N
tRandom number N with the label generation
tEqual or discriminating response confirmation message does not comprise N
t, then described label utilizes PSK to N
tRecomputate completeness check code MIC
2', with MIC
2' with the discriminating response confirmation message received in MIC
2Relatively;
Described label can be with MIC
2' with the MIC that differentiates in the response confirmation message
2Relatively, if unequal, then described label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If equate that then described label thinks that read write line is legal.
A kind of form of described label is:
Described label has wildcard PSK;
After described label receives that the security parameter of read write line obtains message, can construct the security parameter response message and send to read write line, comprise the security algorithm class that label is supported in the described security parameter response message;
Described label can generate random number N after receiving that the discriminating of read write line transmission activates message
t, and construct and differentiate that request message sends to read write line, comprise N in the described discriminating request message
t
Described label can judge to differentiate in the request response whether comprise N after receiving the discriminating request response of read write line
tAnd this N
tRandom number N with described label generation
tWhether equate, comprise N if differentiate in the request response
tAnd this N
tThe random number N that is becoming with described label
tUnequal, then described label is thought that read write line is illegal and is abandoned this discriminating request response; If comprise N in the discriminating request response
tAnd random number N with the label generation
tEqual or discriminating request response kind does not comprise N
t, then label utilizes PSK to N
tCalculation of integrity check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if unequal, then described label is thought that read write line is illegal and is abandoned this discriminating request response, if equate that then described label thinks that read write line is legal.
The present invention has the following advantages:
Set up the legitimacy that process is guaranteed the communication counterpart identity by the safety chain between read write line and the label, and when needed for read write line and label negotiate session key, thereby set up the secure communications links between read write line and label.In addition, the present invention also has following advantage: 1) reduction system realizes cost, and safety chain method for building up provided by the invention does not need the background data base support, and system realizes that cost is lower; 2) improve the efficient set up safety chain, safety chain method for building up provided by the invention need not Query Database in setting up the process of link, and identification efficiency is higher.
In addition, this law is bright also can be utilized safety chain to set up to negotiate session key in the process read write line is encrypted the form of back as the load of secure access message to the operational order of label, realize the confidentiality of communication data in the read write line access tag process, thereby further guaranteed the fail safe of communicating by letter between read write line and the label.
Embodiment
Before read write line and the label communication, read write line has master key MK, and label has shares key PSK, and shared key PSK is derived by calculating by the sign TID of master key and label.
Referring to Fig. 1, specific implementation process of the present invention comprises:
1. the process of setting up of physical connection:
Read write line (label) is initiated the physical connection of handshake procedure foundation and label (read write line).
2. the process of setting up of safety chain:
Referring to Fig. 2, the process of setting up of safety chain may further comprise the steps:
(1) read write line sends security parameter to label and obtains message, and security parameter obtains the safety chain that message is used to start read write line and label and sets up process.
(2) after the security parameter of receiving read write line obtained message, label configurations security parameter response message sent to read write line, comprised the security algorithm type that label is supported in this security parameter response message.
(3) read write line sends to label and differentiates request message, and the beginning read write line is to the discrimination process of label, and this message comprises N
rField, N
rIt is the random number that read write line generates.
(4) after label was received the discriminating request message of read write line, if need differentiate read write line, label generated random number N
t, and utilize wildcard PSK to N
r|| N
tCalculation of integrity check code MIC
1, label returns differentiates that request response to read write line, comprises N in this discriminating request response
r, N
tAnd MIC
1, N wherein
rBe Optional Field; If label does not need read write line is differentiated that label utilizes wildcard PSK to N
rCalculation of integrity check code MIC
1, and return and differentiate request response to read write line, this discriminating request response comprises N
r, MIC
1, N wherein
rBe Optional Field.
In this step, alternatively, if the read write line need are differentiated by label and label needs also to differentiate that label can utilize N to read write line
r, N
tAnd PSK derives and the session key of read write line; If only need read write line that label is done unidirectional discriminating, when promptly label did not need read write line differentiated, label can utilize N
rWith the session key of PSK derivation with read write line.
(5) after read write line is received the discriminating request response that label returns, if comprise N in the message
rAnd this N
rThe random number N that in step (3), generates with read write line
rUnequal, then read write line abandons this discriminating request response; If comprise N in the discriminating request response
rAnd this N
rThe random number N that in step (3), generates with read write line
rEqual or discriminating request response does not comprise N
r, then read write line utilizes the identifier TID of master key MK and label, derives PSK by MK||TID is calculated.When read write line need be differentiated label, read write line by PSK to N
r|| N
tRecomputate completeness check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if the two is unequal, read write line abandons this discriminating request response; If the two equates that read write line thinks that label is legal, read write line utilizes PSK to N
tCalculate and generate MIC
2, and, comprise N in this message to label transmission discriminating response confirmation message
t, MIC
2, N wherein
tBe Optional Field.When read write line does not need to differentiate label, read write line by PSK to N
rRecomputate completeness check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if the two is unequal, read write line abandons this discriminating request response; If the two equates that read write line thinks that label is legal.
In this step, alternatively, if read write line is differentiated label and label when also needing read write line also differentiated, read write line can utilize N
r, N
tAnd PSK derives and the session key of label; If only need read write line that label is done unidirectional discriminating, when promptly label did not need read write line differentiated, read write line can utilize N
rWith the session key of PSK derivation with label.
(6) after label is received the discriminating response confirmation message of read write line, if comprise N in the message
tAnd this N
tThe random number N that in step (4), generates with label
tUnequal, label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If differentiate in the response confirmation message and comprise N
tAnd this N
tThe random number N that in step (4), generates with label
tEqual or discriminating response confirmation message does not comprise N
t, then label utilizes PSK to N
tRecomputate completeness check code MIC
2', with MIC
2' with the discriminating response confirmation message received in MIC
2Relatively, if unequal, label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If equate that label thinks that read write line is legal.During two-way discriminating, be that read write line needs label is differentiated and label when also needing differentiate read write line, label can send identification result message to read write line, if label thinks that read write line is legal, then comprise the discriminating success message in this message, if label thinks that read write line is illegal, then comprise the discriminating failed message in this message.Wherein, identification result message is optional.
Referring to Fig. 3, another implementation method that safety chain is set up process may further comprise the steps:
(1) read write line sends security parameter to label and obtains message, and security parameter obtains the safety chain that message is used to start with label and sets up process.
(2) after the security parameter of receiving read write line obtained message, label configurations security parameter response message sent to read write line, comprised the security algorithm type that label is supported in this security parameter response message.
(3) read write line sends to label and differentiates activation message, differentiates that activating message is used to start the discrimination process of label to read write line.
(4) after the discriminating that sends of the read write line received of label activates message, generate random number N
t, and construct and differentiate that request message sends to read write line, comprise N in this message
t
(5) read write line is received be the discriminating request message that returns of label after, read write line at first utilizes the identifier TID of master key MK and label, derives PSK by MK||TID is calculated, and utilizes PSK to N again
tCalculation of integrity check code MIC
1, read write line sends to label and differentiates request response, comprises N in this message
t, MIC
1, N wherein
tBe Optional Field.In this step, alternatively, read write line can utilize N
tWith the session key of PSK derivation with label.
(6) label is received be the discriminating request response returned of read write line after, if comprise N in the message
tAnd this N
tThe random number N that in step (4), generates with label
tUnequal, then label is thought that read write line is illegal and is abandoned this discriminating request response; If comprise N in the discriminating request response
tAnd the random number N that in step (4), generates with label
tEqual or discriminating request response kind does not comprise N
t, then label utilizes PSK to N
tCalculation of integrity check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if unequal, then label is thought that read write line is illegal and is abandoned this discriminating request response; If equate that label thinks that read write line is legal.Label can send identification result message to read write line, if label thinks that read write line is legal, then comprises the discriminating success message in this message, if label thinks that read write line is illegal, then comprises the discriminating failed message in this message.Wherein, identification result message is optional.In addition, in this step, alternatively, label can utilize N
tWith the session key of PSK derivation with read write line.
The present invention has the following advantages: set up the legitimacy that process is guaranteed the communication counterpart identity by the safety chain between read write line and the label, and when needed for read write line and label negotiate session key, thereby set up secure communications links between read write line and label.In addition, the present invention also has following advantage: 1) reduction system realizes cost, and safety chain method for building up provided by the invention does not need the background data base support, and system realizes that cost is lower; 2) improve the efficient set up safety chain, safety chain method for building up provided by the invention need not Query Database in setting up the process of link, and identification efficiency is higher.
Referring to Fig. 4, for the confidentiality that realizes communicating by letter between read write line and the label, the present invention also comprises the secure access process of following read write line to label.
3. secure access process
After safety chain is set up successfully, the addressable label data of read write line, when read write line and labeling requirement secure communication, if read write line and label have been derived shared session key, then read write line and label can utilize shared session key that conversation message is carried out encrypted transmission, referring to Fig. 4, detailed process is as follows:
(1) the read write line structure is to the operational order of label, and read write line can be read command, write order etc. to the operational order of label.Utilize session key and cryptographic algorithm that read write line is encrypted the operational order of label and form encrypt data ER, read write line is with the load of ER as secure access message, and structure secure access message sends to label;
(2) after label is received the secure access message of read write line, at first resolve this message and obtain its load, load deciphering back is obtained the operational order of read write line to label, label is according to these operational order tectonic response data, and this response data is encrypted the back sends to read write line as the load of secure access response message;
(3) after read write line is received the secure access response message that label sends, this response message resolved and its load is decrypted obtain the response data of label the read write line operational order.
The session key that secure access process of the present invention is utilized safety chain to set up and negotiated in the process is encrypted the form of back as the load of secure access message with read write line to the operational order of label, realize the confidentiality of communication data in the read write line access tag process, thereby further guaranteed the fail safe of communicating by letter between read write line and the label.
The present invention also provides a kind of read write line, and described read write line has the function of setting up physical connection with electronic tag; And set up the function of safety chain with electronic tag.This read write line has two kinds of forms, a kind ofly is: described read write line has master key MK; Described read write line can send security parameter to label and obtain message; Described read write line receives can send to label behind the security parameter response message of label and differentiates request message that described discriminating request message comprises N
rField, N
rIt is the random number that read write line generates; Described read write line can be judged the N that whether comprises that differentiates in the request response after receiving the discriminating request response of label
rAnd this N
rThe N that generates with described read write line whether
rEquate, comprise N if differentiate in the request response
rAnd this N
rWith the N that generates with described read write line
rUnequal, then described read write line abandons this discriminating request response; If comprise N in the discriminating request response
rAnd this N
rN with described read write line generation
rEqual or discriminating request response does not comprise N
r, then described read write line utilizes the identifier TID of master key MK and label, derives PSK by MK||TID is calculated; When described read write line need be differentiated label, read write line can be by PSK to N
r|| N
tRecomputate completeness check code MIC
1', and with MIC
1' with the MIC that differentiates in the request response
1Relatively, if the two is unequal, described read write line abandons this discriminating request response; If the two equates that then described read write line thinks that label is legal, read write line utilizes PSK to N
tCalculate and generate MIC
2, and, comprise N in the described discriminating response confirmation message to label transmission discriminating response confirmation message
t, MIC
2, N wherein
tBe Optional Field; Described when writing device and not needing to differentiate label when reading, described read write line by PSK to N
rRecomputate completeness check code MIC
1', and with MIC
1' with the MIC that differentiates in the request response
1Relatively, if the two is unequal, then described read write line abandons this discriminating request response; If the two equates that then described read write line thinks that label is legal.Another kind is: described read write line has master key MK; Described read write line can send security parameter to label and obtain message, and security parameter obtains the safety chain that message is used to start with label and sets up process; Described read write line is received behind the security parameter response message of label to send to label and is differentiated and activate message, differentiates that activating message is used to start the discrimination process of label to read write line; After described read write line is received the discriminating request message of label, can utilize the identifier TID of master key MK and label, derive PSK, utilize PSK again N by MK||TID is calculated
tCalculation of integrity check code MIC
1, and, comprise N in the described discriminating request response to label transmission discriminating request response
t, MIC
1, N wherein
tBe Optional Field.
The present invention also provides a kind of electronic tag, and described electronic tag has the function of setting up physical connection with read write line; And set up the function of safety chain with read write line.The corresponding read write line of this electronic tag also has two kinds of forms, a kind ofly is: described label has wildcard PSK; After described label receives that the security parameter of read write line obtains message, can construct the security parameter response message and send to read write line, comprise the security algorithm type that label is supported in the described security parameter response message; After described label is received the discriminating request message of read write line, if need differentiate that then described label can generate random number N to read write line
t, and utilize wildcard PSK to N
r|| N
tCalculation of integrity check code MIC
1, label returns differentiates that request response to read write line, comprises N in the described discriminating request response
r, N
tAnd MIC
1, wherein, N
rBe the random number that read write line generates, N
rBe Optional Field; If described label does not need read write line is differentiated that then described label can utilize wildcard PSK to N
rCalculation of integrity check code MIC
1, and return and differentiate request response to read write line, described discriminating request response comprises N
r, MIC
1, N wherein
rBe Optional Field; Described label can judge to differentiate in the response confirmation message whether comprise N after receiving the discriminating response confirmation message of read write line
tAnd this N
tRandom number N with described label generation
tWhether equate, comprise N if differentiate in the response confirmation message
tAnd this N
tRandom number N with described label generation
tUnequal, then described label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If differentiate in the response confirmation message and comprise N
tAnd this N
tRandom number N with the label generation
tEqual or discriminating response confirmation message does not comprise N
t, then described label utilizes PSK to N
tRecomputate completeness check code MIC
2', with MIC
2' with the discriminating response confirmation message received in MIC
2Relatively; Described label can be with MIC
2' with the MIC that differentiates in the response confirmation message
2Relatively, if unequal, then described label is thought that read write line is illegal and is abandoned this discriminating response confirmation message; If equate that then described label thinks that read write line is legal.Another kind is: described label has wildcard PSK; After described label receives that the security parameter of read write line obtains message, can construct the security parameter response message and send to read write line, comprise the security algorithm class that label is supported in the described security parameter response message; Described label can generate random number N after receiving that the discriminating of read write line transmission activates message
t, and construct and differentiate that request message sends to read write line, comprise N in the described discriminating request message
tDescribed label can judge to differentiate in the request response whether comprise N after receiving the discriminating request response of read write line
tAnd this N
tRandom number N with described label generation
tWhether equate, comprise N if differentiate in the request response
tAnd this N
tThe random number N that is becoming with described label
tUnequal, then described label is thought that read write line is illegal and is abandoned this discriminating request response; If comprise N in the discriminating request response
tAnd random number N with the label generation
tEqual or discriminating request response kind does not comprise N
t, then label utilizes PSK to N
tCalculation of integrity check code MIC
1', and with MIC
1' with the discriminating request response received in MIC
1Relatively, if unequal, then described label is thought that read write line is illegal and is abandoned this discriminating request response, if equate that then described label thinks that read write line is legal.