Key acquisition method, apparatus and system, and computer-readable storage medium

By obtaining signals on the Ethernet link to generate keys, the problem of complex root key configuration and high hardware requirements is solved, simplifying key acquisition and improving security in complex scenarios.

WO2024179315A1PCT designated stage expired Publication Date: 2024-09-06HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/077470
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2024-02-18
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the field of communication technology, the configuration and management of root keys in existing technologies are complex in complex scenarios, and the equipment hardware requirements are high, resulting in limitations in application scenarios. Especially in vehicle and Internet of Things scenarios, the risk of root key leakage is high.

Method used

By acquiring the signal on the Ethernet link, the randomness of the signal is used to generate the key, avoiding reliance on the root key, simplifying the key generation process, and is suitable for scenarios where the hardware does not have dedicated storage space.

Benefits of technology

It simplifies the key acquisition process in complex scenarios, reduces hardware storage space requirements, improves security and applicability, and is suitable for devices such as vehicles and the Internet of Things.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024077470_06092024_PF_FP
    Figure CN2024077470_06092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Disclosed are a key acquisition method, apparatus and system, and a computer-readable storage medium. The method is applied to a first module which is comprised in a first chip. The method comprises: a first module acquiring a first signal, which is transmitted by a second module; performing digital signal processing on the first signal; and generating a first key according to a processing result, wherein the first module and the second module are in communication connection by means of an Ethernet link, and the first key is used by the first module to encrypt data which is transmitted to the second module. Since the effect of a channel of an Ethernet link on a signal is random, a first key which is acquired on the basis of an acquired signal is also random, such that a first module can generate the first key on the basis of the acquired signal when needing to use the first key, and the first module generates the first key without needing to depend on a root key. Since a first key can be directly generated according to an acquired signal, the means of the first module generating the first key is relatively simple.
Need to check novelty before this filing date? Find Prior Art

Description

Key acquisition method, device, system and computer-readable storage medium

[0001] This application claims priority to Chinese patent application No. 202310224898.X, filed on February 28, 2023, entitled “Key acquisition method, device, system and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a key acquisition method, device, system, and computer-readable storage medium. Background Art

[0003] In the field of communications technology, data transmission can be encrypted using an encryption algorithm to ensure data security during transmission. Since the use of encryption algorithms requires that both devices performing the data transmission possess a key, a key acquisition method is required to enable both devices performing the data transmission to obtain the key.

[0004] In related technologies, symmetric keys are distributed to two devices performing data transmission based on the Media Access Control Security (MACsec) key agreement (MKA). The MKA process mainly includes: the two devices performing data transmission have the same root key and generate the same working key based on the same root key; the two devices negotiate to use the device with higher priority as the key server; the key server uses the root key and a self-generated random number to obtain an encryption key, encrypts the encryption key using the working key, and sends the encrypted encryption key to the other end; the other end uses the working key to decrypt the encrypted encryption key to obtain the encryption key. As a result, the two devices obtain the same encryption key and can encrypt and decrypt data based on the encryption key.

[0005] However, since root keys are typically pre-configured in devices, and each link corresponds to a root key, the root key configuration and management process is more complex in scenarios with more complex links. Furthermore, since root keys need to be stored in a dedicated storage space, such as a hardware security module (HSM), to prevent root key leakage and data security issues, the related technology has high hardware requirements for devices, resulting in relatively limited application scenarios.

[0006] Summary of the Invention

[0007] The present application proposes a key acquisition method, device, system and computer-readable storage medium for generating a key.

[0008] In a first aspect, a key acquisition method is provided, which is applied to a first module included in a first chip, and the method includes: the first module acquires a first signal transmitted by a second module, performs digital signal processing on the first signal, and generates a first key based on the processing result; wherein, the first module and the second module are communicatively connected via an Ethernet link, and the first key is used by the first module to encrypt data transmitted to the second module.

[0009] In this method, a first key is generated by acquiring a signal transmitted via an Ethernet link. Since the Ethernet link's channel has a random effect on the signal, the first key acquired based on the acquired signal is also random. Thus, the first module can generate the first key based on the acquired signal when the first key is needed, without relying on a root key to generate the first key. Since the first key can be generated directly from the acquired signal, the method by which the first module generates the first key is relatively simple. Furthermore, since there is no need to rely on a root key, there is no need for storage space for the root key. Therefore, this method is applicable to application scenarios where the hardware does not have dedicated storage space.

[0010] In one possible implementation, the first chip further includes an analog-to-digital converter (ADC), the ADC being communicatively connected to the first module, the first signal being a signal processed by the ADC, and the first signal including at least one of link noise and device noise. Because the first signal includes at least one of link noise and device noise, the first signal has a high degree of randomness, thereby increasing the randomness of a first key subsequently generated based on the first signal.

[0011] In one possible implementation, digital signal processing is performed on a first signal, and a first key is generated based on the processing result. This includes: low-pass filtering and downsampling the first signal to obtain a second signal; and quantizing the second signal to generate the first key. The low-pass filtering and downsampling operations can suppress high-frequency noise in the signal and improve signal consistency. Thus, by low-pass filtering and downsampling the first signal, the randomness and consistency of the second signal can be controlled to meet the required randomness and consistency.

[0012] In one possible implementation, low-pass filtering and downsampling the first signal to obtain the second signal includes: preprocessing the first signal to obtain a third signal, wherein the third signal is time-synchronized with a fifth signal obtained by the second module through preprocessing the fourth signal; and low-pass filtering and downsampling the third signal to obtain the second signal. By synchronizing the two preprocessed signals, the preprocessed signals have a high degree of similarity, and the keys subsequently generated by the first module and the second module based on the preprocessed signals have a high degree of similarity.

[0013] In one possible implementation, quantizing the second signal to generate the first key includes: extracting channel characteristics from the second signal to obtain multiple channel characteristic values; converting the multiple channel characteristic values ​​into a first bit stream; and generating the first key based on the first bit stream. This method of generating the key by extracting channel characteristics from the signal and generating the key based on the extracted channel characteristic values ​​is relatively simple.

[0014] In one possible implementation, generating a first key based on a first bitstream includes: obtaining multiple first bits from the first bitstream, encrypting first reference information based on the multiple first bits to obtain first encrypted information, and transmitting the first encrypted information to a second module; receiving a decryption result obtained by the second module decrypting the first encrypted information based on the second key, and based on the decryption result indicating successful decryption of the first encrypted information, using the multiple first bits as the generated first key, wherein the second key is generated by the second module based on a fourth signal transmitted by the first module. By first encrypting the first reference information based on the multiple first bits and transmitting the encrypted first encrypted information to the second module, it is possible to determine whether the multiple first bits are identical to the second key generated by the second module based on the decryption result returned by the second module, thereby ensuring consistency between the first key generated by the first module and the second key generated by the second module.

[0015] In one possible implementation, generating a first key based on a first bit stream includes: obtaining multiple first bits from the first bit stream, encrypting first reference information based on the multiple first bits to obtain first encrypted information, and transmitting the first encrypted information to a second module; receiving a decryption result obtained by the second module decrypting the first encrypted information based on the second key, indicating that decryption of the first encrypted information failed based on the decryption result, obtaining multiple second bits from the first bit stream, the multiple second bits are not completely the same as the multiple first bits, and the second key is generated by the second module based on a fourth signal transmitted by the first module; encrypting second reference information based on the multiple second bits to obtain second encrypted information, and transmitting the second encrypted information to the second module; receiving a decryption result obtained by the second module decrypting the second encrypted information based on the second key, indicating that decryption of the second encrypted information was successful based on the decryption result, and using the multiple second bits as the generated first key.

[0016] In the event that decryption of the first encrypted information fails, the second reference information can be encrypted based on multiple second bits, and the encrypted second encrypted information can be transmitted to the second module, so as to determine whether the multiple second bits are the same as the second key generated by the second module based on the decryption result returned by the second module, thereby ensuring the consistency of the first key generated by the first module and the second key generated by the second module.

[0017] In one possible implementation, the first key is a quantum key, that is, the method can be used to generate a quantum key.

[0018] In a second aspect, a key acquisition method is provided, which is applied to a second module included in a second chip, and the method includes: the second module transmits a first signal to the first module, so that the first module performs digital signal processing on the first signal and generates a first key based on the processing result; the first module and the second module are communicatively connected via an Ethernet link, and the first key is used by the first module to encrypt data transmitted to the second module.

[0019] In this method, the first module can generate a first key by acquiring a signal transmitted via an Ethernet link. Since the influence of the Ethernet link channel on the signal is random, the first key acquired based on the acquired signal is also random. Thus, the first module can generate the first key based on the acquired signal when the first key is needed, and the first module does not need to rely on a root key to generate the first key. Since the first key can be generated directly based on the acquired signal, the method for the first module to generate the first key is relatively simple. Furthermore, since there is no need to rely on a root key, there is no need to store the root key. Therefore, this method can be applied to application scenarios where the hardware does not have dedicated storage space.

