EP-4742585-A1 - KEY GENERATION METHOD, AND DEVICE
Abstract
The present application relates to a key generation method, a device, a computer readable storage medium, a computer program product, and a computer program. The method comprises: a first device receives a first pilot signal sent by a second device; the first device calculates a channel estimation value on the basis of a first pilot key and the first pilot signal; the first device generates a first key on the basis of a plurality of first quantization sequences; the first device sends a plurality of response signals to the second device on the basis of the channel estimation value and the plurality of first quantization sequences, wherein the plurality of response signals are used for the second device to generate a second key.
Inventors
- LI, MENG
- GAN, LU
- XIONG, Lihui
Assignees
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Dates
- Publication Date
- 20260513
- Application Date
- 20230705
Claims (20)
- A key generation method, comprising: receiving, by a first device, a first pilot signal transmitted by a second device; calculating, by the first device, a channel estimation value based on a first pilot key and the first pilot signal; generating, by the first device, a first key based on multiple first quantization sequences; and transmitting, by the first device, multiple response signals to the second device based on the channel estimation value and the multiple first quantization sequences, wherein the multiple response signals are used for the second device to generate a second key.
- The method according to claim 1, wherein transmitting, by the first device, the multiple response signals to the second device based on the channel estimation value and the multiple first quantization sequences, comprises: determining, by the first device, multiple groups of parameter values based on the multiple first quantization sequences; determining, by the first device, multiple groups of transmission parameters based on the channel estimation value and the multiple groups of parameter values; and transmitting, by the first device, the multiple response signals to the second device based on the multiple groups of transmission parameters.
- The method according to claim 2, wherein determining, by the first device, the multiple groups of parameter values based on the multiple first quantization sequences, comprises: determining, by the first device, an i-th group of parameter values based on first quantization information and an i-th initial quantization sequence of each type of one or more types corresponding to an i-th first quantization sequence, wherein the first quantization information is used to determine a candidate parameter value corresponding to each candidate quantization sequence of multiple candidate quantization sequences, the one or more types comprise at least one of a phase type, an amplitude type or a received signal strength indicator (RSSI) type, the i-th first quantization sequence is one of the multiple first quantization sequences, the i-th group of parameter values is one of the multiple groups of parameter values, and i is an integer.
- The method according to claim 3, further comprising: generating, by the first device, the i-th first quantization sequence based on the i-th initial quantization sequence of each type corresponding to the i-th first quantization sequence.
- The method according to claim 3 or 4, wherein determining, by the first device, the i-th group of parameter values based on the first quantization information and the i-th initial quantization sequence of each type of the one or more types corresponding to the i-th first quantization sequence, comprises at least one of: in a case where the i-th initial quantization sequence of each type of the one or more types corresponding to the i-th first quantization sequence comprises an i-th initial quantization sequence of the amplitude type, determining, by the first device, an i-th amplitude value in the i-th group of parameter values based on the i-th initial quantization sequence of the amplitude type and first amplitude quantization information; in a case where the i-th initial quantization sequence of each type of the one or more types corresponding to the i-th first quantization sequence comprises an i-th initial quantization sequence of the phase type, determining, by the first device, an i-th phase value in the i-th group of parameter values based on the i-th initial quantization sequence of the phase type and first phase quantization information; or in a case where the i-th initial quantization sequence of each type of the one or more types corresponding to the i-th first quantization sequence comprises an i-th initial quantization sequence of the RSSI type, determining, by the first device, an i-th RSSI value in the i-th group of parameter values based on the i-th initial quantization sequence of the RSSI type and first RSSI quantization information.
- The method according to claim 5, wherein determining, by the first device, the multiple groups of transmission parameters based on the channel estimation value and the multiple groups of parameter values, comprises at least one of: in a case where the i-th group of parameter values comprises the i-th amplitude value, calculating, by the first device, an i-th transmitted power in an i-th group of transmission parameters based on a channel estimation amplitude value and the i-th amplitude value, wherein the i-th group of transmission parameters is one of the multiple groups of transmission parameters; in a case where the i-th group of parameter values comprises the i-th phase value, calculating, by the first device, an i-th transmission phase in the i-th group of transmission parameters based on a channel estimation phase value and the i-th phase value; or in a case where the i-th group of parameter values comprises the i-th RSSI value, calculating, by the first device, an i-th transmitted power in the i-th group of transmission parameters based on a channel estimation amplitude value and the i-th RSSI value.
- The method according to claim 5, wherein determining, by the first device, the multiple groups of transmission parameters based on the channel estimation value and the multiple groups of parameter values, comprises: calculating, by the first device, a radio frequency coefficient based on the channel estimation value; and determining, by the first device, the multiple groups of transmission parameters based on the multiple groups of parameter values and the radio frequency coefficient.
- The method according to claim 7, wherein determining, by the first device, the multiple groups of transmission parameters based on the multiple groups of parameter values and the radio frequency coefficient, comprises: determining, by the first device, an i-th group of transmission parameters based on the i-th group of parameter values and the radio frequency coefficient, wherein the i-th group of transmission parameters is one of the multiple groups of transmission parameters.
- The method according to any one of claims 2 to 8, wherein transmitting, by the first device, the multiple response signals to the second device based on the multiple groups of transmission parameters, comprises: transmitting, by the first device, an i-th response signal to the second device based on an i-th group of transmission parameters, wherein the i-th response signal is one of the multiple response signals, and different response signals of the multiple response signals occupy different time domain ranges.
- The method according to any one of claims 1 to 9, wherein each response signal of the multiple response signals is a second pilot signal, and the second pilot signal is calculated based on the first pilot key.
- The method according to claim 7, wherein determining, by the first device, the multiple groups of transmission parameters based on the multiple groups of parameter values and the radio frequency coefficient, comprises: calculating, by the first device, multiple radio frequency sub-coefficients based on the radio frequency coefficient, wherein the first device has multiple antennas, and different radio frequency sub-coefficients of the multiple radio frequency sub-coefficients correspond to different antennas of the first device; and determining, by the first device, multiple groups of transmission parameters corresponding to each group of response signals of multiple groups of response signals based on the multiple groups of parameter values and the multiple radio frequency sub-coefficients, wherein each group of response signals comprises one or more response signals, different groups of response signals occupy different time domain ranges, and different response signals of the one or more response signals correspond to different antennas.
- The method according to claim 11, wherein determining, by the first device, the multiple groups of transmission parameters corresponding to each group of response signals of the multiple groups of response signals based on the multiple groups of parameter values and the multiple radio frequency sub-coefficients, comprises: determining, by the first device, a j-th group of transmission parameters corresponding to a j-th group of response signals based on multiple groups of parameter values corresponding to the j-th group of response signals and a radio frequency sub-coefficient corresponding to each response signal in the j-th group of response signals, wherein the j-th group of response signals is one of the multiple groups of response signals and j is an integer.
- The method according to claim 11 or 12, wherein transmitting, by the first device, the multiple response signals to the second device based on the multiple groups of transmission parameters, comprises: transmitting, by the first device, the j-th group of response signals to the second device based on the j-th group of transmission parameters corresponding to the j-th group of response signals.
- The method according to claim 13, wherein different response signals in the j-th group of response signals are different third pilot signals.
- The method according to any one of claims 1 to 14, wherein calculating, by the first device, the channel estimation value based on the first pilot key and the first pilot signal, comprises: calculating, by the first device, a fourth pilot signal based on the first pilot key; and calculating, by the first device, the channel estimation value based on the fourth pilot signal and the first pilot signal.
- The method according to claim 15, wherein calculating, by the first device, the fourth pilot signal based on the first pilot key, comprises: calculating, by the first device, the fourth pilot signal based on the first pilot key and a first parameter, wherein the first parameter comprises at least one of a first random number, a length of the first random number, a first timestamp, an identifier of the second device, a length of the identifier of the second device, or a first count value.
- The method according to any one of claims 1 to 16, further comprising: receiving, by the first device, a key confirmation request message from the second device, wherein the key confirmation request message carries a first verification code, and the first verification code is calculated by the second device based on the second key; and verifying, by the first device, key consistency based on the first key and the first verification code.
- The method according to claim 17, wherein verifying, by the first device, the key consistency based on the first key and the first verification code, comprises: calculating, by the first device, a second verification code based on the first key; and verifying, by the first device, the key consistency based on the second verification code and the first verification code.
- The method according to claim 18, wherein the key confirmation request message further carries ciphertext data; and calculating, by the first device, the second verification code based on the first key comprises: calculating, by the first device, the second verification code and plaintext data based on the first key, the ciphertext data and the first verification code.
- The method according to any one of claims 1 to 19, further comprising: transmitting, by the first device, a pilot key update message to the second device; and receiving, by the first device, a pilot key update response message from the second device, wherein the pilot key update response message is used to indicate that the second device has obtained a second pilot key.
Description
TECHNICAL FIELD The present application relates to the field of communications, and more specifically, to key generation methods, devices, a computer-readable storage medium, a computer program product, and a computer program. BACKGROUND With the development of communication technologies, contactless automatic identification technology has emerged. This technology typically enables contactless data transmission between a zero-power terminal and other devices by means of wireless radio frequency. A communication channel between the zero-power terminal and a reader is an insecure channel. Therefore, in order to ensure security of data transmission for the zero-power terminal, a solution has been further proposed in which the zero-power terminal uses a key for communication. However, how to enable the zero-power terminal to generate the key in a less complex manner while ensuring security of the key remains a problem that needs to be solved. SUMMARY Embodiments of the present application provide key generation methods, devices, a computer-readable storage medium, a computer program product, and a computer program. Embodiments of the present application provide a key generation method, and the key generation method includes: receiving, by a first device, a first pilot signal transmitted by a second device;calculating, by the first device, a channel estimation value based on a first pilot key and the first pilot signal;generating, by the first device, a first key based on multiple first quantization sequences; andtransmitting, by the first device, multiple response signals to the second device based on the channel estimation value and the multiple first quantization sequences, where the multiple response signals are used for the second device to generate a second key. Embodiments of the present application provide a key generation method, and the key generation method includes: calculating, by a second device, a first pilot signal based on a first pilot key;transmitting, by the second device, the first pilot signal to a first device;receiving, by the second device, multiple response signals from the first device; andgenerating, by the second device, a second key based on the multiple response signals. Embodiments of the present application provide a key generation method, and the key generation method includes: transmitting, by a first network device, a first pilot key to a first device, where the first pilot key is used for the first device to calculate a channel estimation value and transmit multiple response signals to a second device based on the channel estimation value, and the multiple response signals are used for the second device to generate a second key. Embodiments of the present application provide a first device, and the first device includes: a first communication unit configured to receive a first pilot signal transmitted by a second device; and transmit multiple response signals to the second device based on a channel estimation value and multiple first quantization sequences, where the multiple response signals are used for the second device to generate a second key; anda first processing unit configured to calculate the channel estimation value based on a first pilot key and the first pilot signal; and generate a first key based on the multiple first quantization sequences. Embodiments of the present application provide a second device, and the second device includes: a second processing unit configured to calculate a first pilot signal based on a first pilot key; and generate a second key based on multiple response signals; anda second communication unit configured to transmit the first pilot signal to a first device and receive multiple response signals from the first device. Embodiments of the present application provide a first network device, and the first network device includes: a third communication unit configured to transmit a first pilot key to a first device, where the first pilot key is used for the first device to calculate a channel estimation value and transmit multiple response signals to a second device based on the channel estimation value, and the multiple response signals are used for the second device to generate a second key. Embodiments of the present application provide a first device, and the first device includes a processor and a memory in communication with the processor. The memory is configured to store instructions. The instructions, when executed by the processor, cause the first device to perform the above method. Embodiments of the present application provide a second device, and the second device includes a processor and a memory in communication with the processor. The memory is configured to store instructions. The instructions, when executed by the processor, cause the second device to perform the above method. Embodiments of the present application provide a first network device, and the first network device includes a processor and a memory in communica