A method and device for updating a key

By obtaining the root key in the network management server and generating private key data, the problem of excessive load on the key management system in the video network is solved, and the key update of the video network terminal is realized, ensuring the stability of the system performance.

CN111786778BActive Publication Date: 2024-11-08VISIONVERA INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010538400.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-11-08
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

In the video network, the key management system will face a large load when distributing keys to a large number of video network terminals, resulting in a degradation in performance.

Method used

By obtaining the root key in the network management server, receiving the key update request of the video network terminal, using the root key and terminal identifier to generate private key data, and encrypting the private key data using the public key data, sending it to the video network terminal to achieve the secret Key update ensures that the terminal obtains keys from the network management server and reduces the load on the key management system.

Benefits of technology

It effectively solves the problem of excessive load on the key management system, ensures the performance of the key management system, realizes key updates of the visual network terminal, and ensures the stable operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111786778B_ABST
    Figure CN111786778B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for key update, the method comprising: obtaining a root key, receiving a key update request sent by a visual network terminal, the certificate update request including a visual network terminal identifier and public key data, using the root key and the visual network terminal identifier to generate private key data, using the public key data to encrypt the private key data, obtaining a request response message, and sending the request response message to the visual network terminal. Through the embodiment of the present invention, the key update of the visual network terminal is realized, the visual network terminal obtains the key from the network management server, the key management system is prevented from operating under heavy load, and the performance of the key management system is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual networking technology, and in particular to a method and device for key updating. Background Art

[0002] In the visual network, there are a large number of visual network terminals. In order to meet the identity authentication, communication security and other requirements of the visual network terminals, keys need to be distributed to each visual network terminal.

[0003] Key distribution is usually completed by a key management system, where the visual network terminal sends a key request to the key management system, and then the key management system sends the key to the visual network terminal. However, when there are too many visual network terminals, the key request will cause a large load on the key management system, resulting in a performance degradation of the key management system. Summary of the invention

[0004] In view of the above problems, a method and device for key updating is proposed to overcome the above problems or at least partially solve the above problems, including:

[0005] A key updating method, applied to a network management server, comprising:

[0006] Get the root key;

[0007] Receiving a key update request sent by a visual networking terminal; wherein the certificate update request includes a visual networking terminal identifier and public key data;

[0008] Generate private key data using the root key and the visual network terminal identifier;

[0009] Using the public key data, encrypting the private key data to obtain a request response message;

[0010] The request response message is sent to the visual networking terminal.

[0011] Optionally, the using the public key data to encrypt the private key data to obtain a request response message includes:

[0012] Splicing the private key data and the visual network terminal identifier to obtain splicing result data;

[0013] The public key data is used to encrypt the splicing result data to obtain a request response message.

[0014] Optionally, before the step of using the root key and the visual networking terminal identifier to generate private key data, the step includes:

[0015] Determining whether the video networking terminal is a video networking terminal registered under the network management server;

[0016] If the visual networking terminal is a visual networking terminal registered under the network management server, the root key and the visual networking terminal identifier are used to generate private key data.

[0017] Optionally, the step of using the root key and the visual networking terminal identifier to generate private key data includes:

[0018] Get the preset hash function;

[0019] The visual networking terminal identifier is used as a parameter of the hash function, and the root key is used to process the root key to obtain private key data.

[0020] Optionally, it also includes:

[0021] When re-access to the visual network is detected, the root key is updated.

[0022] A key updating method, applied to a visual network terminal, comprises:

[0023] Obtain visual network terminal identification and public key data;

[0024] Generate a key update request using the visual networking terminal identifier and the public key data, and send the key update request to the network management server;

[0025] Receiving a request response message returned by the network management server;

[0026] Decrypting the request response message using the public key data to obtain private key data;

[0027] The private key data is used to update the key.

[0028] Optionally, the using the public key data to decrypt the request response message to obtain private key data includes:

[0029] Decrypting the request response message using the public key data to obtain splicing result data;

[0030] Determine private key data from the splicing result data;

[0031] Before the key update is performed using the private key data, the method further includes:

[0032] Determining whether the splicing result data contains the visual networking terminal identifier;

[0033] If the splicing result data contains the visual networking terminal identifier, the key update using the private key data is executed.

[0034] Optionally, before using the public key data to decrypt the request response message to obtain the private key data, the method further includes:

[0035] Determine whether the network management server is the network management server to which the visual networking terminal belongs;

[0036] If the network management server is the network management server to which the visual network terminal belongs, the public key data is used to decrypt the request response message to obtain the private key data.

[0037] A key updating device, applied to a network management server, comprising:

[0038] A root key acquisition module, used to obtain a root key;

[0039] A key update request receiving module, used to receive a key update request sent by a visual network terminal; wherein the certificate update request includes a visual network terminal identifier and public key data;

[0040] A private key data generation module, used to generate private key data using the root key and the visual network terminal identifier;