[0020] In one possible implementation, the method further includes: receiving, by a second module, first encrypted information transmitted by the first module, the first encrypted information being obtained by the first module by encrypting first reference information based on multiple first bits in a first bitstream; decrypting the first encrypted information using a second key to obtain a decryption result, and transmitting the decryption result to the first module, the decryption result being used to indicate success or failure in decrypting the first encrypted information, the second key being generated by the second module based on a fourth signal transmitted by the first module. Thus, after receiving the decryption result, the first module can determine, based on the decryption result, whether the multiple first bits are identical to the second key, thereby ensuring that the generated first key is consistent with the second key.

[0021] In one possible implementation, the method further includes: receiving, by a second module, second encrypted information transmitted by the first module, the second encrypted information being obtained by the first module by encrypting second reference information based on multiple second bits in the first bit stream, the multiple second bits being not completely identical to the multiple first bits used to obtain the first encrypted information; decrypting the second encrypted information based on a second key to obtain a decryption result, and transmitting the decryption result to the first module, the decryption result being used to indicate success or failure in decrypting the second encrypted information, the second key being generated by the second module based on a fourth signal transmitted by the first module. Thus, after receiving the decryption result, the first module can determine, based on the decryption result, whether the multiple second bits are identical to the second key, thereby ensuring that the generated first key is consistent with the second key.

[0022] In a third aspect, a key acquisition device is provided. The device is applied to a first module included in a first chip, and the device includes:

[0023] a transmission unit, configured to acquire the first signal transmitted by the second module, the transmission unit and the second module being communicatively connected via an Ethernet link;

[0024] The generating unit is used to perform digital signal processing on the first signal and generate a first key according to the processing result. The first key is used by the generating unit to encrypt data transmitted to the second module.

[0025] In a possible implementation, the first chip further includes an ADC, the ADC is communicatively connected to the first module, the first signal is a signal processed by the ADC, and the first signal includes at least one of link noise and device noise.

[0026] In a possible implementation, the generating unit is configured to perform low-pass filtering and down-sampling on the first signal to obtain the second signal; and perform quantization processing on the second signal to generate the first key.

[0027] In one possible implementation, a generating unit is configured to preprocess the first signal to obtain a third signal, and the third signal is time-synchronized with a fifth signal obtained by the second module by preprocessing the acquired fourth signal; and the third signal is low-pass filtered and downsampled to obtain a second signal.

[0028] In a possible implementation, the generating unit is configured to extract channel characteristics of the second signal to obtain a plurality of channel characteristic values; convert the plurality of channel characteristic values ​​into a first bit stream, and generate a first key according to the first bit stream.

[0029] In one possible implementation, a generation unit is used to obtain multiple first bits from a first bit stream, encrypt first reference information based on the multiple first bits to obtain first encrypted information, and transmit the first encrypted information to a second module; receive a decryption result obtained by the second module decrypting the first encrypted information based on a second key, indicate that the decryption of the first encrypted information is successful based on the decryption result, use the multiple first bits as the generated first key, and the second key is generated by the second module based on a fourth signal obtained and transmitted by the transmission unit.

[0030] In one possible implementation, a generation unit is used to obtain multiple first bits from a first bit stream, encrypt first reference information based on the multiple first bits to obtain first encrypted information, and transmit the first encrypted information to a second module; receive a decryption result obtained by the second module decrypting the first encrypted information based on a second key, indicate that decryption of the first encrypted information failed based on the decryption result, obtain multiple second bits from the first bit stream, the multiple second bits are not completely the same as the multiple first bits, and the second key is generated by the second module based on a fourth signal obtained and transmitted by the transmission unit; encrypt second reference information based on the multiple second bits to obtain second encrypted information, and transmit the second encrypted information to the second module; receive a decryption result obtained by the second module decrypting the second encrypted information based on the second key, indicate that decryption of the second encrypted information was successful based on the decryption result, and use the multiple second bits as the generated first key.

[0031] In one possible implementation, the first key is a quantum key.

[0032] In a fourth aspect, a key acquisition device is provided. The device is applied to the second module included in the second chip, and the device includes:

[0033] The transmission unit is used to transmit a first signal to the first module so that the first module performs digital signal processing on the first signal and generates a first key based on the processing result; the first module and the transmission unit are communicatively connected via an Ethernet link, and the first key is used by the first module to encrypt data transmitted to the generation unit included in the second module.

[0034] In one possible implementation, a generation unit is used to receive first encrypted information transmitted by a first module, where the first encrypted information is obtained by the first module encrypting first reference information based on multiple first bits in a first bit stream; decrypting the first encrypted information according to a second key to obtain a decryption result, and transmitting the decryption result to the first module, where the decryption result is used to indicate whether the decryption of the first encrypted information is successful or unsuccessful, and the second key is generated by the generation unit based on a fourth signal obtained and transmitted by the first module.

[0035] In one possible implementation, a generation unit is used to receive second encrypted information transmitted by a first module, where the second encrypted information is obtained by the first module encrypting second reference information based on multiple second bits in a first bit stream, and the multiple second bits are not completely the same as the multiple first bits used to obtain the first encrypted information; the second encrypted information is decrypted according to a second key to obtain a decryption result, and the decryption result is transmitted to the first module, where the decryption result is used to indicate whether the decryption of the second encrypted information is successful or unsuccessful, and the second key is generated by the generation unit based on a fourth signal obtained and transmitted by the first module.

[0036] In a fifth aspect, a communication system is provided, which includes a first chip and a second chip, the first chip includes a first module, the second chip includes a second module, the first module is used to execute any key acquisition method in the above-mentioned first aspect, and the second module is used to execute any key acquisition method in the above-mentioned second aspect.

[0037] In a sixth aspect, a computer system is provided, comprising a processor, wherein the processor comprises a first module and / or a second module. When the processor comprises the first module, when the processor executes program instructions or code, the computer system implements any of the key acquisition methods described in the first aspect. When the processor comprises the second module, when the processor executes program instructions or code, the computer system implements any of the key acquisition methods described in the second aspect. Exemplarily, the computer system further comprises a memory configured to store the program instructions or code.

[0038] In the seventh aspect, a computer-readable storage medium is provided, in which at least one program instruction or code is stored, and the program instruction or code is executed by a computer, and the computer includes a first chip and / or a second chip, the first chip includes a first module, and the second chip includes a second module; in the case where the computer includes the first chip, when the program instruction or code is executed by the computer, the computer implements any key acquisition method in the first aspect; in the case where the computer includes the second chip, when the program instruction or code is executed by the computer, the computer implements any key acquisition method in the second aspect.

[0039] In an eighth aspect, a communication device is provided, comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via an internal connection path. The memory is used to store instructions, and the processor is used to execute instructions stored in the memory to control the transceiver to transmit and receive signals. The processor comprises a first module and / or a second module. When the processor comprises the first module, when the processor executes instructions stored in the memory, the processor executes any key acquisition method described in the first aspect. When the processor comprises the second module, when the processor executes instructions stored in the memory, the processor executes any key acquisition method described in the second aspect.

[0040] Illustratively, there are one or more processors and one or more memories.

[0041] For example, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0042] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor or be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.

[0043] In the ninth aspect, a computer program or a computer program product is provided, the computer program or the computer program product comprising: computer program instructions or codes, the computer program instructions or codes being executed by a computer, the computer comprising a first chip and / or a second chip, the first chip comprising a first module, and the second chip comprising a second module; in the case where the computer comprises the first chip, when the computer program instructions or codes are executed by the computer, the computer executes any one of the key acquisition methods in the first aspect; in the case where the computer comprises the second chip, when the computer program instructions or codes are executed by the computer, the computer implements any one of the key acquisition methods in the second aspect.

[0044] In the tenth aspect, a chip is provided, which includes a processor, the processor includes a first module and / or a second module, and the processor is used to run program instructions or codes. When the processor includes the first module, the device including the chip executes any key acquisition method in the first aspect; when the processor includes the second module, the device including the chip executes any key acquisition method in the second aspect.

[0045] Exemplarily, the chip further includes: an input interface, an output interface, and a memory. The input interface, the output interface, the processor, and the memory are connected via an internal connection path. The memory is used to store program instructions or codes.

[0046] It should be understood that the beneficial effects achieved by the technical solutions of the third to tenth aspects of this application and their corresponding possible implementation methods can be referred to the technical effects of the above-mentioned first and second aspects and their corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] FIG1 is a flow chart of an MKA provided in an embodiment of the present application;

