# US 2021/0174362 A1 · System and method of session key generation and exchange

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

- Number: US 2021/0174362 A1
- Document ID: US20210174362A1
- Status: Published application
- Kind: A1
- Application number: 17/178,654
- Filed: 2021-02-18
- Published: 2021-06-10
- Earliest claimed: 2017-10-05
- Assignees: The Toronto-Dominion Bank
- Applicants: The Toronto-Dominion Bank
- Inventors: Milos DUNJIC; Perry Aaron Jones HALDENBY; Arthur Carroll CHOW; Anthony Haituyen NGUYEN; Het Anand PATEL; Casey Lyn DOYLE; Yubing LIU; John Jong-Suk LEE; David Samuel TAX; Arun Victor JAGGA
- Web page: https://patentgrep.com/patent/US20210174362A1

## CPC

- G06Q 20/3829: {involving key management}
- G06Q 20/322: {Aspects of commerce using mobile devices [M-devices]}
- G06Q 20/367: {involving electronic purses or money safes}
- G06Q 20/3674: {involving authentication}
- G06Q 20/385: {using an alias or single-use codes}
- H04L 9/0866: {involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics}
- 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)}
- H04L 9/3234: {involving additional secure or trusted devices, e.g. TPM, smartcard, USB or software token (network architectures or network communication protocols for supporting authentication of entities using an additional device in a packet data network H04L63/0853)}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- H04L 2209/805: Lightweight hardware, e.g. radio-frequency identification [RFID] or sensor
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Computer-implemented methods and systems reliant on establishing a common session key between an electronic device and a computer server are disclosed. The method and systems may be for processing de-tokenization requests in payment transaction processing and for preparing an electronic device to perform payment transactions. During such a transaction, the server may perform a method that includes receiving a de-tokenization request including a payment token and a cryptogram generated by the electronic device using a session key generated by the electronic device based on a fingerprint of the electronic device, a secret value previously shared with the electronic device, the payment token, and a transaction counter; retrieving the fingerprint, the secret value, and the transaction counter and generating the session key based on the same; verifying the cryptogram using the session key; retrieving an associated account number; and sending response to the request including the account number.

## Claims

### Claim 1

An electronic device for performing a payment transaction, the electronic device comprising:
a processor;
a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the electronic device to:
send a provisioning request to a host card emulation server over a secure channel, the provisioning request including a payment account reference and a fingerprint of the electronic device;
receive a provisioning reply from the host card emulation server containing a payment token mapped to the payment account reference and a secret value;
generate a session key based on the fingerprint of the electronic device, the secret value, and the payment token;
generate a cryptogram using the session key; and
transmit to a point-of-sale terminal, a payment request including the payment token and the cryptogram.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the instructions, when executed, are to cause the processor to transmit the payment request to the point-of-sale terminal over a near field communication channel.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the electronic device comprises a smart phone, a tablet, or a wearable computing device.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the secret value includes a random number.

### Claim 5 (depends on 1)

The electronic device of claim 1, wherein the instructions, when executed, are to cause the processor to generate the session key based on the fingerprint of the electronic device, the secret value, the payment token, and a transaction counter.

### Claim 6 (depends on 5)

The electronic device of claim 5, wherein the transaction counter includes a counter incremented with each payment transaction conducted by the electronic device with respect to the payment account reference.

### Claim 7 (depends on 1)

The electronic device of claim 1 wherein the session key is generated by applying a cryptographic hash function one or more times using the fingerprint, the secret value, the payment token, and the transaction counter as inputs.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein the point-of-sale terminal is to send the cryptogram and the payment token to the host card emulation server through a payment network to verify the cryptogram by generating the same session key and to obtain payment authorization.

### Claim 9 (depends on 1)

The electronic device of claim 1 wherein the fingerprint is based on data in the memory of the electronic device.

### Claim 10 (depends on 1)

The electronic device of claim 1 wherein the electronic device comprises a smartphone and the fingerprint is based on at least one of an International Mobile Station Equipment Identity of the smartphone, an International Mobile Subscriber Identity of the smartphone, or an Integrated Circuit Card Identifier of a Subscriber Identity Module coupled to the smartphone.

### Claim 11

A computer-implemented method of performing a payment transaction using an electronic device, the method comprising:
sending a provisioning request from the electronic device to a host card emulation server over a secure channel, the provisioning request including a payment account reference and a fingerprint of the electronic device;
receiving, at the electronic device, a provisioning reply from the host card emulation server containing a payment token mapped to the payment account reference and a secret value;
generating a session key based on the fingerprint of the electronic device, the secret value, and the payment token;
generating a cryptogram using the session key; and
transmitting to a point-of-sale terminal, a payment request including the payment token and the cryptogram.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein transmitting the payment request includes transmitting the payment request to the point-of-sale terminal over a near field communication channel.

### Claim 13 (depends on 11)

The computer-implemented method of claim 11, wherein the secret value includes a random number.

### Claim 14 (depends on 11)

The computer-implemented method of claim 11, wherein generating the session key includes generating the session key based on the fingerprint of the electronic device, the secret value, the payment token, and a transaction counter.

### Claim 15 (depends on 14)

The computer-implemented method of claim 14, wherein the transaction counter includes a counter incremented with each payment transaction conducted by the electronic device with respect to the payment account reference.

### Claim 16 (depends on 11)

The computer-implemented method of claim 11, wherein the session key is generated by applying a cryptographic hash function one or more times using the fingerprint, the secret value, the payment token, and the transaction counter as inputs.

### Claim 17 (depends on 11)

The computer-implemented method of claim 11, wherein the point-of-sale terminal is to send the cryptogram and the payment token to the host card emulation server through a payment network to verify the cryptogram by generating the same session key and to obtain payment authorization.

### Claim 18 (depends on 11)

The computer-implemented method of claim 11, wherein the fingerprint is based on data in the memory of the electronic device.

### Claim 19 (depends on 11)

The computer-implemented method of claim 11, wherein the electronic device comprises a smartphone and the fingerprint is based on at least one of an International Mobile Station Equipment Identity of the smartphone, an International Mobile Subscriber Identity of the smartphone, or an Integrated Circuit Card Identifier of a Subscriber Identity Module coupled to the smartphone.

### Claim 20 (depends on 11)

The computer-implemented method of claim 11, wherein the sending and receiving occur during a provisioning phase, and wherein the generating the session key, generating the cryptogram, and transmitting occur at a later time during the payment transaction.