[0041] A private key data encryption module, used to encrypt the private key data using the public key data to obtain a request response message;

[0042] A response message sending module is used to send the request response message to the visual network terminal.

[0043] A key updating device, applied to a visual networking terminal, comprises:

[0044] A public key data acquisition module, used to obtain the visual network terminal identification and public key data;

[0045] A key update request sending module, used to generate a key update request using the visual network terminal identifier and the public key data, and send the key update request to the network management server;

[0046] A request response message receiving module, used to receive the request response message returned by the network management server;

[0047] A response message decryption module, used to use the public key data to decrypt the request response message to obtain private key data;

[0048] The key updating module is used to update the key using the private key data.

[0049] The embodiments of the present invention have the following advantages:

[0050] In an embodiment of the present invention, by obtaining the root key, a key update request sent by a visual network terminal is received, the certificate update request includes a visual network terminal identifier and public key data, the root key and the visual network terminal identifier are used to generate private key data, the public key data is used to encrypt the private key data, and a request response message is obtained, and the request response message is sent to the visual network terminal, thereby realizing the key update of the visual network terminal. The visual network terminal obtains the key from the network management server, thereby preventing the key management system from operating under heavy load and ensuring the performance of the key management system. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0052] Figure 1 This is a schematic diagram of a visual network provided by an embodiment of the present invention;

[0053] Figure 2 It is a schematic diagram of the hardware structure of a node server provided by an embodiment of the present invention;

[0054] Figure 3 It is a schematic diagram of the hardware structure of an access switch provided by an embodiment of the present invention;

[0055] Figure 4 It is a hardware structure diagram of an Ethernet protocol conversion gateway provided by one embodiment of the present invention;

[0056] Figure 5 is a flowchart of a key update method provided by an embodiment of the present invention;

[0057] Figure 6 is a schematic diagram of a network structure provided by an embodiment of the present invention;

[0058] Figure 7 is a flowchart of another key update method provided by an embodiment of the present invention;

[0059] Figure 8 is a flowchart of another key update method provided by an embodiment of the present invention;

[0060] Fig. 9 It is a structural diagram of a key updating device provided by an embodiment of the present invention;

[0061] Fig.10 It is a structural diagram of another key updating device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.

[0064] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.

[0065] In order to enable those skilled in the art to better understand the embodiments of the present invention, the visual network is introduced as follows:

[0066] Some of the technologies used in the visual Internet of Things are as follows:

[0067] Network Technology

[0068] The network technology innovation of visual networking improves the traditional Ethernet to cope with the huge potential video traffic on the network. Different from simple network packet switching or network circuit switching, visual networking technology uses packet switching to meet streaming needs. Visual networking technology has the flexibility, simplicity and low price of packet switching, and the quality and security guarantee of circuit switching, realizing the seamless connection of the whole network switching virtual circuit and data format.

[0069] Switching Technology

[0070] Visual networking uses the two advantages of Ethernet: asynchronism and packet switching. It eliminates Ethernet defects under the premise of full compatibility, and has seamless end-to-end connection across the entire network, directly connects to user terminals, and directly carries IP data packets. User data does not require any format conversion within the entire network. Visual networking is a more advanced form of Ethernet and a real-time switching platform that can achieve large-scale real-time transmission of high-definition video across the entire network, which is currently unattainable on the Internet, and pushes many network video applications towards high definition and unification.

[0071] Server Technology

[0072] The server technology on the visual network and unified video platform is different from the traditional server. Its streaming media transmission is based on connection-oriented. Its data processing capability is independent of traffic and communication time. A single network layer can include signaling and data transmission. For voice and video services, the complexity of streaming media processing on the visual network and unified video platform is much simpler than data processing, and its efficiency is more than 100 times higher than that of traditional servers.

[0073] Storage Technology

[0074] The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system to adapt to the media content with ultra-large capacity and ultra-large flow, mapping the program information in the server command to the specific hard disk space. The media content no longer passes through the server, but is directly delivered to the user terminal in an instant. The user generally waits for less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical movement of the hard disk head seeking, and the resource consumption accounts for only 20% of the same level of IP Internet, but it generates 3 times more concurrent traffic than the traditional hard disk array, and the overall efficiency is improved by more than 10 times.

[0075] Network Security Technology

[0076] The structural design of the visual network completely eradicates the network security issues that plague the Internet through separate licensing for each service and complete isolation of equipment and user data. Generally, anti-virus programs and firewalls are not required, and attacks by hackers and viruses are eliminated, providing users with a structurally worry-free and secure network.

[0077] Service Innovation Technology

[0078] The unified video platform integrates services and transmission. Whether it is a single user, a private network user or a network, it is just an automatic connection. User terminals, set-top boxes or PCs are directly connected to the unified video platform to obtain rich and colorful multimedia video services in various forms. The unified video platform uses a "recipe-style" table configuration mode to replace traditional complex application programming. Complex applications can be implemented with very little code, realizing "unlimited" new business innovation.