[0048] FIG2 is a schematic diagram of an implementation scenario of a key acquisition method provided in an embodiment of the present application;

[0049] FIG3 is a schematic diagram of an implementation scenario of another key acquisition method provided in an embodiment of the present application;

[0050] FIG4 is a schematic diagram of the structure of a chip provided in an embodiment of the present application;

[0051] FIG5 is a flowchart of a key acquisition method provided in an embodiment of the present application;

[0052] FIG6 is a schematic diagram of a two-ended signal received by a first module according to an embodiment of the present application;

[0053] FIG7 is a schematic diagram of a second signal and a sixth signal provided in an embodiment of the present application;

[0054] FIG8 is a schematic diagram of a signal before and after preprocessing provided by an embodiment of the present application;

[0055] FIG9 is a schematic diagram of a first bit stream and a second bit stream provided in an embodiment of the present application;

[0056] FIG10 is a flowchart of another key acquisition method provided in an embodiment of the present application;

[0057] FIG11 is a schematic diagram of a two-ended signal received by a second module according to an embodiment of the present application;

[0058] 12 is a schematic diagram of a process of obtaining first encrypted information and decrypting the first encrypted information to obtain a decryption result, provided in an embodiment of the present application;

[0059] FIG13 is a schematic structural diagram of a key acquisition device provided in an embodiment of the present application;

[0060] FIG14 is a schematic structural diagram of another key acquisition device provided in an embodiment of the present application;

[0061] FIG15 is a schematic diagram of the structure of a computer system provided in an embodiment of the present application;

[0062] FIG16 is a schematic structural diagram of another computer system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] The terms used in the embodiments of the present application are only used to explain the embodiments of the present application and are not intended to limit the present application. The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0064] Encryption is a key security mechanism for network security. By encrypting data to be transmitted and transmitting the encrypted data, data leakage can be prevented during data transmission. In the Ethernet field, standardized security mechanisms include the MACsec mechanism based on the Institute of Electrical and Electronics Engineers (IEEE) 802.1. MACsec includes MKA, a key distribution mechanism based on symmetric keys. The MKA process includes but is not limited to steps 11 to 14 below.

[0065] In step 11, the two devices performing data transmission derive the same working key based on the same root key.

[0066] The two devices each store the same root key, which can be a certification authority key (CAK). In MKA, the root key can be called a primary key. The working key can be a key encryption key (KEK), which can be called a secondary key. Step 11 corresponds to step 101 shown in Figure 1, i.e., the process in which device 1 and device 2 derive the same working key from the same root key, where device 1 and device 2 are located at the two ends of the same link in an Ethernet network.

[0067] In step 12, the two devices negotiate to use the device with a higher device priority as the key server.

[0068] For example, two devices each send a message including their respective device priorities to the other end. This allows the two devices to determine the device with the higher device priority based on their own device priorities and the other end's device priorities, and then use the device with the higher device priority as the key server. Step 12 may correspond to step 102 shown in FIG. 1 , i.e., the process by which device 1 and device 2 determine the key server through negotiation. In FIG. 1 , device 1 has a higher device priority than device 2, and device 1 and device 2 negotiate to use device 1 as the key server.

[0069] In step 13, the key server derives an encryption key based on the root key and the random number generated by the local end, encrypts the encryption key using the working key, and sends the encrypted encryption key to the device at the other end.

[0070] That is, step 13 may correspond to step 103 shown in FIG1 , i.e., the process in which device 1 derives an encryption key based on the root key and the random number, encrypts the encryption key using the working key, and sends the encrypted encryption key to device 2. The encryption key may be a security association key (SAK), which may be referred to as a third-level key.

[0071] In step 14, after receiving the encrypted encryption key, the peer device decrypts the encrypted encryption key according to the working key to obtain the encryption key and sends a confirmation signal to the key server.

[0072] The confirmation signal can be used to indicate to the peer device that the encryption key has been obtained, thereby enabling both devices to have the same encryption key and, in turn, to encrypt the data to be transmitted based on the encryption key, thereby achieving encrypted data transmission. Step 14 may correspond to step 104 shown in Figure 1, i.e., the process by which device 2 obtains the encryption key based on the working key.

[0073] In MKA, each Ethernet link must be pre-configured with a corresponding root key. In scenarios with complex links, such as in-vehicle scenarios, the root key configuration process is complex, which also makes key management more difficult. Furthermore, the root key must be stored in dedicated storage to ensure its security. However, in low-cost and resource-constrained scenarios such as in-vehicle and IoT scenarios, vehicles and IoT devices lack this dedicated storage space. If vehicles and IoT devices are exposed to the outside world for extended periods, the components storing the root key can be easily damaged, leading to root key leakage, which can pose a network security risk.

[0074] The present application provides a key acquisition method that can be applied to generate keys in scenarios with limited device resources, such as in-vehicle scenarios and IoT scenarios. Of course, this method can also be applied to generate keys in scenarios with unlimited device resources, but this is not a limitation of the present application. Figure 2 is a schematic diagram of an implementation scenario of a key acquisition method provided in the present application. Referring to Figure 2, the implementation scenario includes a first module 201 and a second module 202, which are communicatively connected via an Ethernet link. In other words, the first module 201 and the second module 202 are communicatively connected via a wired link. Exemplarily, the first module 201 and the second module 202 are located in the same chip. Alternatively, the first module 201 is located in a first chip, and the second module 202 is located in a second chip, where the first and second chips are two chips communicatively connected via the same physical link in Ethernet. In this case, the channel between the first device and the second device is an Ethernet channel. The first chip can be located in the first device, the second chip can be located in the second device, or the first and second chips can be located in the same device. Exemplarily, both the first chip and the second chip support duplex mode, meaning that the first chip and the second chip can simultaneously transmit signals to the other end. The first chip and the second chip can be chips used in vehicle-mounted scenarios or IoT scenarios. Furthermore, in addition to the first module 201 and the second module 202, the implementation scenario shown in FIG2 may also include other modules, which are not limited in the present embodiment.

[0075] The first module 201 and the second module 202 may also each include multiple submodules, and the functions of the first module 201 and the second module 202 are implemented by the submodules included therein. Figure 3 is a schematic diagram of an implementation scenario of another key acquisition method provided in an embodiment of the present application. Referring to Figure 3, the first module 201 includes a first transceiver module 2011 and a first acquisition module 2012, and the second module 202 includes a second transceiver module 2021 and a second acquisition module 2022, wherein the first transceiver module 2011 and the second transceiver module 2021 are communicatively connected via an Ethernet link. The first transceiver module 2011 is used to acquire a signal transmitted by the second transceiver module 2021, and the first transceiver module 2011 transmits the signal to the first acquisition module 2012, which generates a first key based on the signal. The first acquisition module 2012 can also transmit the first key to the first transceiver module 2011, so that the first transceiver module 2011 can encrypt data transmitted to the second transceiver module 2021 based on the first key.

[0076] Similar to the principle used by the first acquisition module 2012 to generate the first key, the second acquisition module 2022 can also generate the second key. For example, the second transceiver module 2021 is configured to acquire a signal transmitted by the first transceiver module 2011. The second transceiver module 2021 transmits the signal to the second acquisition module 2022, which then generates the second key based on the signal. The second acquisition module 2022 can also transmit the second key to the second transceiver module 2021, so that the second transceiver module 2021 can encrypt data transmitted to the first transceiver module 2011 based on the second key. In this embodiment of the present application, the Ethernet link between the first module 201 and the second module 202 can be a bidirectional, full-duplex Ethernet link, so that the signal transmission from the first transceiver module 2011 to the second transceiver module 2021 and the signal transmission from the second transceiver module 2021 to the first transceiver module 2011 can be performed simultaneously.

[0077] Furthermore, the signals transmitted by the first transceiver module 2011 and the second transceiver module 2021 may be the same initial signal. Thus, the two initial signals transmitted simultaneously experience similar environmental and noise influences within the same channel, and the signals received by the first transceiver module 2011 and the second transceiver module 2021 may be the same, and the first key and the second key generated based on the same signal may also be the same.

[0078] Exemplarily, the first chip also includes other modules in addition to the first module 201, and the second chip also includes other modules in addition to the second module 202. Taking the first chip as an example, FIG4 is a structural diagram of a chip provided in an embodiment of the present application. As shown in FIG4, the first chip also includes a serializer and deserializer (serializer / deserializer, SerDes) physical coding sublayer (physical coding sublayer, PCS), a physical layer (physical layer, PHY) PCS transmitter (transmitter, TX), a digital to analog converter (digital to analog converter, DAC), a hybrid circuit (hybrid circuit), an ADC, a digital signal processing (digital signal processing, DSP) module (module) and a PHY PCS receiver (receiver, RX). Among them, the first module 201 is communicatively connected with the ADC, and the first module 201 can receive the digital signal output by the ADC, and then generate a key based on the received digital signal.

