# US 2025/0168005 A1 · Secure near-field communication

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0168005 A1
- Document ID: US20250168005A1
- Status: Published application
- Kind: A1
- Application number: 18/945,709
- Filed: 2024-11-13
- Published: 2025-05-22
- Earliest claimed: 2023-11-22
- Applicants: Commissariat à l'Energie Atomique et aux Energies Alternatives
- Inventors: Christine HENNEBERT
- Web page: https://patentgrep.com/patent/US20250168005A1

## CPC

- H04L 9/3226: {using a predetermined code, e.g. password, passphrase or PIN (network architectures or network communication protocols for supporting authentication of entities using passwords in a packet data network H04L63/083)}
- G07C 9/00309: {operated with bidirectional data transmission between data carrier and locks}
- H04L 9/3013: {involving the discrete logarithm problem, e.g. ElGamal or Diffie-Hellman systems}
- H04L 9/3066: {involving algebraic varieties, e.g. elliptic or hyper-elliptic curves}
- H04L 9/0841: {involving Diffie-Hellman or related key agreement protocols}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G07C: TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE

## Abstract

The present description concerns a method comprising: the generation, by a first device, of a first and of a second elements; the supplying of the first element, to a second device; the generation, by the second device, of a first public key; the supplying of the first public key to the first device; the generation, by the first device, of a session key; the generation, by the first device, of a first code, and its ciphering by the session key; the generation, by the first device, of a second public key; the supplying of the ciphered first code and of the second public key to the second device; the generation, by the second device, of the session key and the deciphering of the ciphered first code; the control of an actuator based on the first public key.

## Claims

### Claim 1

A method of authentication between a first device and a second device, the method comprising:
the generation, by the first device, of a first element and of a second element, and their storage into a memory of the first device;
the supplying of the first element, via a user of the first device, to the second device;
the generation, by the second device, based on the first element and by application of a Diffie-Hellman protocol, of a first public key;
the supplying of the first public key to the first device and the storage of the first public key, in association with the first and second elements, into a memory of the first device;
the generation, by the first device, of a session key, based on the second element and on the first public key, by application of a Diffie-Hellman protocol on an elliptic curve;
the generation, by the first device, of a first code, based on the second element, and its ciphering by the session key;
the generation, by the first device, of a second public key;
the supplying, by a near-field communication, of the first ciphered code and of the second public key to the second device;
the generation, by the second device, of the session key based on the first element and on the second public key, and the deciphering of the ciphered first code by means of the session key;
the storage, in a memory of the second device, of the deciphered first code;
the control, by the second device, of a first actuator as a result of an authentication of the second device, or of a third device, by the first device and based on the first public key.

### Claim 2 (depends on 1)

The method of authentication according to claim 1, further comprising:
the generation, by the first device, of a second code, based on the second element, and its ciphering it by the session key and the supplying, by near-field communication, of the ciphered second code to the second, or to the third, device;
the deciphering, by the second, or the third, device, of the ciphered second code and the comparison of the deciphered second code with the deciphered first code;
based on the comparison between the deciphered first and second codes, the control, by the second device or by the third device, of the first or of a second actuator.

### Claim 3 (depends on 2)

The method of authentication to claim 2, wherein the control of the first actuator causes an action of locking, or of unlocking, of the second device and the control of the second actuator causes an action of unlocking, or of locking, of the second, or of the third, device.

### Claim 4 (depends on 1)

The method of authentication according to claim 1, wherein the first public key is supplied, by the second device, to the first device via a non-secure near-field communication.

### Claim 5 (depends on 1)

The method of authentication according to claim 1, wherein the first element is a digital code and wherein the provision of the first element to the second device, via the user, consists of the entering, by the user, of the digital code on a keypad of the second device.

### Claim 6 (depends on 1)

The method of authentication according to claim 1, wherein the first element is a quick response code and wherein the supply of the first element to the second device, via the user consists of the presentation of the quick response code to a quick response code reader of the second device.

### Claim 7 (depends on 1)

The method of authentication according to claim 1, wherein the second element is a random value comprising a number N of words comprised in a standard dictionary of entropy-coding words, for example the BitCoin improvement proposal 39 wordlist, N being an integer in the range from 3 to 24.

### Claim 8 (depends on 1)

The method of authentication according claim 1, wherein the session key is deleted from the first and second devices as a result of the execution of the first action, and wherein the session key is generated again, by the first device and then by the second, or the third, device, as a result of the authentication of the second, or of the third, device by the first device.

### Claim 9 (depends on 1)

The method of authentication according to claim 1, further comprising, prior to the generation, by the first device, of the session key, the authentication of the second device, by the first device and based on the first public key and based on a master key.

### Claim 10 (depends on 1)

The method of authentication according to claim 1, further comprising, prior to the carrying out of the first action:
the ciphering, by the second device, of the first element, and the supplying of the ciphered first element to the first device;
the deciphering, by the first device, of the first ciphered element and the comparison between the deciphered first element and the first element; and
if the deciphered first element and the first element do not match, the stopping of the method.

### Claim 11 (depends on 1)

The method of authentication according to claim 1, further comprising as a result of the generation of the first code, the supplying of a message authentication code to the second device.

### Claim 12 (depends on 11)

The method of authentication according to claim 11, wherein the message authentication code is one of the coordinates, on the elliptic curve, of the session key.

### Claim 13 (depends on 2)

The method of authentication according to claim 2, further comprising, as a result of the supply of the first deciphered code and/or of the second ciphered code:
the estimating, by the second, or the third, device, of the time elapsed between the sending, by the first device, of the ciphered code and the receipt, by the second device, of the ciphered code;
the comparison, by the second, or the third, device, of the estimated elapsed time with a threshold value; and
if the estimated elapsed time is greater than or equal to the threshold value, the stopping of the method.

### Claim 14 (depends on 2)

The method of authentication according to claim 2 wherein the first code is a concatenation of a first part of a value generated based on the second element with a second part of the value and wherein the second code is a concatenation of the first part of the value with a third part of the value.

### Claim 15

A system comprising a first and a second devices configured to carry out a method of authentication between a first device and a second device, the method comprising:
the generation, by the first device, of a first element and of a second element, and their storage into a memory of the first device;
the supplying of the first element, via a user of the first device, to the second device; the generation, by the second device, based on the first element and by application of a Diffie-Hellman protocol, of a first public key;
the supplying of the first public key to the first device and the storage of the first public key, in association with the first and second elements, into a memory of the first device;
the generation, by the first device, of a session key, based on the second element and on the first public key, by application of a Diffie-Hellman protocol on an elliptic curve;
the generation, by the first device, of a first code, based on the second element, and its ciphering by the session key;
the generation, by the first device, of a second public key;
the supplying, by a near-field communication, of the first ciphered code and of the second public key to the second device;
the generation, by the second device, of the session key based on the first element and on the second public key, and the deciphering of the ciphered first code by means of the session key;
the storage, in a memory of the second device, of the deciphered first code;
the control, by the second device, of a first actuator as a result of an authentication of the second device, or of a third device, by the first device and based on the first public key.

### Claim 16 (depends on 15)

The system according to claim 15, wherein the first device is a smartphone.