[0079] The networking of the visual network is as follows:

[0080] Visual networking is a centrally controlled network structure. The network can be a tree network, star network, ring network, etc., but on this basis, there needs to be a centralized control node in the network to control the entire network.

[0081] like Figure 1 As shown in the figure, the visual network is divided into two parts: access network and metropolitan area network.

[0082] The equipment in the access network can be divided into three categories: node server, access switch, and terminal (including various set-top boxes, encoding boards, storage, etc.). The node server is connected to the access switch, and the access switch can be connected to multiple terminals and can be connected to Ethernet.

[0083] The node server is a node in the access network that performs centralized control functions and can control access switches and terminals. The node server can be directly connected to the access switch or directly connected to the terminal.

[0084] Similarly, the devices in the metropolitan area network can also be divided into three categories: metropolitan area servers, node switches, and node servers. The metropolitan area servers are connected to the node switches, and the node switches can be connected to multiple node servers.

[0085] The node server is a node server of the access network part, that is, the node server belongs to both the access network part and the metropolitan area network part.

[0086] The metropolitan area server is a node with centralized control function in the metropolitan area network, which can control the node switch and node server. The metropolitan area server can be directly connected to the node switch or the node server.

[0087] It can be seen from this that the entire visual network is a hierarchical and centrally controlled network structure, and the network controlled by the node server and the metropolitan area server can be various structures such as tree, star, and ring.

[0088] Figuratively speaking, the access network part can form a unified video platform (the part in the dotted circle), and multiple unified video platforms can form a visual network; each unified video platform can be interconnected through the metropolitan area and wide area visual networks.

[0089] 1. Classification of visual networking equipment

[0090] 1.1 The devices in the visual network of the embodiment of the present invention can be mainly divided into three categories: servers, switches (including Ethernet protocol conversion gateways), terminals (including various set-top boxes, encoding boards, storage devices, etc.). The visual network as a whole can be divided into a metropolitan area network (or a national network, a global network, etc.) and an access network.

[0091] 1.2 The equipment in the access network can be mainly divided into three categories: node server, access switch (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, encoding boards, storage, etc.).

[0092] The specific hardware structure of each access network device is as follows:

[0093] Node server:

[0094] like Figure 2 As shown, it mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;

[0095] Among them, the packets coming from the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of checking the address table 205 on the incoming packets, thereby obtaining the packet's guidance information; and according to the packet's guidance information, the packet is stored in the queue of the corresponding packet buffer 206; if the queue of the packet buffer 206 is close to full, it is discarded; the switching engine module 202 polls all packet buffer queues, and forwards if the following conditions are met: 1) the port sending buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements the control of the hard disk, including the initialization, reading and writing of the hard disk; the CPU module 203 is mainly responsible for the protocol processing between the access switch and the terminal (not shown in the figure), the configuration of the address table 205 (including the downstream protocol packet address table, the upstream protocol packet address table, and the data packet address table), and the configuration of the disk array module 204.

[0096] Access switch:

[0097] like Figure 3 As shown, it mainly includes a network interface module (a downlink network interface module 301, an uplink network interface module 302), a switching engine module 303 and a CPU module 304;

[0098] Among them, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the destination address (DA), source address (SA), data packet type and packet length of the packet meet the requirements. If they meet the requirements, the corresponding stream identifier (stream-id) is allocated and enters the switching engine module 303, otherwise it is discarded; the packet (downlink data) coming from the uplink network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 304 enters the switching engine module 303; the switching engine module 303 processes the incoming packet The address table 306 is looked up to obtain the packet's guidance information; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in combination with the stream identifier (stream-id); if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downstream network interface to the upstream network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the packet's guidance information; if the queue of the packet buffer 307 is nearly full, it is discarded.

[0099] The switching engine module 303 polls all packet buffer queues. In the embodiment of the present invention, there are two situations:

[0100] If the queue is from the downlink network interface to the uplink network interface, it is forwarded if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero; 3) a token generated by the bit rate control module is obtained;

[0101] If the queue is not going from the downstream network interface to the upstream network interface, it is forwarded if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.

[0102] The code rate control module 308 is configured by the CPU module 304 to generate tokens for all packet buffer queues from the downstream network interface to the upstream network interface within a programmable interval to control the code rate of the upstream forwarding.

[0103] The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306 , and configuration of the bit rate control module 308 .

[0104] Ethernet protocol conversion gateway :