[0079] The key acquisition method provided in the embodiment of the present application can be applied to a first chip, which includes a first module. The method can be shown in Figure 5. Next, the key acquisition method provided in the embodiment of the present application is described. Taking the implementation scenario shown in Figure 2 as an example, as shown in Figure 5, the method includes but is not limited to S501 and S502.

[0080] S501: A first module acquires a first signal transmitted by a second module. The first module and the second module are communicatively connected via an Ethernet link.

[0081] In conjunction with the implementation scenario shown in Figure 2, S501 can obtain the first signal transmitted by the second module 202 for the first module 201. Exemplarily, the first signal is a single-ended signal. A single-ended signal refers to a signal transmitted via a line. The single-ended signal can be obtained based on a double-ended signal of differential transmission. For example, the Ethernet link adopts a differential transmission structure. The differentially transmitted signal is called a double-ended signal. The double-ended signal includes a positive signal and a negative signal. Among them, the positive signal in the double-ended signal can be represented as S+, and the negative signal in the double-ended signal can be represented as S-. The double-ended signal can be a digital sampling signal obtained based on ADC sampling. For example, the first chip includes a first module and an acquisition circuit. The first module is electrically connected to the acquisition circuit. The acquisition circuit has an ADC function. The acquisition circuit samples the received analog signal to obtain a digital sampling signal and transmits the sampled digital signal to the first module.

[0082] The first module can receive the positive signal and the negative signal in the double-ended signal through two channels respectively. Figure 6 is a schematic diagram of a double-ended signal received by a first module provided in an embodiment of the present application, wherein (1) in Figure 6 shows the positive signal in the double-ended signal received by channel 1, and (2) in Figure 6 shows the negative signal in the double-ended signal received by channel 2. Whether it is (1) in Figure 6 or (2) in Figure 6, the number of points represents the horizontal coordinate and the voltage represents the vertical coordinate. After the first module receives the double-ended signal, a single-ended signal can be obtained based on the double-ended signal. For example, the first module performs signal energy normalization processing on the double-ended signal, converts the processed double-ended signal into a single-ended signal, and uses the obtained single-ended signal as the first signal obtained.

[0083] For example, when the first chip further includes an ADC and the ADC is communicatively coupled to the first module, the first signal is a signal processed by the ADC, and the first signal includes at least one of link noise and device noise. In other words, the first signal may be a signal obtained solely through analog-to-digital conversion by the ADC, and the first signal has not undergone noise cancellation processing by the DSP module, thereby retaining at least one of link noise and device noise in the first signal.

[0084] In an embodiment of the present application, the first module and the second module are connected via an Ethernet link communication, that is, the first module and the second module transmit signals via a wired link. Compared with the method of transmitting signals through the channel of a wireless link, the signal is less interfered with when transmitted via the channel of a wired link, and the noise in the channel of the wired link is also less. As a result, the signal sent by the second module changes less during the process of being transmitted via the channel of the wired link, and the consistency of the signal transmitted via the channel received by the first module is higher and the randomness is lower. Wherein, consistency refers to the degree of consistency between the signal received by the first module and the signal sent by the second module. The higher the degree of consistency between the signal received by the first module and the signal sent, the higher the consistency of the signal. Randomness refers to the degree of difference between the signal received by the first module and the signal sent by the second module. The higher the degree of difference between the received signal and the signal sent, the higher the randomness of the signal.

[0085] Because the first signal may include at least one of link noise and device noise, the first signal is more random than the digital signal that has undergone noise cancellation processing by the DSP module. Consequently, the first key subsequently generated based on the first signal is more random. By encrypting the data to be transmitted using the highly random key, the key is less likely to be known by modules other than the second module, thereby reducing the likelihood that other modules will learn the encrypted data.

[0086] S502: The first module performs digital signal processing on the first signal and generates a first key according to the processing result. The first key is used by the first module to encrypt data transmitted to the second module.

[0087] In an embodiment of the present application, digital signal processing may include one or more processes. For example, the first module may directly perform quantization processing on the first signal to generate a first key. The first module may also perform low-pass filtering and downsampling on the first signal to obtain a second signal, perform quantization processing on the second signal, and generate a first key. The operations of low-pass filtering and downsampling can suppress high-frequency noise in the signal and improve the consistency of the signal, so that by performing low-pass filtering and downsampling on the first signal, the randomness and consistency of the second signal can be regulated so that the randomness and consistency of the second signal meet the requirements, and the second signal can be shown in Figure 7, where the points in Figure 7 represent the horizontal coordinate and the voltage represents the vertical coordinate. In an embodiment of the present application, the operation of low-pass filtering on the first signal can be achieved by inputting the first signal into an anti-aliasing filter.

[0088] Exemplarily, while the second module is sending a signal to the first module, the first module is also sending a signal to the second module. The signals sent by the first and second modules are identical signals known to both. In an embodiment of the present application, the signals sent by the first and second modules can be referred to as initial signals. Since the first module also sends a signal to the second module, the second module will also receive the signal sent by the first module. The signal transmitted by the first module and received by the second module can be referred to as a fourth signal. Thus, the first signal and the fourth signal are signals obtained after the same initial signal is transmitted through the same channel.

[0089] The first module and the second module can preprocess the first signal and the fourth signal respectively, so that the two signals obtained by the preprocessing are time-synchronized, so that the similarity of the signals obtained after the preprocessing is high, and the similarity of the keys generated by the first module and the second module based on the signals obtained after the preprocessing is high. That is, in an embodiment of the present application, low-pass filtering and downsampling the first signal to obtain the second signal can include: preprocessing the first signal to obtain a third signal, the third signal is time-synchronized with the fifth signal obtained by the second module by preprocessing the acquired fourth signal; low-pass filtering and downsampling the third signal to obtain the second signal. Figure 8 is a schematic diagram of a signal before and after preprocessing provided by an embodiment of the present application, wherein (1) in Figure 8 shows the first signal and the fifth signal, and (2) in Figure 8 shows the third signal and the fifth signal. Whether it is (1) in Figure 8 or (2) in Figure 8, the number of points represents the horizontal axis and the voltage represents the vertical axis.

[0090] The way in which the first module directly performs quantization processing on the first signal to generate the first key is the same as the way in which the first module performs quantization processing on the second signal to generate the first key. The following description takes the example of the first module performing quantization processing on the second signal to generate the first key. Exemplarily, the second signal is quantized to generate the first key, including: performing channel feature extraction on the second signal to obtain multiple channel feature values; converting the multiple channel feature values ​​into a first bit stream, and generating the first key according to the first bit stream. For example, the first module performs channel feature extraction on the signal according to at least one channel feature extraction type to obtain multiple channel feature values ​​corresponding to each channel feature extraction type. For example, if the channel feature extraction type is received signal strength (RSS), the extracted multiple channel feature values ​​include multiple received signal strengths. Regarding the way in which multiple channel feature values ​​are converted into the first bit stream, the embodiments of the present application are not limited.

[0091] Figure 9 is a schematic diagram of a first bitstream and a second bitstream provided in an embodiment of the present application. In Figure 9, the number of dots represents the horizontal axis and the value represents the vertical axis. After obtaining the first bitstream, the first module can directly use all bits included in the first bitstream as the generated first key, or can obtain multiple bits from the first bitstream and use the obtained multiple bits as the generated first key.

[0092] Exemplarily, the second module also generates a second key based on the acquired fourth signal. Since there may be slight differences in the two-way channels, the first key generated by the first module based on the first signal and the second key generated by the second module based on the fourth signal may be different. In the case where the first module performs the operation of generating the first key based on the first signal and the second module performs the operation of generating the second key based on the fourth signal, the first module may use the acquired multiple bits as the initial key before using the multiple bits as the final generated first key, encrypt the reference information according to the initial key, and transmit the encrypted reference information to the second module. If the second module can successfully decrypt the encrypted reference information according to the acquired second key, it means that the first module and the second module have generated the same key. In this case, the first module uses the initial key as the generated first key.

[0093] That is, in one possible implementation, generating a first key based on a first bit stream includes: obtaining multiple first bits from the first bit stream, encrypting first reference information based on the multiple first bits to obtain first encrypted information, and transmitting the first encrypted information to a second module; receiving a decryption result obtained by the second module decrypting the first encrypted information based on the second key, indicating that the decryption of the first encrypted information is successful based on the decryption result, and using the multiple first bits as the generated first key.

