# US 10,956,905 B2 · 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 10,956,905 B2
- Document ID: US10956905B2
- Status: Granted
- Kind: B2
- Application number: 15/725,689
- Filed: 2017-10-05
- Published: 2019-04-11
- Granted: 2021-03-23
- 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/US10956905B2

## 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

A computer system comprising:
a processor;
a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the computer system to:
receive, from an electronic device over a secure channel, a provisioning request including a fingerprint of the electronic device and an account number;
generate a secret value and a payment token associated with the account number;
store, in a storage, the fingerprint, the secret value, and the payment token mapped to the account number;
transmit to the electronic device, in response to the provisioning request, a provisioning reply that includes the payment token and the secret value;
receive from the electronic device, via a network, a de-tokenization request, the de-tokenization request including the payment token and a cryptogram, the cryptogram having been generated by the electronic device using a first session key generated by the electronic device based on the fingerprint of the electronic device, a secret value previously shared with the electronic device, the payment token, and a transaction counter;
retrieve, based on the payment token, the fingerprint, the secret value, and the transaction counter from the storage;
in response to retrieving the payment token, the fingerprint, the secret value, and the transaction counter from the storage, generate a second session key based on the fingerprint, the secret value, the payment token, and the transaction counter;
verify the cryptogram using the second session key;
upon successfully verifying the cryptogram, retrieve the account number associated with the payment token from the storage; and
send to the electronic device, via the network, a response to the de-tokenization request including the account number.

### Claim 2 (depends on 1)

The computer system of claim 1 wherein the secret value includes a random number.

### Claim 3 (depends on 1)

The computer system of claim 1 wherein the cryptogram was generated by the electronic device to perform a payment transaction and wherein the secret value was previously shared with the electronic device in preparation for performing that payment transaction.

### Claim 4 (depends on 1)

The computer system of claim 1 wherein the first and the second session keys are 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 5 (depends on 1)

The computer system of claim 1 wherein the first and the second session keys are generated using one or more applications of a double-length key triple Data Encryption Standard cipher algorithm.

### Claim 6 (depends on 1)

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

### Claim 7 (depends on 1)

The computer system of claim 1 wherein the electronic device is 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 8

A computer-implemented method comprising:
receiving, from an electronic device over a secure channel, a provisioning request including a fingerprint of the electronic device and an account number;
generating a secret value and a payment token associated with the account number;
storing, in a storage, the fingerprint, the secret value, and the payment token mapped to the account number;
transmitting to the electronic device, in response to the provisioning request, a provisioning reply that includes the payment token and the secret value;
receiving, from the electronic device via a network, a de-tokenization request, the de-tokenization request including the payment token and a cryptogram, the cryptogram having been generated by the electronic device using a first session key generated by the electronic device based on the fingerprint of the electronic device, the secret value previously shared with the electronic device, the payment token, and a transaction counter;
retrieving, based on the payment token, the fingerprint, the secret value, and the transaction counter from the storage;
in response to retrieving the payment token, the fingerprint, the secret value, and the transaction counter from the storage, generate a second session key based on the fingerprint, the secret value, the payment token, and the transaction counter;
verifying the cryptogram using the second session key;
upon successfully verifying the cryptogram, retrieving the account number associated with the payment token from the storage; and
sending, to the electronic device via the network, a response to the de-tokenization request including the account number.

### Claim 9 (depends on 8)

The method of claim 8 wherein the secret value includes a random number.

### Claim 10 (depends on 8)

The method of claim 8 wherein the cryptogram was generated by the electronic device to perform a payment transaction and wherein the secret value was previously shared with the electronic device in preparation for performing that payment transaction.

### Claim 11 (depends on 8)

The method of claim 8 wherein the first and the second session keys are 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 12 (depends on 8)

The method of claim 8 wherein the first and the second session keys are generated using one or more applications of a double-length key triple Data Encryption Standard cipher algorithm.

### Claim 13 (depends on 8)

The method of claim 8 wherein the fingerprint is based on at least one of data in a memory of the electronic device, an International Mobile Station Equipment Identity associated with the electronic device, an International Mobile Subscriber Identity associated with the electronic device, or an Integrated Circuit Card Identifier of a Subscriber Identity Module coupled to the electronic device.