[0105] like Figure 4As shown, it mainly includes a network interface module (a downlink network interface module 401, an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a bit rate control module 408, an address table 406, a packet buffer 407 and a MAC adding module 409, and a MAC deleting module 410.

[0106] The data packet from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the Ethernet MAC DA, Ethernet MAC SA, Ethernet length or frame type, visual network destination address DA, visual network source address SA, visual network data packet type and packet length of the data packet meet the requirements, and if they meet the requirements, a corresponding stream identifier (stream-id) is assigned; then, the MAC deletion module 410 subtracts the MAC DA, MAC SA, length or frame type (2 bytes) and enters the corresponding receiving buffer, otherwise it is discarded;

[0107] The downlink network interface module 401 detects the sending buffer of the port. If there is a packet, it obtains the Ethernet MAC DA of the corresponding terminal based on the visual network destination address DA of the packet, adds the Ethernet MAC DA of the terminal, the MACSA of the Ethernet protocol conversion gateway, and the Ethernet length or frame type, and sends it.

[0108] The functions of other modules in the Ethernet protocol conversion gateway are similar to those of the access switch.

[0109] terminal:

[0110] It mainly includes network interface module, business processing module and CPU module; for example, the set-top box mainly includes network interface module, audio and video encoding and decoding engine module, CPU module; the encoding board mainly includes network interface module, audio and video encoding engine module, CPU module; the memory mainly includes network interface module, CPU module and disk array module.

[0111] 1.3 The equipment in the metropolitan area network can be divided into two categories: node server, node switch, and metropolitan area server. Among them, the node switch mainly includes network interface module, switching engine module and CPU module; the metropolitan area server mainly includes network interface module, switching engine module and CPU module.

[0112] 2. Definition of Visual Network Data Packet

[0113] 2.1 Access Network Data Packet Definition

[0114] The data packet of the access network mainly includes the following parts: destination address (DA), source address (SA), reserved bytes, payload (PDU), and CRC.

[0115] As shown in the following table, the data packet of the access network mainly includes the following parts:

[0116] DA SA Reserved Payload CRC

[0117] in:

[0118] The destination address (DA) consists of 8 bytes. The first byte indicates the type of data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), with a maximum of 256 possibilities. The second to sixth bytes are the metropolitan area network address, and the seventh and eighth bytes are the access network address.

[0119] The source address (SA) is also composed of 8 bytes and has the same definition as the destination address (DA).

[0120] The reserved bytes consist of 2 bytes;

[0121] The payload part has different lengths depending on the type of datagram. If it is a protocol packet, it is 64 bytes. If it is a single multicast data packet, it is 32+1024=1056 bytes. Of course, it is not limited to the above two types.

[0122] CRC consists of 4 bytes and its calculation method follows the standard Ethernet CRC algorithm.

[0123] 2.2 Definition of Metropolitan Area Network Data Packet

[0124] The topology of the metropolitan area network is a graph. There may be two or more connections between two devices, that is, there may be more than two connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metropolitan area network address of a metropolitan area network device is unique. In order to accurately describe the connection relationship between metropolitan area network devices, a parameter: a label is introduced in the embodiment of the present invention to uniquely describe a metropolitan area network device.

[0125] The definition of labels in this manual is similar to the definition of labels in MPLS (Multi-Protocol Label Switch). Assuming that there are two connections between device A and device B, there are two labels for the data packet from device A to device B, and there are two labels for the data packet from device B to device A. Labels are divided into input labels and output labels. Assuming that the label of the data packet entering device A (input label) is 0x0000, the label of the data packet when leaving device A (output label) may become 0x0001. The access process of the metropolitan area network is a centralized access process, which means that the address allocation and label allocation of the metropolitan area network are dominated by the metropolitan area server, and the node switch and node server are only passively executed. This is different from the label allocation of MPLS, which is the result of mutual negotiation between the switch and the server.

[0126] As shown in the following table, the data packets of the metropolitan area network mainly include the following parts:

[0127] DA SA Reserved Label Payload CRC

[0128] That is, destination address (DA), source address (SA), reserved byte (Reserved), label, payload (PDU), CRC. The label format can refer to the following definition: the label is 32 bits, of which the upper 16 bits are reserved and only the lower 16 bits are used. It is located between the reserved bytes and payload of the data packet.

[0129] Reference Figure 5 , shows a flowchart of a key update method provided by an embodiment of the present invention, the method can be applied to a network management server, such as Figure 6 As shown, the network management server can be connected to the key management system through a switch, the switch can also be connected to the visual network server, the visual network server can be connected to the visual network switch, and the visual network switch can be connected to the visual network terminal.

[0130] The key management system may be used to generate encryption key pairs, such as public keys and private keys. The network management server and the key management system may be located in a management network, such as the Internet.

[0131] Specifically, the following steps may be included:

[0132] Step 501, obtaining a root key;

[0133] After the network management server is connected to the switch, the network management server can send a root key acquisition request to the key management system through the switch to obtain the root key;

[0134] After receiving the root key acquisition request sent by the network management server, the switch may send the key acquisition request to the key management system corresponding to the network management server;