[0094] In another possible implementation, generating a first key based on a first bit stream includes: obtaining multiple first bits from the first bit stream, encrypting first reference information based on the multiple first bits to obtain first encrypted information, and transmitting the first encrypted information to a second module; receiving a decryption result obtained by the second module decrypting the first encrypted information based on the second key, indicating that decryption of the first encrypted information failed based on the decryption result, obtaining multiple second bits from the first bit stream, the multiple second bits being not completely identical to the multiple first bits; encrypting second reference information based on the multiple second bits to obtain second encrypted information, and transmitting the second encrypted information to the second module; receiving a decryption result obtained by the second module decrypting the second encrypted information based on the second key, indicating that decryption of the second encrypted information was successful based on the decryption result, and using the multiple second bits as the generated first key.

[0095] The first reference information and the second reference information may be the same or different, which is not limited in this embodiment of the present application. The process of the second module decrypting the encrypted information to obtain the decryption result will be described in S1002 below and will not be expanded here.

[0096] In an embodiment of the present application, whether the first reference information is encrypted according to multiple first bits or the second reference information is encrypted according to multiple second bits, the information can be first encoded using an error correction code to obtain the encoded information, and then the encoded information can be encrypted according to multiple bits. That is to say, taking the encryption of the first reference information according to multiple first bits as an example, the first reference information can be first encoded using an error correction code to obtain the third reference information, and then the third reference information can be encrypted according to the multiple first bits to obtain the first encrypted information. The process principle of encrypting the second reference information according to multiple second bits is the same and will not be repeated here. The type of error correction code can be a preset type, and the preset type can be adapted to the type of channel, so that after the second module receives the first encrypted information, it can correct the errors in the first encrypted information according to the type of error correction code and restore the first encrypted information.

[0097] Illustratively, encrypting the first reference information based on the multiple first bits includes performing an exclusive-OR operation on the multiple first bits and the first reference information, and using the result as the first encrypted information. The principles of encrypting the third reference information based on the multiple first bits and encrypting the second reference information based on the multiple second bits are similar and are not further described here. In one possible implementation, the first key is a quantum key.

[0098] In the method provided in the embodiment of the present application, a first key is generated by acquiring a signal transmitted via an Ethernet link. Since the influence of the channel of the Ethernet link on the signal is random, the first key acquired based on the acquired signal is also random, so that the first module can generate the first key based on the acquired signal when the first key is needed, and the first module does not need to rely on the root key to generate the first key. Since the first key can be generated directly based on the acquired signal, the way the first module generates the first key is relatively simple. Furthermore, since there is no need to rely on the root key, there is no need to place a storage space for the root key, so this method can be applied to application scenarios where the hardware does not have dedicated storage space.

[0099] The above describes the key acquisition method provided in the embodiment of the present application by taking the first module side as an example. Next, the method is described by taking the second module side as an example. The method can be applied to the second chip, and the second chip includes a second module. Exemplarily, the method includes: the second module transmits a first signal to the first module, so that the first module can execute the key acquisition method shown in Figure 5. In an embodiment of the present application, the second module can also generate a key based on the signal transmitted by the first module, as shown in Figure 10. The method includes but is not limited to S1001 and S1002.

[0100] S1001: The second module obtains a fourth signal transmitted by the first module. The first module and the second module are communicatively connected via an Ethernet link.

[0101] The manner in which the second module obtains the fourth signal transmitted by the first module is the same as the manner in which the first module in the above-mentioned S501 obtains the first signal transmitted by the second module. For example, the second module receives a two-ended signal transmitted by the first module, converts the two-ended signal into a single-ended signal, and uses the single-ended signal as the fourth signal. Figure 11 is a schematic diagram of a two-ended signal received by a second module provided in an embodiment of the present application, wherein (1) in Figure 11 shows a positive signal in the two-ended signal received by channel 1, and (2) in Figure 11 shows a negative signal in the two-ended signal received by channel 2. Whether it is (1) in Figure 11 or (2) in Figure 11, the number of points represents the horizontal coordinate, and the voltage represents the vertical coordinate.

[0102] S1002: The second module performs digital signal processing on the fourth signal and generates a second key according to the processing result. The second key is used by the first module to encrypt data transmitted to the second module.

[0103] Exemplarily, digital signal processing includes one or more types of processing. For example, the second module generates a second key by directly quantizing the fourth signal. Alternatively, the second module obtains a sixth signal by low-pass filtering and downsampling the fourth signal; and quantizes the sixth signal to generate a second key. Taking the second module quantizing the sixth signal to generate the second key as an example, the second module quantizes the sixth signal to obtain a second bit stream, and generates a second key based on the second bit stream. The principle of the second module quantizing the fourth signal to generate the second key is the same and will not be repeated here. The second bit stream can be shown in Figure 9. The process of low-pass filtering, downsampling and quantization is the same as the relevant content in S502 and will not be repeated here. The sixth signal obtained after low-pass filtering and downsampling can be shown in Figure 7. The second key obtained by the second module can be a quantum key.

[0104] In one possible implementation, the method further includes: a second module receiving the first encrypted information transmitted by the first module, decrypting the first encrypted information using the second key to obtain a decryption result, and transmitting the decryption result to the first module, wherein the decryption result indicates whether the decryption of the first encrypted information is successful or unsuccessful.

[0105] In another possible implementation, the method further includes: a second module receiving the second encrypted information transmitted by the first module, decrypting the second encrypted information using the second key to obtain a decryption result, and transmitting the decryption result to the first module, wherein the decryption result indicates whether the decryption of the second encrypted information is successful or unsuccessful.

[0106] The following example illustrates the decryption result obtained by the second module decrypting the first encrypted information. For example, the second module stores the first reference information or receives the first reference information sent by the first module. The second module decrypts the first encrypted information using the second key to obtain fourth reference information, and obtains the decryption result based on whether the fourth reference information is identical to the first reference information. If the fourth reference information is identical to the first reference information, the decryption result is the first result, indicating that the decryption of the first encrypted information was successful. If the fourth reference information is different from the first reference information, the decryption result is the second result, indicating that the decryption of the first encrypted information was unsuccessful.

[0107] Exemplarily, the second module decrypts the first encrypted information according to the second key to obtain the fourth reference information, including: the second module performs an XOR operation on the second key and the first encrypted information to obtain the fourth reference information. The method by which the second module determines whether the fourth reference information is the same as the first reference information includes but is not limited to: respectively calculating the first hash value corresponding to the fourth reference information and the second hash value corresponding to the first reference information; if the first hash value and the second hash value are the same, the fourth reference information is the same as the first reference information; if the first hash value and the second hash value are different, the fourth reference information is different from the first reference information. The method and principle of the second module decrypting the second encrypted information to obtain the decryption result are the same and will not be repeated here.

[0108] Figure 12 is a schematic diagram of a process for obtaining first encrypted information and decrypting the first encrypted information to obtain a decryption result, provided by an embodiment of the present application. As shown in Figure 12, the process includes but is not limited to S1201 to S1207. In S1201, the first module generates a random number as first reference information. In S1202, the first module encodes the first reference information according to the type of error correction code to obtain third reference information. In S1203, the first module encodes the third reference information according to multiple first bits to obtain the first encrypted information. In S1204, the first module transmits the first encrypted information to the second module, and the first module also transmits the first reference information to the second module. In S1205, the second module decrypts the first encrypted information according to the second key to obtain fifth reference information. In S1206, the second module corrects the fifth reference information according to the type of error correction code to obtain fourth reference information. In S1207, the second module calculates a first hash value corresponding to the fourth reference information and a second hash value corresponding to the first reference information, and determines whether the first hash value and the second hash value are the same. If the first hash value and the second hash value are the same, the decryption result is determined to be a first result, indicating that the decryption of the first encrypted information is successful. If the first hash value and the second hash value are different, the decryption result is determined to be a second result, indicating that the decryption of the first encrypted information fails.

[0109] In the method provided in the embodiment of the present application, a second key is generated by acquiring a signal transmitted via an Ethernet link. Since the influence of the channel of the Ethernet link on the signal is random, the second key obtained based on the acquired signal is also random, so that the second module can generate the second key based on the acquired signal when the second key is needed, and the second module does not need to rely on the root key to generate the second key. Since the second key can be generated directly based on the acquired signal, the way the second module generates the second key is relatively simple. Furthermore, since there is no need to rely on the root key, there is no need to place a storage space for the root key, so this method can be applied to application scenarios where the hardware does not have dedicated storage space.

[0110] The embodiment of the present application also provides a key acquisition device, which can be applied to the first module included in the first chip. Figure 13 is a structural diagram of a key acquisition device provided by an embodiment of the present application. Based on the multiple units shown in Figure 13, the key acquisition device shown in Figure 13 can perform all or part of the operations performed by the first module. It should be understood that the device may include more additional units than the units shown or omit some of the units shown therein, and the embodiment of the present application is not limited to this. As shown in Figure 13, the device includes:

