An Internet of Things terminal authentication method and system based on random encryption
By adopting a random encryption-based authentication method in the Internet of Things terminal, the generation and verification of symmetric keys are performed using random numbers and device feature values, and combining asymmetric and symmetric cryptographic algorithms, the security of IoT terminal authentication in the prior art is solved. The low problem achieves higher data transmission security and identity authentication strength.
Patent Information
- Application Number
- CN202210376850.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-09
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-04-09
AI Technical Summary
The authentication methods of existing IoT terminals are easily cracked, affecting the security of data transmission.
Using the authentication method based on random encryption, the data center generates random number information and negotiates symmetric keys with the Internet of Things terminal, key distribution and negotiation is performed through asymmetric cryptographic algorithm, device authentication is performed by combining symmetric cryptographic algorithm, and device characteristic values are used for randomization. Computes to ensure the randomness of authentication information and the randomness of keys.
It improves the security of IoT terminal authentication and data transmission security, ensures that each authentication generates a randomized operation of new random numbers and device feature information, and enhances the security strength of identity authentication.
Smart Images

Figure CN114844630B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network information security, and in particular to an Internet of Things terminal authentication method and system based on random encryption. Background Art
[0002] The Internet of Things is an expansion and extension of the Internet. It connects various computers, edge gateways, sensors, collection terminals and other information devices through the network to realize a huge network of "everything connected" between people, machines and objects. It is widely used in smart cities, industrial control, agricultural production, environmental monitoring, health care, smart homes and other scenarios.
[0003] As a low-end computer device for data collection and external perception, IoT terminals are responsible for sending the collected data to a remote data center through various layers of the network. There are many types of IoT terminals and their number is huge. The authentication security and data transmission security of these terminal devices are important issues in IoT security.
[0004] Currently, the authentication methods for IoT terminals mostly use cryptographic technology, which is easy to be cracked, affecting the security of data transmission. Summary of the invention
[0005] The present invention provides an Internet of Things terminal authentication method and system based on random encryption, which are used to solve the problem of low security of existing terminal authentication means.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] A first aspect of the present invention provides an Internet of Things terminal authentication method based on random encryption, the method comprising the following steps:
[0008] The data center generates random number information and sends it to the IoT terminal;
[0009] The IoT terminal obtains the symmetric key for this authentication based on the random number information, generates authentication information using a symmetric encryption algorithm, and sends the authentication information to the data center;
[0010] The data center verifies the correctness of the authentication information through random number information and pre-stored device feature values of the current IoT terminal.
[0011] Furthermore, the method further comprises the steps of:
[0012] The key management center generates keys for the data center and IoT terminals respectively, and the data center and each IoT terminal store the corresponding transmission key and authentication symmetric key. The data center also stores the device characteristic values of each physical network terminal.
[0013] Furthermore, the key management center generates its own management asymmetric key pair and a large prime number p, and sends the public key and the large prime number p in the management asymmetric key pair to the data center and each IoT terminal;
[0014] The key management center generates a data asymmetric key pair for the data center, sends the private key in the data asymmetric key pair to the data center, and sends the public key to each IoT terminal;
[0015] The key management center generates a terminal asymmetric key pair for each IoT terminal, sends the private key in the terminal asymmetric key pair to each IoT terminal, and sends the public key to the data center;
[0016] The data center negotiates a transmission symmetric key and n authentication symmetric keys with each IoT terminal, and saves them separately;
[0017] Each IoT terminal extracts its own device features, generates m device feature values, and sends them to the data center.
[0018] Furthermore, the specific process of the data center generating random number information is as follows:
[0019] The data center generates an n-bit random number Rand1, a 256-bit random number Rand_Key, and an m-bit random number Rand2;
[0020] There are t "1"s in the binary bits of the random number Rand2, and the data center generates t 256-bit Rand _ ID_1~Rand _ ID_t, generates t 3-bit random numbers Rand _ Oper_1~Rand _ Oper_t;
[0021] The data center will be random number Rand1, Rand_Key, Rand2, Rand _ ID_1~Rand _ ID_t and Rand _ Oper_1~Rand _ Oper_t performs encryption operations by transmitting symmetric keys, and the obtained ciphertext is used as random number information.
[0022] Furthermore, the specific process of obtaining the symmetric key for this authentication is:
[0023] After receiving the random number sent by the data center, the IoT terminal selects the corresponding t device feature values from the m device feature values according to the t “1”s of the m-bit random number Rand2;
[0024] Perform XOR calculation on t 256-bit random numbers sent by the data center and t device feature values to obtain the plain text of the authentication information;
[0025] According to the positions of the s "1"s in the n-bit random number Rand1, the corresponding s symmetric keys from the n symmetric keys are selected, and the symmetric keys for this authentication are obtained after an XOR operation.
[0026] Furthermore, the calculation of the authentication information plain text is specifically as follows:
[0027] Set t 256-bit random numbers Rand _ ID_1~Rand _ ID_t and t device characteristic values Device_ID_i1~Device_ID_it are respectively XOR-operated according to a preset operation function to obtain the authentication information plain text.
[0028] Furthermore, the specific process of verifying the correctness of the authentication information is as follows:
[0029] According to the positions of the s "1"s in the n-bit random number Rand1, select the corresponding s authentication symmetric keys from the n symmetric keys, and calculate them to obtain the symmetric key for this authentication;
[0030] Decrypt the ciphertext authentication information and verify the integrity of the authentication information; if the verification fails, the identity authentication fails;
[0031] If the authentication information is verified, the data center selects corresponding t device feature values from the m device feature values according to the t “1”s of the m-bit random number Rand2;
[0032] The data center calculates t 256-bit random numbers and t device feature values to obtain calculated authentication information;
[0033] The data center compares the authentication information sent by the IoT terminal with the calculated authentication information to see if they are the same. If they are the same, the authentication passes, otherwise the authentication fails.
[0034] A second aspect of the present invention provides an Internet of Things terminal authentication system based on random encryption, the system comprising a data center and a plurality of Internet of Things terminals;
[0035] The data center generates random number information and sends it to the IoT terminal; the IoT terminal obtains the symmetric key for this authentication based on the random number information, generates authentication information using a symmetric encryption algorithm, and sends the authentication information to the data center; the data center verifies the correctness of the authentication information through the random number information and the pre-stored device feature value of the current IoT terminal.
[0036] Furthermore, the system also includes a key management center, which generates its own management asymmetric key pair and a large prime number p, and sends the public key and the large prime number p in the management asymmetric key pair to the data center and each IoT terminal;
[0037] The key management center generates a data asymmetric key pair for the data center, sends the private key in the data asymmetric key pair to the data center, and sends the public key to each IoT terminal;
[0038] The key management center generates a terminal asymmetric key pair for each IoT terminal, sends the private key in the terminal asymmetric key pair to each IoT terminal, and sends the public key to the data center.
[0039] A third aspect of the present invention provides a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are executed on the system, the system executes the steps of the method.
[0040] The Internet of Things terminal authentication system of the second aspect of the present invention can implement the method in the first aspect and the various implementation methods of the first aspect, and achieve the same effect.
[0041] The effects provided in the content of the invention are only the effects of the embodiments, not all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:
[0042] 1. Each time the embodiment of the present invention performs IoT terminal authentication, a random combination of t device features of the m device features of the IoT terminal is selected, and a series of random operations are performed with the random numbers sent by the data center to obtain the authentication information of this IoT terminal authentication, thereby ensuring the randomness of the authentication information and the security of data transmission.
[0043] 2. Each time the embodiment of the present invention performs IoT terminal authentication, s corresponding symmetric keys from the n symmetric keys are selected according to the positions of the s "1"s in the n-bit random number Rand1, and the symmetric key ks for this authentication is obtained after the operation is performed with the random number Rand_key, so as to ensure the randomness of the key and further ensure the security of data transmission.
[0044] 3. The embodiment of the present invention adopts a cryptographic system that combines an asymmetric cryptographic algorithm with a symmetric cryptographic algorithm, uses an asymmetric cryptographic algorithm to distribute and negotiate symmetric keys, and uses a symmetric cryptographic algorithm to perform device authentication on IoT terminals, thereby ensuring a balance between security and efficiency. For device authentication on IoT terminals, a new random number is generated each time, and a randomization operation is performed together with the device feature information, which is both bound to the IoT terminal and improves the security strength of identity authentication through randomization. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 is a schematic diagram of a flow chart of an embodiment of the method of the present invention;
[0047] Figure 2 It is an overall flow chart of the generation, distribution and initialization of keys provided by the method embodiment of the present invention;
[0048] Figure 3 It is an overall flow chart of Internet of Things terminal authentication provided by the method embodiment of the present invention;
[0049] Figure 4 It is a flow chart of the random number plaintext and encryption result generated by the data center provided by the method embodiment of the present invention;
[0050] Figure 5 It is a flow chart of the Internet of Things terminal generating authentication information and encrypting it provided by the method embodiment of the present invention;
[0051] Figure 6 It is a flow chart of decrypting and verifying authentication information in a data center provided by the method embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to clearly illustrate the technical features of the present solution, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The disclosure below provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. In addition, the present invention may repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. It should be noted that the components illustrated in the accompanying drawings are not necessarily drawn to scale. The present invention omits the description of known components and processing techniques and processes to avoid unnecessary limitations on the present invention.
[0053] In the IoT system, the data center is remotely connected to a large number of IoT terminals through the network, and each IoT terminal needs to be authenticated. When the IoT system is deployed, a trusted key management center (KMC-Key Management Center) is first required to distribute keys and public parameters to the data center and each IoT terminal. The asymmetric encryption algorithm, digital signature algorithm, symmetric encryption algorithm, and cryptographic hash algorithm used in this embodiment and all the following embodiments can be any cryptographic algorithm with high security strength, and are not limited to a specific cryptographic algorithm. For the convenience of explanation, the following definitions are made:
[0054] PKC_Enc(Plain_data, PubKey_user): indicates that the plain data Plain_data is encrypted asymmetricly using the public key PubKey_user;
[0055] PKC_Dec(Cipher_data,PriKey_user): indicates to use the private key PriKey_user to perform an asymmetric decryption operation on the ciphertext data Cipher_data;
[0056] PKC_Sig(Plain_data,PriKey_user): indicates that the private key PriKey_user is used to perform a digital signature operation on the plain data Plain_data;
[0057] PKC_Ver(Plain_data,Signature,PubKey_user): indicates to use the public key PubKey_user to perform a signature verification operation on the plain data Plain_data and the corresponding signature value Signature;
[0058] Sym_Enc(Plain_data, Key): indicates that the plain data Plain_data is subjected to a symmetric encryption operation with authentication using the symmetric key Key, which encrypts the data and generates a message authentication code; in this embodiment and all the following embodiments, the length of the plain text and the length of the key are 256 bits;
[0059] Sym_dec(Cipher_data,Key): indicates that the symmetric key Key is used to perform a symmetric decryption operation with authentication on the ciphertext data Cipher_data, which decrypts the data and verifies the message authentication code;
[0060] Hash(Data): represents performing a cryptographic hash operation on the data Data to generate a hash value of a fixed length for the data Data; in this embodiment and all the following embodiments, the length of the cryptographic hash value is 256 bits.
[0061] like Figure 1 As shown, an embodiment of the present invention provides an Internet of Things terminal authentication method based on random encryption, and the method includes the following steps:
[0062] S1, the data center generates random number information and sends it to the IoT terminal;
[0063] S2, the IoT terminal obtains the symmetric key for this authentication based on the random number information, generates authentication information using a symmetric encryption algorithm, and sends the authentication information to the data center;
[0064] S3, the data center verifies the correctness of the authentication information through random number information and pre-stored device feature values of the current IoT terminal.
[0065] In one implementation of the above embodiment, the method further includes the step of: S0, generation, distribution and initialization of keys of the data center and the Internet of Things terminal before the data center generates random numbers.
[0066] like Figure 2 As shown in the figure, the specific process of the method for generating, distributing and initializing the keys of the data center and the IoT terminal is as follows:
[0067] S01, a trusted key management center (KMC-Key Management Center), first generates its own asymmetric key pair (PriKey_KMC, PubKey_KMC), including private key PriKey_KMC and public key PubKey_KMC, where the private key PriKey_KMC in the key pair is securely stored by the key management center itself; generates a 256-bit large prime number p as a public parameter; sends the public key PubKey_KMC and the large prime number p of the key management center to the data center and each IoT terminal;
[0068] S02, the key management center generates an asymmetric key pair (PriKey_DC, PubKey_DC) for the data center, and securely sends the private key PriKey_DC of the data center to the data center through a secure communication channel or offline installation, and sends the public key PubKey_DC to each IoT terminal;
[0069] S03, the key management center generates an asymmetric key pair (PriKey_Term, PubKey_Term) for each IoT terminal (IoT Terminal), securely sends the private key PriKey_Term to the IoT terminal through a secure communication channel or offline installation, and sends the public key PubKey_Term to the data center;
[0070] S04, the data center generates n+1 256-bit random numbers Rand_DC_factor_0~Rand_DC_factor_n (n is the number of random keys, for example, 10~20 or other ranges), performs binary concatenation on these random numbers to obtain Rand_DC_factor=Rand_DC_factor0||…||Rand_DC_factor_n; then, calculates the digital signature of Rand_DC_factor, and performs asymmetric encryption on Rand_DC_factor and the digital signature together to obtain Cipher_Rand_DC_factor=PKC_Enc(Rand_DC_factor||PKC_Sig(Rand_DC_factor,PriKey_DC),PubKey_Term), where “||” represents the concatenation of binary numbers; sends Cipher_Rand_DC_factor to the IoT terminal;
[0071] S05, the IoT terminal generates n+1 256-bit random numbers Rand_Term_factor_0 to Rand_Term_factor_n, and performs binary concatenation of these random numbers, Rand_Term_factor=Rand_Term_factor0||…||Rand_Term_factor_n; then, calculates the digital signature of Rand_Term_factor and performs asymmetric encryption, Cipher_Rand_Term_factor=PKC_Enc(Rand_Term_factor||PKC_Sig(Rand_Term_factor, PriKey_Term), PubKey_DC); sends Cipher_Rand_Term_factor to the data center;
[0072] S06, after receiving Cipher_Rand_DC_factor, the IoT terminal first uses its own private key PriKey_Term for asymmetric decryption, that is, calculates Rand_DC_factor||PKC_Sig(Rand_DC_factor, PriKey_DC)=PKC_Dec(Cipher_Rand_DC_factor, PriKey_Term); then, verifies the correctness of the signature of the plaintext Rand_DC_factor and its signature value PKC_Sig(Rand_DC_factor, PriKey_DC); if the signature verification passes, calculates the transmission symmetric key Trans_Key=Rand_DC_factor_0xor Rand_Term_factor_0, as well as n authentication symmetric keys Authen_Key1~Authen_Key n , Authen_Key i = Rand_DC_factor_i xor Rand_Term_factor_i, where 1≤i≤n, “xor” means logical exclusive OR, and all symmetric keys are stored securely;
[0073] S07, after receiving Cipher_Rand_Term_factor, the data center uses a method similar to step F to calculate the transmission symmetric key Trans_Key and n authentication symmetric keys Authen_Key1 to Authen_Keyn, and safely stores all symmetric keys;
[0074] S08, each IoT terminal extracts its own CPU serial number, network card MAC address (Media Access Control Address), IP address, International Mobile Equipment Identity (IMEI), chip serial number, factory unique serial number and other device features feature1~feature m , use the cryptographic hash algorithm to calculate Device_ID j =Hash(feature j ), where 1≤j≤m, generates m 256-bit device characteristic values Device_ID1~Device_ID m , and sent to the data center for safe storage.
[0075] In step S1, the method in which the data center generates random number information and sends it to the IoT terminal specifically includes the following steps:
[0076] S11, the data center generates an n-bit random number Rand1, where n is the number of random authentication symmetric keys in the above embodiment;
[0077] S12, the data center generates a 256-bit random number Rand _ Key, used to participate in generating the key for the current identity authentication of the IoT terminal;
[0078] S13, the data center generates an m-bit random number Rand2, where m is the number of device characteristic values generated in step E of embodiment 1;
[0079] S14, assuming that there are t "1"s in the binary bits of the random number Rand2, the data center generates t 256-bit random numbers Rand _ ID_1~Rand _ ID_t, generates t 3-bit random numbers Rand _ Oper_1~Rand _ Oper_t;
[0080] S14, the data center encrypts all the above random numbers using the transmission symmetric key Trans_Key, Cipher_Rands = Sym_Enc (Rand_data, Trans_Key), where the random number plaintext Rand_data = Rand1||Rand _ Key||Rand2||Rand _ ID_1||…||Rand _ ID_t||Rand _ Oper_1||…||Rand _ Oper_t, the symbol “||” represents the connection of binary numbers, and the ciphertext Cipher_Rands is sent to the IoT terminal.
[0081] For ease of description, eight operation functions used in this embodiment and the following embodiments are defined:
[0082] f0(X,Y)=X and Y, which means that X and Y are operated bit by bit;
[0083] f1(X,Y)=X or Y, which means that X and Y are bitwise ORed;
[0084] f2(X,Y)=X xor Y, which means X and Y are subjected to bitwise XOR operation;
[0085] f3(X,Y)=X+Y(mod p), which means the addition operation of X and Y modulo the prime number p;
[0086] f4(X,Y)=XY(mod p), which means the subtraction operation of X and Y modulo the prime number p;
[0087] f5(X,Y)=X×Y(mod p), which means multiplication of X and Y modulo prime number p;
[0088] f6(X,Y)=X×Y -1 (mod p) means the multiplication of the inverse elements of X and Y modulo the prime number p;
[0089] f7(X,Y)=Y×X -1 (mod p) means the multiplication of Y and the inverse element of X modulo the prime number p;
[0090] In step S2, the method in which the IoT terminal generates authentication information and sends it to the data center specifically includes the following steps:
[0091] S21, after the IoT terminal receives the ciphertext Cipher_Rands sent by the data center, it first uses the transmission symmetric key Trans_Key to perform decryption operation, Rand_data = Sym_Dec (Cipher_Rands, Trans_Key) = Rand1||Rand _ Key||Rand2||Rand _ ID_1||…||Rand _ ID_t||Rand _ Oper_1||…||Rand _ Oper_t, and verify the integrity of the message. If the integrity verification fails, an error is returned, otherwise, continue with the following steps;
[0092] S22, select m device characteristic values Device_ID1 to Device_ID according to the positions of t "1"s in the m-bit random number Rand2 m The corresponding t device characteristic values in are recorded as Device_ID_i1~Device_ID_it, where each value of i1~it is 0~m;
[0093] S23, based on t 3-bit random numbers Rand _ Oper_1~Rand _ Oper_t, each 3-bit random number has a value of 0 to 7, and selects (repeatable) t operation functions f from the operation functions f0 to f7 j1 ~f jt , where each value of j1~jt ranges from 0 to 7;
[0094] S24, the t 256-bit random numbers Rand sent by the data center _ ID_1~Rand _ ID_t and t device characteristic values Device_ID_i1~Device_ID_it, respectively, according to the operation function f j1 ~f jt After calculation, perform XOR operation to obtain the plain text of the authentication information Authen_Data = f j1 (Device_ID_i1,Rand _ ID_1)xor f j2 (Device_ID_i2,Rand _ ID_2)xor...f jt (Device_ID_it,Rand _ ID_t);
[0095] S25, select n authentication symmetric keys Authen_Key1~Authen_Key according to the positions of the s "1"s in the n-bit random number Rand1 n The corresponding s authentication symmetric keys are denoted as Authen_Key_w1~Authen_Key_ws, where each value of w1~ws is 0~n;
[0096] S26, the IoT terminal sends the random number Rand _ Key is XORed with s authentication symmetric keys Authen_Key_w1~Authen_Key_ws to calculate the authentication key for this identity authentication, Authen_Rand_Key=Rand _ Keyxor Authen_Key_w1 xor Authen_Key_w2…Authen_Key_ws;
[0097] S27, encrypt the plain text authentication information Authen_Data using an identifiable symmetric encryption algorithm to obtain the ciphertext authentication information, Cipher_Authen_Data = Sym_Enc (Authen_Data, Authen_Rand_Key), and send Cipher_Authen_Data to the data center.
[0098] In step S3,
[0099] The method for the data center to verify the correctness of the IoT terminal authentication information specifically includes the following steps:
[0100] S31, the data center receives the encrypted ciphertext authentication information Cipher_Authen_Data sent by the IoT terminal;
[0101] S32, the data center selects n authentication symmetric keys Authen_Key1~Authen_Key according to the positions of the s "1"s in the n-bit random number Rand1 n The corresponding s authentication symmetric keys are denoted as Authen_Key_w1~Authen_Key_ws, where each value of w1~ws is 0~n;
[0102] S33, the IoT terminal sends the random number Rand _ Key is XORed with s authentication symmetric keys Authen_Key_w1~Authen_Key_ws to calculate the authentication key for this identity authentication, Authen_Rand_Key=Rand _ Keyxor Authen_Key_w1 xor Authen_Key_w2…Authen_Key_ws;
[0103] S34, using an identifiable symmetric encryption algorithm to decrypt the ciphertext authentication information Cipher_Authen_Data, obtain the plaintext authentication information Authen_Data = Sym_Dec (Cipher_Authen_Data, Authen_Rand_Key), and verify the integrity; if the verification fails, the identity authentication fails, otherwise, continue with the following steps;
[0104] S35, the data center obtains the authentication information plain text Authen_Data_DC calculated by itself;
[0105] S36, the data center compares the authentication information Authen_Data sent by the IoT terminal with the Authen_Data_DC calculated by itself to see if they are the same. If they are the same, the authentication is successful, otherwise the authentication fails.
[0106] The embodiment of the present invention also provides an Internet of Things terminal authentication system based on random encryption, the system comprising a data center and a plurality of Internet of Things terminals;
[0107] The data center generates random number information and sends it to the IoT terminal; the IoT terminal obtains the symmetric key for this authentication based on the random number information, generates authentication information using a symmetric encryption algorithm, and sends the authentication information to the data center; the data center verifies the correctness of the authentication information through the random number information and the pre-stored device feature value of the current IoT terminal.
[0108] The system also includes a key management center, which generates its own management asymmetric key pair and a large prime number p, and sends the public key and the large prime number p in the management asymmetric key pair to the data center and each IoT terminal;
[0109] The key management center generates a data asymmetric key pair for the data center, sends the private key in the data asymmetric key pair to the data center, and sends the public key to each IoT terminal;
[0110] The key management center generates a terminal asymmetric key pair for each IoT terminal, sends the private key in the terminal asymmetric key pair to each IoT terminal, and sends the public key to the data center.
[0111] An embodiment of the present invention further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the system, the system executes the steps of the method.
[0112] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A random encryption-based IoT terminal authentication method, characterized in that: The method comprises the following steps: The data center generates random number information and sends it to the IoT terminal; The IoT terminal obtains the symmetric key for this authentication based on the random number information, generates authentication information using a symmetric encryption algorithm, and sends the authentication information to the data center; The data center verifies the correctness of the authentication information through random number information and pre-stored device feature values of the current IoT terminal; The method further comprises the steps of: The key management center generates keys for the data center and IoT terminals respectively, and the data center and each IoT terminal store the corresponding transmission key and authentication symmetric key. The data center also stores the device feature value of each IoT terminal. The specific implementation process is as follows: S01, first the key management center generates its own asymmetric key pair (PriKey_KMC, PubKey_KMC), including the private key PriKey_KMC and the public key PubKey_KMC, where the private key PriKey_KMC in the key pair is saved by the key management center; generates a 256-bit large prime number p as a public parameter; sends the public key PubKey_KMC and the large prime number p of the key management center to the data center and each IoT terminal; S02, the key management center generates an asymmetric key pair (PriKey_DC, PubKey_DC) for the data center, securely sends the data center's private key PriKey_DC to the data center through a secure communication channel or offline installation, and sends the public key PubKey_DC to each IoT terminal; S03, the key management center generates an asymmetric key pair (PriKey_Term, PubKey_Term) for each IoT terminal, securely sends the private key PriKey_Term to the IoT terminal through a secure communication channel or offline installation, and sends the public key PubKey_Term to the data center; S04, the data center generates n+1 256-bit random numbers Rand_DC_factor_0~ Rand_DC_factor_n, where n is the number of random keys, and performs binary concatenation on these random numbers to obtain Rand_DC_factor=Rand_DC_factor0||…|| Rand_DC_factor_n; then, the digital signature of Rand_DC_factor is calculated, and Rand_DC_factor and the digital signature are asymmetrically encrypted together to obtain Cipher_Rand_DC_factor= PKC_Enc(Rand_DC_factor||PKC_Sig(Rand_DC_factor,PriKey_DC), PubKey_Term), where "||" represents the concatenation of binary numbers; Cipher_Rand_DC_factor is sent to the IoT terminal; S05, the IoT terminal generates n+1 256-bit random numbers Rand_Term_factor_0~ Rand_Term_factor_n, and performs binary concatenation of these random numbers, Rand_Term_factor=Rand_Term_factor0||…||Rand_Term_factor_n; then, calculates the digital signature of Rand_Term_factor and performs asymmetric encryption, Cipher_Rand_Term_factor= PKC_Enc(Rand_Term_factor||PKC_Sig(Rand_Term_factor,PriKey_Term),PubKey_DC); sends Cipher_Rand_Term_factor to the data center; S06, after receiving Cipher_Rand_DC_factor, the IoT terminal first uses its own private key PriKey_Term for asymmetric decryption, that is, calculates Rand_DC_factor||PKC_Sig(Rand_DC_factor, PriKey_DC)=PKC_Dec(Cipher_Rand_DC_factor, PriKey_Term); then, verifies the correctness of the signature of the plaintext Rand_DC_factor and its signature value PKC_Sig(Rand_DC_factor, PriKey_DC); if the signature verification is successful, calculates the transmission symmetric key Trans_Key= Rand_DC_factor_0 xor Rand_Term_factor_0, and n authentication symmetric keys Authen_Key1~Authen_Key n , Authen_Key i = Rand_DC_factor_i xor Rand_Term_factor_i, where 1≤i≤n, "xor" means logical exclusive OR, and all symmetric keys are securely stored; S07, after receiving Cipher_Rand_Term_factor, the data center calculates the transmission symmetric key Trans_Key and n authentication symmetric keys Authen_Key1~Authen_Keyn, and safely stores all symmetric keys; S08, each IoT terminal extracts its own CPU serial number, network card MAC address, IP address, international mobile equipment identity code IMEI, chip serial number, factory unique serial number and other device features feature1~feature m , use the cryptographic hash algorithm to calculate Device_ID j =Hash(feature j ), where 1≤j≤m, generates m 256-bit device characteristic values Device_ID1~ Device_ID m , and sent to the data center for safe storage.
2. According to the random encryption-based Internet of Things terminal authentication method of claim 1, it is characterized in that: The key management center generates its own management asymmetric key pair and a large prime number p, and sends the public key and the large prime number p in the management asymmetric key pair to the data center and each IoT terminal; The key management center generates a data asymmetric key pair for the data center, sends the private key in the data asymmetric key pair to the data center, and sends the public key to each IoT terminal; The key management center generates a terminal asymmetric key pair for each IoT terminal, sends the private key in the terminal asymmetric key pair to each IoT terminal, and sends the public key to the data center; The data center negotiates a transmission symmetric key and n authentication symmetric keys with each IoT terminal, and saves them separately; Each IoT terminal extracts its own device features, generates m device feature values, and sends them to the data center.
3. According to claim 2, the random encryption-based Internet of Things terminal authentication method is characterized in that: The specific process of generating random number information by the data center is as follows: The data center generates an n-bit random number Rand1, a 256-bit random number Rand_Key, and an m-bit random number Rand2; There are t "1"s in the binary bits of the random number Rand2, and the data center generates t 256-bit Rand _ ID_1~ Rand _ ID_t, generates t 3-bit random numbers Rand _ Oper_1~ Rand _ Oper_t; The data center will be random number Rand1, Rand_Key, Rand2, Rand _ ID_1~ Rand _ ID_t and Rand _ Oper_1~Rand _ Oper_t performs encryption operation by transmitting the symmetric key, and the obtained ciphertext is used as random number information.
4. The random encryption-based IoT terminal authentication method according to claim 3 is characterized in that: The specific process of obtaining the symmetric key for this authentication is: After receiving the random number sent by the data center, the IoT terminal selects the corresponding t device feature values from the m device feature values according to the t "1"s of the m-bit random number Rand2; Perform XOR calculation on t 256-bit random numbers sent by the data center and t device feature values to obtain the plain text of the authentication information; According to the positions of the s "1"s in the n-bit random number Rand1, the corresponding s symmetric keys from the n symmetric keys are selected, and the symmetric key for this authentication is obtained after the XOR operation.
5. The random encryption-based IoT terminal authentication method according to claim 4 is characterized in that: The calculation of the authentication information plain text is specifically as follows: Set t 256-bit random numbers Rand _ ID_1~ Rand _ ID_t and t device characteristic values Device_ID_i1~ Device_ID_it are respectively XORed according to the preset operation function to obtain the authentication information plain text.
6. The random encryption-based IoT terminal authentication method according to claim 4 is characterized in that: The specific process of verifying the correctness of the authentication information is as follows: According to the positions of the s "1"s in the n-bit random number Rand1, select the corresponding s authentication symmetric keys from the n symmetric keys, and calculate them to obtain the symmetric key for this authentication; Decrypt the encrypted authentication information and verify the integrity of the authentication information; If the verification fails, the identity authentication fails; If the authentication information is verified, the data center selects corresponding t device feature values from the m device feature values according to the t "1"s of the m-bit random number Rand2; The data center calculates t 256-bit random numbers and t device feature values to obtain calculated authentication information; The data center compares the authentication information sent by the IoT terminal with the calculated authentication information to see if they are the same. If they are the same, the authentication passes, otherwise the authentication fails.
7. An Internet of Things terminal authentication system based on random encryption, characterized in that: The system is used to implement the method described in claim 1, and the system includes a data center and a plurality of Internet of Things terminals; The data center generates random number information and sends it to the IoT terminal; the IoT terminal obtains the symmetric key for this authentication based on the random number information, generates authentication information using a symmetric encryption algorithm, and sends the authentication information to the data center; The data center verifies the correctness of the authentication information through random number information and pre-stored device feature values of the current IoT terminal.
8. The random encryption-based IoT terminal authentication system according to claim 7 is characterized in that: The system also includes a key management center, which generates its own management asymmetric key pair and a large prime number p, and sends the public key and the large prime number p in the management asymmetric key pair to the data center and each IoT terminal; The key management center generates a data asymmetric key pair for the data center, sends the private key in the data asymmetric key pair to the data center, and sends the public key to each IoT terminal; The key management center generates a terminal asymmetric key pair for each IoT terminal, sends the private key in the terminal asymmetric key pair to each IoT terminal, and sends the public key to the data center.
9. A computer storage medium having computer instructions stored therein, characterized in that: When the computer instructions are executed on the system of claim 7 or 8, the system is caused to execute the steps of the method of any one of claims 1 to 6.