[0135] After receiving the root key acquisition request, the key management system may generate a root key and send the root key to the switch;

[0136] After receiving the root key, the switch may send the root key to the network management server.

[0137] Step 502, receiving a key update request sent by a visual network terminal; wherein the certificate update request includes a visual network terminal identifier and public key data;

[0138] When updating the key, the network management server can receive a key update request sent by the visual network terminal.

[0139] Specifically, Figure 6 When updating the key, the visual network terminal can obtain the visual network terminal identification and public key data stored locally, use the visual network terminal identification and public key data to generate a key update request, and send the key update request to the network management server. After receiving the key update request, the visual network switch can send the key update request to the visual network server; after receiving the key update request, the visual network server can send the key update request to the Internet switch; after receiving the key update request, the Internet switch can send the key update request to the network management server;

[0140] After receiving the key update request, the network management server can extract the visual network terminal identifier and public key data from the key update request, and search for the visual network terminal identifier in the pre-stored visual network terminals to perform identity verification on the visual network terminal; after the visual network terminal identity verification passes, the network management server can cache the public key data locally.

[0141] Step 503, using the root key and the visual network terminal identifier to generate private key data;

[0142] After receiving the key update request and passing the identity verification of the visual network terminal, the network management server can use the root key and the visual network terminal identifier to generate private key data. Specifically, the network management server can use the visual network terminal identifier as a parameter and use the key hash function to disperse the root key to generate the private key data of the visual network terminal.

[0143] Step 504, using the public key data to encrypt the private key data to obtain a request response message;

[0144] After generating the private key data, the network management server can use the public key data to encrypt the private key data and obtain a request response message;

[0145] Step 505: Send the request response message to the visual networking terminal.

[0146] Specifically, Figure 6 After receiving the request response message, the network management server may send the request response message to the Internet switch; after receiving the request response message, the network switch may send the request response message to the visual network switch; after receiving the request response message, the visual network switch may send the request response message to the corresponding visual network terminal;

[0147] After receiving the request response message, the visual network terminal receives the request response message returned by the network management server, and can determine whether the network management server is the network management server to which the visual network terminal belongs. When the network management server is the network management server to which the visual network terminal belongs, the public key data is used to decrypt the request response message to obtain the private key data, and the private key data is used to update the key.

[0148] In an embodiment of the present invention, by obtaining the root key, a key update request sent by a visual network terminal is received, the certificate update request includes a visual network terminal identifier and public key data, the root key and the visual network terminal identifier are used to generate private key data, the public key data is used to encrypt the private key data, and a request response message is obtained, and the request response message is sent to the visual network terminal, thereby realizing the key update of the visual network terminal. The visual network terminal obtains the key from the network management server, thereby preventing the key management system from operating under heavy load and ensuring the performance of the key management system.

[0149] Reference Figure 7 , shows a flowchart of another key update method provided by an embodiment of the present invention, the method can be applied to a network management server, and specifically may include the following steps:

[0150] Step 701, obtaining a root key;

[0151] In one embodiment of the present invention, the method may further include the following steps:

[0152] When re-access to the visual network is detected, the root key is updated.

[0153] After the network management server is disconnected from the switch, the network management server can reconnect to the switch; after the connection is established with the switch, the network management server can reapply to the key management system through the switch to update the root key.

[0154] Step 702, receiving a key update request sent by a visual network terminal; wherein the certificate update request includes a visual network terminal identifier and public key data;

[0155] Step 703, determining whether the video network terminal is a video network terminal registered under the network management server;

[0156] After receiving the key update request sent by the visual networking terminal, the network management server can obtain the visual networking terminal identifier of the visual networking terminal, and determine whether the visual networking terminal is a visual networking terminal registered under the network management server through the visual networking terminal identifier.

[0157] Step 704, if the visual network terminal is a visual network terminal registered under the network management server, private key data is generated using the root key and the visual network terminal identifier;

[0158] When the visual network terminal is a visual network terminal registered under the network management server, the network management server can use the root key and the visual network terminal identifier to generate private key data.

[0159] In one embodiment of the present invention, step 704 may include the following sub-steps:

[0160] Sub-step S11, obtaining a preset hash function;

[0161] After generating the private key data, the network management server may obtain a preset hash function, such as y=ax+b, where a and b are preset data.

[0162] Sub-step S12, using the visual networking terminal identifier as the parameter of the hash function, using the root key to process the root key to obtain private key data.

[0163] After obtaining the preset hash function, the network management server can use the visual network terminal identifier as the parameter of the hash function, use the root key to process the root key, and obtain private key data, such as y=ax+b, where a and b are pre-set data. The network management server can use the visual network terminal identifier as x and obtain private key data y.

[0164] Step 705, concatenating the private key data and the visual network terminal identifier to obtain concatenated result data;

[0165] After generating the private key data, the network management server can splice the private key data and the visual network terminal identifier to obtain splicing result data;