[0111] The transmission unit 1301 is configured to obtain the first signal transmitted by the second module, and the transmission unit 1301 and the second module are communicatively connected via an Ethernet link;

[0112] The generating unit 1302 is configured to perform digital signal processing on the first signal and generate a first key according to the processing result. The first key is used by the generating unit 1302 to encrypt data transmitted to the second module.

[0113] In a possible implementation, the first chip further includes an ADC, the ADC is communicatively connected to the first module, the first signal is a signal processed by the ADC, and the first signal includes at least one of link noise and device noise.

[0114] In a possible implementation, the generating unit 1302 is configured to perform low-pass filtering and down-sampling on the first signal to obtain a second signal; and perform quantization processing on the second signal to generate a first key.

[0115] In one possible implementation, the generation unit 1302 is used to preprocess the first signal to obtain a third signal, and the third signal is time-synchronized with a fifth signal obtained by the second module by preprocessing the acquired fourth signal; and the third signal is low-pass filtered and downsampled to obtain a second signal.

[0116] In a possible implementation, the generating unit 1302 is configured to extract channel characteristics of the second signal to obtain multiple channel characteristic values; convert the multiple channel characteristic values ​​into a first bit stream, and generate a first key according to the first bit stream.

[0117] In one possible implementation, the generation unit 1302 is used to obtain multiple first bits from the first bit stream, encrypt the first reference information based on the multiple first bits to obtain first encrypted information, and transmit the first encrypted information to the second module; receive the decryption result obtained by the second module decrypting the first encrypted information according to the second key, indicate that the decryption of the first encrypted information is successful based on the decryption result, and use the multiple first bits as the generated first key. The second key is generated by the second module based on the fourth signal transmitted by the transmission unit 1301.

[0118] In one possible implementation, the generation unit 1302 is used to obtain multiple first bits from the first bit stream, encrypt the first reference information according to the multiple first bits to obtain first encrypted information, and transmit the first encrypted information to the second module; receive the decryption result obtained by the second module decrypting the first encrypted information according to the second key, indicate that the decryption of the first encrypted information failed based on the decryption result, obtain multiple second bits from the first bit stream, the multiple second bits are not completely the same as the multiple first bits, and the second key is generated by the second module according to the fourth signal transmitted by the transmission unit 1301; encrypt the second reference information according to the multiple second bits to obtain second encrypted information, and transmit the second encrypted information to the second module; receive the decryption result obtained by the second module decrypting the second encrypted information according to the second key, indicate that the decryption of the second encrypted information is successful based on the decryption result, and use the multiple second bits as the generated first key.

[0119] In one possible implementation, the first key is a quantum key.

[0120] In this device, a first key is generated by acquiring a signal transmitted via an Ethernet link. Since the influence of the Ethernet link channel on the signal is random, the first key acquired based on the acquired signal is also random. Thus, when the first key is needed, the device can generate the first key based on the acquired signal, and the device does not need to rely on a root key to generate the first key. Since the first key can be generated directly based on the acquired signal, the method for generating the first key by the device is relatively simple. Furthermore, since there is no need to rely on a root key, there is no need to store a root key. Therefore, the device can be applied to application scenarios where the hardware does not have dedicated storage space.

[0121] The embodiment of the present application also provides another key acquisition device, which can be applied to the second module included in the second chip. Figure 14 is a structural diagram of a key acquisition device provided by an embodiment of the present application. Based on the multiple units shown in Figure 14, the key acquisition device shown in Figure 14 can perform all or part of the operations performed by the second module. It should be understood that the device can include more additional units than the units shown or omit some of the units shown therein, and the embodiment of the present application is not limited to this. As shown in Figure 14, the device includes:

[0122] The transmission unit 1401 is used to transmit a first signal to the first module so that the first module performs digital signal processing on the first signal and generates a first key based on the processing result; the first module and the transmission unit 1401 are communicatively connected via an Ethernet link, and the first key is used by the first module to encrypt data transmitted to the generation unit 1402 included in the second module.

[0123] In one possible implementation, the generation unit 1402 is used to receive first encrypted information transmitted by the first module, where the first encrypted information is obtained by the first module encrypting the first reference information based on multiple first bits in the first bit stream; decrypting the first encrypted information according to the second key to obtain a decryption result, and transmitting the decryption result to the first module, where the decryption result is used to indicate whether the decryption of the first encrypted information is successful or unsuccessful, and the second key is generated by the generation unit based on the fourth signal transmitted by the first module.

[0124] In one possible implementation, the generation unit 1402 is used to receive second encrypted information transmitted by the first module, where the second encrypted information is obtained by the first module encrypting second reference information based on multiple second bits in the first bit stream, and the multiple second bits are not completely the same as the multiple first bits used to obtain the first encrypted information; the second encrypted information is decrypted according to the second key to obtain a decryption result, and the decryption result is transmitted to the first module, where the decryption result is used to indicate whether the decryption of the second encrypted information is successful or unsuccessful, and the second key is generated by the generation unit based on the fourth signal transmitted by the first module.

[0125] In this device, the first module can generate a first key by acquiring a signal transmitted via an Ethernet link. Since the influence of the channel of the Ethernet link on the signal is random, the first key acquired based on the acquired signal is also random, so that the first module can generate the first key based on the acquired signal when the first key is needed, and the first module does not need to rely on a root key to generate the first key. Since the first key can be generated directly based on the acquired signal, the way the first module generates the first key is relatively simple. Furthermore, since there is no need to rely on a root key, there is no need to place a storage space for the root key, and thus the first module can be applicable to application scenarios where the hardware does not have dedicated storage space.

[0126] It should be understood that the devices provided in Figures 13-14 above are merely examples of the division of the functional units described above when implementing their functions. In actual applications, the functions described above can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. In addition, the devices and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0127] An embodiment of the present application further provides a chip including any of the aforementioned key acquisition devices. The chip may be an Ethernet PHY chip. In other words, any of the aforementioned key acquisition devices is a module within the chip. The chip may also include other modules, such as a SerDes PCS, a PHY PCS TX, a DAC, a hybrid circuit, an ADC, a DSP module, and a PHY PCS RX.

[0128] Referring to FIG. 15 , FIG. 15 is a schematic diagram of the structure of a computer system provided in an embodiment of the present application. For example, as shown in FIG. 15 , the computer system is a computer system 2000. The computer system 2000 may be a network device, which may be a routing device or a switching device. The computer system 2000 shown in FIG. 15 is used to perform the operations involved in the first module of the key acquisition method shown in FIG. 5 and FIG. 12 , or the operations involved in the second module of the key acquisition method shown in FIG. 10 and FIG. 12 . The computer system 2000 is, for example, a server, etc., and the computer system 2000 may be implemented using a general bus architecture.

[0129] As shown in FIG. 15 , a computer system 2000 includes at least one processor 2001 , a memory 2003 , and at least one communication interface 2004 .

[0130] The processor 2001 is, for example, a central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute the various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0131] Optionally, computer system 2000 also includes a bus. The bus is used to transmit information between the components of computer system 2000. The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses can be classified as address buses, data buses, control buses, etc. For ease of illustration, FIG15 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0132] The memory 2003 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2003 is, for example, independent and connected to the processor 2001 via a bus. The memory 2003 can also be integrated with the processor 2001.

[0133] The communication interface 2004 uses any transceiver-like device to communicate with other devices or communication networks. The communication network can be Ethernet, a radio access network (RAN), or a wireless local area network (WLAN). The communication interface 2004 can include a wired communication interface or a wireless communication interface. Specifically, the communication interface 2004 can be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a WLAN interface, a cellular network communication interface, or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. In the embodiment of the present application, the communication interface 2004 can be used for the computer system 2000 to communicate with other devices.

[0134] In a specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG15 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0135] In a specific implementation, as an embodiment, the computer system 2000 may include multiple processors, such as processor 2001 and processor 2005 shown in FIG15 . Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0136] In a specific implementation, as an embodiment, the computer system 2000 may further include an output device and an input device. The output device communicates with the processor 2001 and can display information in a variety of ways. For example, the output device can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 2001 and can receive user input in a variety of ways. For example, the input device can be a mouse, a keyboard, a touch screen device, or a sensor device.

[0137] In some embodiments, the memory 2003 is used to store program code 2010 for executing the solution of the present application, and the processor 2001 can execute the program code 2010 stored in the memory 2003. The program code 2010 may include one or more software modules. Optionally, the processor 2001 itself may also store program code or instructions for executing the solution of the present application.

[0138] In a specific embodiment, the computer system 2000 of the embodiment of the present application may include the first module in the above-mentioned each method embodiment, and the processor 2001 in the computer system 2000 reads the program code 2010 in the memory 2003 or the program code or instructions stored in the processor 2001 itself, so that the computer system 2000 shown in Figure 15 can execute all or part of the operations performed by the first module.

[0139] In a specific embodiment, the computer system 2000 of the embodiment of the present application may include the second module in the above-mentioned method embodiments, and the processor 2001 in the computer system 2000 reads the program code 2010 in the memory 2003 or the program code or instructions stored in the processor 2001 itself, so that the computer system 2000 shown in Figure 15 can execute all or part of the operations performed by the second module.

[0140] The computer system 2000 may also correspond to the apparatus shown in Figures 13-14 above, where each functional unit in the apparatus shown in Figures 13-14 is implemented using software of the computer system 2000. In other words, the functional units included in the apparatus shown in Figures 13-14 are generated by the processor 2001 of the computer system 2000 after reading the program code 2010 stored in the memory 2003.

[0141] Among them, each step of the key acquisition method shown in Figures 5, 10 and 12 is completed by the hardware integrated logic circuit or software instructions in the processor of the computer system 2000. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0142] Figure 16 is a schematic diagram of the structure of another computer system provided in an embodiment of the present application, which is used to perform the operations involved in the first module of the key acquisition method shown in Figures 5 and 12, or the operations involved in the second module of the key acquisition method shown in Figures 10 and 12. Exemplarily, the computer system is a server, and the server may have relatively large differences due to different configurations or performance. The computer system may include one or more processors 1601 and one or more memories 1602, wherein the one or more memories 1602 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 1601. Exemplarily, the processor 1601 is a CPU. Of course, the computer system may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The computer system may also include other components for implementing device functions, which are not described here.

[0143] An embodiment of the present application also provides a computer system, which includes a processor, the processor includes a first module and / or a second module, and the processor is used to call and execute instructions stored in the memory from the memory; when the processor includes the first module, the computer system implements the key acquisition method executed by the above-mentioned first module, and when the processor includes the second module, the computer system implements the key acquisition method executed by the above-mentioned second module.

[0144] In a possible implementation, the computer system further includes: an input interface, an output interface, and the memory, and the input interface, the output interface, the processor, and the memory are connected via an internal connection path.

[0145] An embodiment of the present application further provides a communication system, comprising a first chip and a second chip, wherein the first chip comprises a first module and the second chip comprises a second module. The first module is configured to execute the method executed by the first module shown in FIG5 and FIG12, and the second module is configured to execute the method executed by the second module shown in FIG10 and FIG12. The respective functions of the first module and the second module of the communication system can be referred to the relevant descriptions shown in FIG5, FIG10, and FIG12 above, and will not be repeated here.

[0146] An embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to transmit and receive signals. The processor includes a first module and / or a second module. In the case where the processor includes the first module, when the processor executes the instructions stored in the memory, the processor executes the key acquisition method executed by the first module. In the case where the processor includes the second module, when the processor executes the instructions stored in the memory, the processor executes the key acquisition method executed by the second module.

[0147] It should be understood that the processor may be a CPU, or other general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced Reduced Instruction Set Machine (ARM) architecture.

[0148] Furthermore, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store device type information.

[0149] The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0150] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one program instruction or code, the program instruction or code being executed by a computer, the computer including a first chip and / or a second chip, the first chip including a first module, and the second chip including a second module. In the case where the computer includes the first chip, when the program instruction or code is executed by the computer, the computer implements the key acquisition method executed by the first module. In the case where the computer includes the second chip, when the program instruction or code is executed by the computer, the computer implements the key acquisition method executed by the second module.

[0151] The embodiments of the present application also provide a computer program or computer program product, which includes: computer program instructions or codes, the computer program instructions or codes are executed by a computer, and the computer includes a first chip and / or a second chip, the first chip includes a first module, and the second chip includes a second module. In the case where the computer includes the first chip, when the computer program instructions or codes are executed by the computer, the computer executes the key acquisition method executed by the first module. In the case where the computer includes the second module, when the computer program instructions or codes are executed by the computer, the computer executes the key acquisition method executed by the second module.

[0152] An embodiment of the present application further provides a chip, comprising a processor, the processor comprising a first module and / or a second module, the processor being configured to execute program instructions or code. When the processor comprises the first module, a device comprising the chip executes the key acquisition method executed by the first module. When the processor comprises the second module, the device comprising the chip executes the key acquisition method executed by the second module.

[0153] Exemplarily, the chip further includes: an input interface, an output interface, and a memory. The input interface, the output interface, the processor, and the memory are connected via an internal connection path. The memory contains program instructions or codes.

[0154] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program or computer program product. The computer program or computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0155] To clearly illustrate the interchangeability of hardware and software, the above description has generally described the steps and components of each embodiment according to their functions. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0156] The computer program code for implementing the method of the embodiment of the present application can be written in one or more programming languages. These computer program codes can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable key acquisition device, so that when the program code is executed by the computer or other programmable key acquisition device, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the computer, partially on the computer, as a separate software package, partially on the computer and partially on a remote computer, or entirely on a remote computer or server.

[0157] In the context of the embodiments of the present application, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like. Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.

[0158] Those skilled in the art will clearly understand that, for the sake of convenience and brevity of description, the specific working processes of the above-described systems, devices, and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0159] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or can be electrical, mechanical or other forms of connection.

[0160] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0161] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0162] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limit on quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of various examples, a first module can be referred to as a second module, and similarly, a second module can be referred to as a first module.

[0163] It should also be understood that in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more. For example, multiple code blocks refer to two or more code blocks. The terms "system" and "network" are often used interchangeably in this article.

[0164] It should be understood that the terminology used in the description of the various examples herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0165] It will also be understood that the term “comprise” (also known as “includes,” “including,” “comprises,” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0166] It should also be understood that, depending on the context, the phrase “if it is determined that…” or “if [stated condition or event] is detected” may be interpreted to mean “upon determining…” or “in response to determining…” or “upon detecting [stated condition or event]” or “in response to detecting [stated condition or event]”.

[0167] It should be understood that determining B based on A does not mean determining B based solely on A. B can also be determined based on A and / or other information.

[0168] It should also be understood that references throughout this specification to "one embodiment," "an embodiment," or "one possible implementation" mean that specific features, structures, or characteristics associated with that embodiment or implementation are included in at least one embodiment of the present application. Therefore, the appearance of "in one embodiment," "in an embodiment," or "one possible implementation" throughout this specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

Claims

1. A key acquisition method, characterized in that: The method is applied to a first module included in a first chip, and the method includes: The first module acquires a first signal transmitted by the second module, and the first module and the second module are communicatively connected via an Ethernet link; The first module performs digital signal processing on the first signal and generates a first key according to the processing result. The first key is used by the first module to encrypt data transmitted to the second module.

2. The method according to claim 1, characterized in that The first chip further includes an analog-to-digital converter ADC, the ADC is communicatively connected to the first module, the first signal is a signal processed by the ADC, and the first signal includes at least one of link noise and device noise.

3. The method according to claim 1 or 2, characterized in that: The performing digital signal processing on the first signal and generating a first key according to the processing result includes: Performing low-pass filtering and downsampling on the first signal to obtain a second signal; The second signal is quantized to generate the first key.

4. The method according to claim 3, characterized in that The step of low-pass filtering and down-sampling the first signal to obtain a second signal includes: Preprocessing the first signal to obtain a third signal, wherein the third signal is time-synchronized with a fifth signal obtained by the second module by preprocessing the acquired fourth signal; The third signal is low-pass filtered and down-sampled to obtain the second signal.

5. The method according to claim 3 or 4, characterized in that: The quantizing the second signal to generate the first key includes: performing channel feature extraction on the second signal to obtain a plurality of channel feature values; The multiple channel characteristic values ​​are converted into a first bit stream, and the first key is generated according to the first bit stream.

6. The method according to claim 5, characterized in that The generating the first key according to the first bit stream includes: Acquire a plurality of first bits from the first bit stream, encrypt first reference information according to the plurality of first bits to obtain first encrypted information, and transmit the first encrypted information to the second module; Receive a decryption result obtained by the second module decrypting the first encrypted information according to the second key, indicate that the first encrypted information is successfully decrypted based on the decryption result, and use the multiple first bits as the generated first key, where the second key is generated by the second module according to the fourth signal transmitted by the first module.