[0166] Step 706, using the public key data to encrypt the splicing result data to obtain a request response message;

[0167] Step 707, sending the request response message to the visual networking terminal.

[0168] After receiving the request response message, the visual network terminal can use the public key data to decrypt the request response message to obtain the splicing result data; after obtaining the splicing result data, the visual network terminal can determine whether the network management server is the network management server to which the visual network terminal belongs; when the network management server is the network management server to which the visual network terminal belongs, the visual network terminal can use the public key data to decrypt the request response message to obtain the private key data.

[0169] After determining the private key data, the visual networking terminal can determine whether the splicing result data contains the visual networking terminal identification; when the splicing result data contains the visual networking terminal identification, the visual networking terminal can use the private key data to update the key.

[0170] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present invention is not limited to this.

[0171] 1. After the network management system (i.e., the network management server) is connected to the visual network (i.e., connected to the switch), it applies for the root key K1 (i.e., the root key, the root key is always K1 when the network management system is in the visual network, until it leaves the visual network and reconnects to the visual network, it will re-apply for the root key (i.e., when it detects that it has reconnected to the visual network, it will update the root key);

[0172] 2. Terminal A (i.e., the visual network terminal) sends a "key request instruction req" (i.e., receiving a key update request sent by the visual network terminal) to the network management system through the visual network switch (i.e., the switch), the visual network server, and the Internet switch. The req contains a terminal ID (i.e., the visual network terminal identifier) ​​with a fixed length of 11 bytes and a terminal certificate cert (i.e., public key data). After receiving the req, the network management verifies whether the terminal ID is the terminal ID registered in the network management system (i.e., determines whether the visual network terminal is the visual network terminal registered under the network management server), and caches the certificate cert locally;

[0173] 3. The network manager uses the terminal ID as a parameter and a key hash function to disperse the basic key K1 to obtain the key Ka of terminal A (i.e., the visual network terminal identifier is used as the parameter of the hash function, and the root key is used to process the root key to obtain the private key data), and then obtains the public key Kp of terminal A from the certificate cert, and uses Kp to encrypt the splicing result of Ka and the terminal ID to obtain the ciphertext Kpa (i.e., the splicing result data is encrypted using the public key data to obtain the request response message), and finally returns a "key request response res" to terminal A (i.e., the request response message is sent to the visual network terminal), and res contains the terminal ID, network manager ID, and ciphertext Kpa;

[0174] 4. After the terminal obtains res, it verifies whether the returned terminal ID matches its own ID, verifies whether the network management ID matches the network management ID to which it is registered, uses its own private key to decrypt the ciphertext Kpa to obtain the plaintext, intercepts the last 11 bytes of the plaintext, and compares and verifies it with its own ID. If the above verification results are correct, the last 11 bytes of plaintext data, namely the key Ka, will be cut off and saved in the key storage area.

[0175] In an embodiment of the present invention, a root key is obtained and a key update request sent by a visual network terminal is received; wherein the certificate update request includes a visual network terminal identifier and public key data, and it is determined whether the visual network terminal is a visual network terminal registered under a network management server. If the visual network terminal is a visual network terminal registered under a network management server, the root key and the visual network terminal identifier are used to generate private key data, the private key data and the visual network terminal identifier are spliced ​​to obtain splicing result data, the splicing result data is encrypted using the public key data, a request response message is obtained, and the request response message is sent to the visual network terminal, thereby realizing the key update of the visual network terminal. Through the identity authentication between the visual network terminal and the network management server, the security of the key update in the visual network is guaranteed.

[0176] Reference Figure 8 , shows a flowchart of another key update method provided by an embodiment of the present invention, the method can be applied to a visual network terminal, and specifically may include the following steps:

[0177] Step 801, obtaining the visual network terminal identification and public key data;

[0178] When updating the key, the visual network terminal can obtain the visual network terminal identification and public key data stored locally.

[0179] Step 802, using the visual network terminal identifier and the public key data to generate a key update request, and sending the key update request to the network management server;

[0180] After obtaining the visual networking terminal identification and the public key data, the visual networking terminal can use the visual networking terminal identification and the public key data to generate a key update request, and send the key update request to the network management server;

[0181] Step 803, receiving the request response message returned by the network management server;

[0182] After sending the key update request, the visual networking terminal may receive a request response message returned by the network management server in response to the key update request.

[0183] Step 804, using the public key data to decrypt the request response message to obtain private key data;

[0184] After receiving the request response message, the visual network terminal can use the public key data to decrypt the request response message to obtain the private key data.

[0185] In one embodiment of the present invention, step 804 may include the following sub-steps:

[0186] The request response message is decrypted using the public key data to obtain splicing result data; and private key data is determined from the splicing result data.

[0187] In an embodiment of the present invention, before step 804, the following steps may also be included:

[0188] Determine whether the network management server is the network management server to which the visual networking terminal belongs; if the network management server is the network management server to which the visual networking terminal belongs, execute the use of the public key data to decrypt the request response message to obtain the private key data.

[0189] Step 805: Use the private key data to update the key.

[0190] After obtaining the private key data, the visual network terminal can use the private key data to update the key.

[0191] In an embodiment of the present invention, before step 805, the following steps may also be included:

[0192] Determine whether the splicing result data contains the visual networking terminal identifier; if the splicing result data contains the visual networking terminal identifier, execute the key update using the private key data.

[0193] In an embodiment of the present invention, by obtaining the root key, a key update request sent by a visual network terminal is received, the certificate update request includes a visual network terminal identifier and public key data, the root key and the visual network terminal identifier are used to generate private key data, the public key data is used to encrypt the private key data, and a request response message is obtained, and the request response message is sent to the visual network terminal, thereby realizing the key update of the visual network terminal. The visual network terminal obtains the key from the network management server, thereby preventing the key management system from operating under heavy load and ensuring the performance of the key management system.

[0194] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0195] Reference Fig. 9 , shows a schematic diagram of the structure of a key update device provided by an embodiment of the present invention, the device can be applied to a network management server, and the device may include the following modules:

[0196] A root key acquisition module 901 is used to acquire a root key;

[0197] The key update request receiving module 902 is used to receive the key update request sent by the visual network terminal; wherein the certificate update request includes the visual network terminal identification and public key data;

[0198] A private key data generation module 903, used to generate private key data using the root key and the visual network terminal identifier;

[0199] The private key data encryption module 904 is used to encrypt the private key data using the public key data to obtain a request response message;

[0200] The response message sending module 905 is used to send the request response message to the visual networking terminal.

[0201] In one embodiment of the present invention, the private key data encryption module 904 includes the following submodules:

[0202] A splicing result data generating submodule, used for splicing the private key data and the visual network terminal identifier to obtain splicing result data;

[0203] The request response message generation submodule is used to use the public key data to encrypt the splicing result data to obtain a request response message.

[0204] In one embodiment of the present invention, the device further includes the following modules:

[0205] A visual networking terminal identity determination module, used to determine whether the visual networking terminal is a visual networking terminal registered under the network management server;

[0206] The private key data generation module is used to generate private key data by using the root key and the visual network terminal identifier if the visual network terminal is a visual network terminal registered under the network management server.

[0207] In one embodiment of the present invention, the private key data generation module 903 includes the following submodules:

[0208] A hash function acquisition submodule is used to acquire a preset hash function;

[0209] The private key data generation submodule is used to use the visual networking terminal identifier as the parameter of the hash function, use the root key to process the root key, and obtain the private key data.

[0210] In one embodiment of the present invention, the device further includes the following modules:

[0211] A root key updating module is used to update the root key when re-access to the visual network is detected.

[0212] In an embodiment of the present invention, by obtaining the root key, a key update request sent by a visual network terminal is received, the certificate update request includes a visual network terminal identifier and public key data, the root key and the visual network terminal identifier are used to generate private key data, the public key data is used to encrypt the private key data, and a request response message is obtained, and the request response message is sent to the visual network terminal, thereby realizing the key update of the visual network terminal. The visual network terminal obtains the key from the network management server, thereby preventing the key management system from operating under heavy load and ensuring the performance of the key management system.

[0213] Reference Fig.10 , showing a schematic diagram of the structure of another key updating device provided by an embodiment of the present invention, the device can be applied to a visual network terminal, and the device includes:

[0214] The public key data acquisition module 1001 is used to obtain the visual network terminal identification and public key data;

[0215] A key update request sending module 1002, configured to generate a key update request using the visual network terminal identifier and the public key data, and send the key update request to a network management server;

[0216] The request response message receiving module 1003 is used to receive the request response message returned by the network management server;

[0217] The response message decryption module 1004 is used to use the public key data to decrypt the request response message to obtain the private key data;

[0218] The key updating module 1005 is used to update the key using the private key data.

[0219] In one embodiment of the present invention, the response message decryption module 1004 includes the following submodules:

[0220] A splicing result data generating submodule, used to use the public key data to decrypt the request response message to obtain splicing result data;

[0221] A private key data determination submodule, used to determine the private key data from the splicing result data;

[0222] In one embodiment of the present invention, the device further includes the following modules:

[0223] A visual networking terminal identification judgment module, used to judge whether the splicing result data contains the visual networking terminal identification;

[0224] A key updating module is used to execute the key updating using the private key data if the splicing result data contains the visual networking terminal identifier.

[0225] In one embodiment of the present invention, the device further includes the following modules:

[0226] A network management server identity determination module, used to determine whether the network management server is the network management server to which the visual network terminal belongs;

[0227] The private key data generating module is used to, if the network management server is the network management server to which the visual network terminal belongs, execute the use of the public key data to decrypt the request response message to obtain the private key data.