7. The method according to claim 5, characterized in that The generating the first key according to the first bit stream includes: Acquire a plurality of first bits from the first bit stream, encrypt first reference information according to the plurality of first bits to obtain first encrypted information, and transmit the first encrypted information to the second module; receiving a decryption result obtained by the second module decrypting the first encrypted information according to the second key, indicating that decryption of the first encrypted information fails based on the decryption result, obtaining a plurality of second bits from the first bit stream, the plurality of second bits are not completely the same as the plurality of first bits, and the second key is generated by the second module according to the fourth signal transmitted by the first module and obtained; Encrypt the second reference information according to the multiple second bits to obtain second encrypted information, and transmit the second encrypted information to the second module; A decryption result obtained by the second module decrypting the second encrypted information according to the second key is received, and based on the decryption result indicating that the second encrypted information is successfully decrypted, the plurality of second bits are used as the generated first key.

8. The method according to any one of claims 1 to 7, characterized in that: The first key is a quantum key.

9. A key acquisition method, characterized in that: The method is applied to a second module included in a second chip, and the method includes: The second module transmits a first signal to the first module so that the first module performs digital signal processing on the first signal and generates a first key according to the processing result; the first module and the second module are communicatively connected via an Ethernet link, and the first key is used by the first module to encrypt data transmitted to the second module.

10. The method according to claim 9, characterized in that The method further comprises: The second module receives first encrypted information transmitted by the first module, where the first encrypted information is obtained by the first module encrypting first reference information according to a plurality of first bits in the first bit stream; The second module decrypts the first encrypted information according to the second key to obtain a decryption result, and transmits the decryption result to the first module, where the decryption result is used to indicate whether the decryption of the first encrypted information is successful or failed. The second key is generated by the second module according to the fourth signal transmitted by the first module.

11. The method according to claim 9, characterized in that The method further comprises: The second module receives second encrypted information transmitted by the first module, where the second encrypted information is obtained by the first module encrypting second reference information according to multiple second bits in the first bit stream, and the multiple second bits are not completely the same as the multiple first bits used to obtain the first encrypted information; The second module decrypts the second encrypted information according to the second key to obtain a decryption result, and transmits the decryption result to the first module, where the decryption result is used to indicate whether the decryption of the second encrypted information is successful or failed. The second key is generated by the second module according to the fourth signal transmitted by the first module.

12. A key acquisition device, characterized in that: The device is applied to a first module included in a first chip, and the device includes: A transmission unit, used for acquiring a first signal transmitted by a second module, wherein the transmission unit and the second module are communicatively connected via an Ethernet link; A generating unit is used to perform digital signal processing on the first signal and generate a first key according to the processing result, wherein the first key is used by the generating unit to encrypt data transmitted to the second module.

13. The device according to claim 12, characterized in that The first chip further includes an analog-to-digital converter ADC, the ADC is communicatively connected with the first module, the first signal is a signal processed by the ADC, and the first signal includes at least one of link noise and device noise.

14. The device according to claim 12 or 13, characterized in that The generating unit is configured to perform low-pass filtering and down-sampling on the first signal to obtain a second signal; and perform quantization processing on the second signal to generate the first key.

15. The device according to claim 14, characterized in that The generating unit is configured to preprocess the first signal to obtain a third signal, wherein the third signal is time-synchronized with a fifth signal obtained by the second module by preprocessing the acquired fourth signal; The third signal is low-pass filtered and down-sampled to obtain the second signal.

16. The device according to claim 14 or 15, characterized in that The generating unit is configured to extract channel characteristics from the second signal to obtain a plurality of channel characteristic values; convert the plurality of channel characteristic values ​​into a first bit stream, and generate the first key according to the first bit stream.

17. The device according to claim 16, characterized in that The generating unit is configured to obtain a plurality of first bits from the first bit stream, encrypt the first reference information according to the plurality of first bits to obtain first encrypted information, and transmit the first encrypted information to the second module; Receive a decryption result obtained by the second module decrypting the first encrypted information according to the second key, indicate that the first encrypted information is successfully decrypted based on the decryption result, and use the multiple first bits as the generated first key, where the second key is generated by the second module according to the fourth signal transmitted by the transmission unit.

18. The device according to claim 16, characterized in that The generating unit is configured to obtain a plurality of first bits from the first bit stream, encrypt the first reference information according to the plurality of first bits to obtain first encrypted information, and transmit the first encrypted information to the second module; receiving a decryption result obtained by the second module decrypting the first encrypted information according to the second key, indicating a failure in decrypting the first encrypted information based on the decryption result, obtaining a plurality of second bits from the first bit stream, the plurality of second bits being not completely identical to the plurality of first bits, the second key being generated by the second module according to a fourth signal transmitted by the transmission unit; encrypting the second reference information according to the plurality of second bits to obtain second encrypted information, and transmitting the second encrypted information to the second module; A decryption result obtained by the second module decrypting the second encrypted information according to the second key is received, and based on the decryption result indicating that the second encrypted information is successfully decrypted, the plurality of second bits are used as the generated first key.

19. The device according to any one of claims 12 to 18, characterized in that: The first key is a quantum key.

20. A key acquisition device, characterized in that: The device is applied to a second module included in a second chip, and the device includes: A transmission unit is used to transmit a first signal to a first module so that the first module performs digital signal processing on the first signal and generates a first key according to the processing result; the first module and the transmission unit are communicatively connected via an Ethernet link, and the first key is used by the first module to encrypt data transmitted to a generation unit included in the second module.

21. The device according to claim 20, characterized in that The generating unit is configured to receive first encrypted information transmitted by the first module, where the first encrypted information is obtained by the first module encrypting first reference information according to a plurality of first bits in the first bit stream; The first encrypted information is decrypted according to the second key to obtain a decryption result, and the decryption result is transmitted to the first module, where the decryption result is used to indicate whether the decryption of the first encrypted information is successful or failed. The second key is generated by the generation unit according to the fourth signal transmitted by the first module.

22. The device according to claim 20, characterized in that The generating unit is configured to receive second encrypted information transmitted by the first module, where the second encrypted information is obtained by the first module encrypting second reference information according to multiple second bits in the first bit stream, and the multiple second bits are not completely the same as the multiple first bits used to obtain the first encrypted information; decrypt the second encrypted information according to a second key to obtain a decryption result, and transmit the decryption result to the first module, where the decryption result is used to indicate whether the decryption of the second encrypted information is successful or unsuccessful, and the second key is generated by the generating unit according to a fourth signal obtained and transmitted by the first module.

23. A communication system, characterized in that: The system includes a first chip and a second chip, the first chip includes a first module, the second chip includes a second module, the first module is used to execute the method according to any one of claims 1-8, and the second module is used to execute the method according to any one of claims 9-11.

24. A computer system, characterized in that: The computer system includes: a processor, the processor includes a first module and / or a second module, when the processor includes the first module, when the processor executes a program instruction or code, the computer system implements the method described in any one of claims 1 to 8, and when the processor includes the second module, when the processor executes a program instruction or code, the computer system implements the method described in any one of claims 9 to 11.

25. The computer system according to claim 24, characterized in that The computer system further comprises: a memory, wherein the memory is used to store the program instructions or codes.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program instruction or code, and the program instruction or code is executed by a computer, wherein the computer includes a first chip and / or a second chip, wherein the first chip includes a first module, and the second chip includes a second module; when the computer includes the first chip, the program instruction or code is executed by the computer so that the computer implements the method described in any one of claims 1 to 8, and when the computer includes the second chip, the program instruction or code is executed by the computer so that the computer implements the method described in any one of claims 9 to 11.

27. A computer program product, characterized in that The computer program product includes computer program instructions or codes, and the computer program instructions or codes are executed by a computer, wherein the computer includes a first chip and / or a second chip, wherein the first chip includes a first module, and the second chip includes a second module; in the case where the computer includes the first chip, when the computer program instructions or codes are executed by the computer, the computer implements the method described in any one of claims 1 to 8, and in the case where the computer includes the second chip, when the computer program instructions or codes are executed by the computer, the computer implements the method described in any one of claims 9 to 11.

28. A chip, characterized in that: The chip includes a processor, the processor includes a first module and / or a second module, the processor is used to run program instructions or codes, when the processor includes the first module, the device containing the chip executes the method described in any one of claims 1-8, when the processor includes the second module, the device containing the chip executes the method described in any one of claims 9-11.

29. The chip according to claim 28, characterized in that The chip further includes: an input interface, an output interface and a memory. The input interface, the output interface, the processor and the memory are connected via an internal connection path. The memory contains the program instructions or codes.

Citation Information

Patent Citations

  • Execution of a chip card function

    EP2797043A2

  • Systems, and methods for transferring data between secure networks through less secure networks

    US20200344221A1

  • Integrated circuit module functioning for information security

    US20220353062A1

  • Service processing method and device, and storage medium and electronic device

    WO2018028359A1

  • Improved physical layer security in wireless networks

    WO2021052697A1

Cited By

  • Symmetric key generation method and device, equipment, medium and product

    CN119545338A

  • Key generation method and device based on BB84 protocol, equipment and medium

    CN120455002A