[0228] In an embodiment of the present invention, by obtaining the root key, a key update request sent by a visual network terminal is received, the certificate update request includes a visual network terminal identifier and public key data, the root key and the visual network terminal identifier are used to generate private key data, the public key data is used to encrypt the private key data, and a request response message is obtained, and the request response message is sent to the visual network terminal, thereby realizing the key update of the visual network terminal. The visual network terminal obtains the key from the network management server, thereby preventing the key management system from operating under heavy load and ensuring the performance of the key management system.

[0229] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0230] An embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the above key update method when executed by the processor.

[0231] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above key updating method are implemented.

[0232] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0233] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0234] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0235] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

Claims

1. A method for updating a key, characterized in that: Applied to network management servers, including: Get the root key; Receiving a key update request sent by a visual networking terminal; wherein the key update request includes a visual networking terminal identifier and public key data; Generate private key data using the root key and the visual network terminal identifier; Using the public key data, encrypting the private key data to obtain a request response message; Sending the request response message to the visual networking terminal; Before the root key and the visual network terminal identifier are used to generate the private key data, the following steps are included: Determining whether the video networking terminal is a video networking terminal registered under the network management server; If the visual networking terminal is a visual networking terminal registered under the network management server, the root key and the visual networking terminal identifier are used to generate private key data; Wherein, the step of using the root key and the visual network terminal identifier to generate private key data includes: Get the preset hash function; The visual networking terminal identifier is used as a parameter of the hash function, and the root key is used to process the root key to obtain private key data.

2. The method according to claim 1, characterized in that The method of using the public key data to encrypt the private key data to obtain a request response message includes: Splicing the private key data and the visual network terminal identifier to obtain splicing result data; The public key data is used to encrypt the splicing result data to obtain a request response message.

3. The method according to claim 1, characterized in that: Also includes: When re-access to the visual network is detected, the root key is updated.

4. A method for updating a key, characterized in that: Applied to visual networking terminals, including: Obtain visual network terminal identification and public key data; Generate a key update request using the visual networking terminal identifier and the public key data, and send the key update request to the network management server; Receiving a request response message returned by the network management server; Decrypting the request response message using the public key data to obtain private key data; The private key data is used to update the key.

5. The method according to claim 4, characterized in that The method of using the public key data to decrypt the request response message to obtain private key data includes: Decrypting the request response message using the public key data to obtain splicing result data; Determine private key data from the splicing result data; Before the key update is performed using the private key data, the method further includes: Determining whether the splicing result data contains the visual networking terminal identifier; If the splicing result data contains the visual networking terminal identifier, the key update using the private key data is executed.

6. The method according to claim 4 or 5, characterized in that: Before the public key data is used to decrypt the request response message to obtain the private key data, the method further includes: Determine whether the network management server is the network management server to which the visual networking terminal belongs; If the network management server is the network management server to which the visual network terminal belongs, the public key data is used to decrypt the request response message to obtain the private key data.

7. A key updating device, characterized in that: Applied to network management servers, including: A root key acquisition module, used to obtain a root key; A key update request receiving module, used to receive a key update request sent by a visual networking terminal; wherein the key update request includes a visual networking terminal identifier and public key data; A private key data generation module, used to generate private key data using the root key and the visual network terminal identifier; A private key data encryption module, used to encrypt the private key data using the public key data to obtain a request response message; A response message sending module, used for sending the request response message to the visual networking terminal; A visual networking terminal identity determination module, used to determine whether the visual networking terminal is a visual networking terminal registered under the network management server; A private key data generation module, used for executing the step of using the root key and the visual network terminal identifier to generate private key data if the visual network terminal is a visual network terminal registered under the network management server; The private key data generation module includes the following submodules: A hash function acquisition submodule is used to acquire a preset hash function; The private key data generation submodule is used to use the visual networking terminal identifier as the parameter of the hash function, use the root key to process the root key, and obtain the private key data.

8. A key updating device, characterized in that: Applied to visual networking terminals, including: A public key data acquisition module, used to obtain the visual network terminal identification and public key data; A key update request sending module, used to generate a key update request using the visual network terminal identifier and the public key data, and send the key update request to the network management server; A request response message receiving module, used to receive the request response message returned by the network management server; A response message decryption module, used to use the public key data to decrypt the request response message to obtain private key data; The key updating module is used to update the key using the private key data.

Citation Information

Patent Citations

  • Authentication method and system of internet of videos terminal

    CN109672664A

  • Data encryption and decryption method and system and network connection apparatus and data encryption and decryption method thereof

    US20190325146A1

  • Method, system for distributing key and method, system for online updating public key

    WO2009143766A1

  • Virtual SIM card parameter management method, mobile terminal, and server

    WO2016201732A1

  • Key negotiation method and device

    WO2018076365A1