System and method for enhancing the strength of encryption algorithms

By combining weak structures and shared secrets on contactless cards, using layered encryption to generate diversified session keys, and combining MAC and encryption algorithms, the problem of insufficient password strength caused by key size and algorithm selection in the existing technology is solved , achieving a higher security level and anti-attack capabilities.

CN116722990BActive Publication Date: 2024-10-18CAPITAL ONE SERVICES LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310862465.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-02
Publication Date
2024-10-18
Estimated Expiration
2039-10-02

AI Technical Summary

Technical Problem

When existing encryption algorithms achieve a certain security level, due to system limitations, they can often only achieve a lower security level and are difficult to meet higher security requirements. In particular, there are difficulties in key size and algorithm selection, resulting in password strength. insufficient.

Method used

By combining multiple weak constructs and shared secrets, using layered encryption to generate strong password constructs, using shared secrets and counter values ​​on contactless cards to generate diverse session keys, and combining MAC algorithms and encryption algorithms to enhance Security of message authentication codes.

Benefits of technology

It effectively improves the security of password construction, can achieve a higher security level under system restrictions, enhances resistance to attacks, and ensures the integrity and authentication of messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116722990B_ABST
    Figure CN116722990B_ABST
Patent Text Reader

Abstract

Example embodiments provide systems and methods for increasing the cryptographic strength of encryption or message authentication code (MAC) generation techniques. According to some embodiments, a MAC can be constructed around a shared secret (such as a random initialization number) to increase the strength of the MAC against brute force attacks based on the size of the shared secret. The MAC can be combined with randomized data and can also be encrypted to further enhance the strength of the code. These elements (shared secret, MAC algorithm, and encryption algorithm) can be used in different combinations and to different degrees depending on the application and the desired security level. At each stage, the cryptographic construction operates on the data modified by the password from the previous stage. This layering of cryptographic constructions can more effectively increase the strength of the comparison group than any construction that applies a similar increase in key size or complexity.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese patent application with application number "201980079745.2", application date "October 2, 2019", and title "System and method for enhancing the strength of encryption algorithm".

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application claims priority to U.S. Patent Application No. 16 / 458,961, filed on July 1, 2019, which is a continuation-in-part of U.S. Patent Application No. 16 / 205,119, filed on November 29, 2018, which is a provisional application of U.S. Provisional Application No. 62 / 740,352, filed on October 2, 2018. U.S. Patent Application No. 16 / 458,961, U.S. Patent Application No. 16 / 205,119, and U.S. Provisional Application No. 62 / 740,352 are incorporated herein by reference in their entirety. Technical Field

[0004] The present disclosure relates to cryptography, and more particularly, to systems and methods for cryptographic authentication of contactless cards. Background Art

[0005] Data security and transaction integrity are critical to businesses and consumers. As electronic transactions constitute an increasing share of commercial activity, this need continues to grow.

[0006] In some cases, it is important to authenticate the sender of a message (that is, to verify that the message actually came from the user or device identified as the originator of the message). It is also important to verify that the message has not been tampered with before receipt (that is, the information contained in the message remains the same as when the message was transmitted).

[0007] Conventionally, message authentication codes (MACs) have been used for this purpose. To generate a MAC, the sender uses a shared key and a MAC algorithm to calculate a MAC value based on the message data. The sender then sends the message and the MAC value to the receiver, who also possesses the key. The receiver applies the MAC algorithm with the key to the received message to generate a receiver MAC. If the receiver's MAC matches the MAC sent with the message, the message is authenticated.

[0008] However, like any cryptographic technique, MACs are susceptible to attacks (including brute force attacks). To measure their resistance to attack, a MAC can be associated with a strength (usually expressed in bits). For example, an effective strength of 100 bits indicates that an attacker would need to perform 2 100 Operations (1.27x1030 ) in order to guess the MAC. A 100-bit MAC is stronger than an 80-bit MAC. For an 80-bit MAC, the attacker needs to perform 2 80 Operations (1.21x10 24 ).

[0009] Certain constraints related to the required strength of the MAC or other cryptographic construct may be placed on the data such that at least a minimum level of security (e.g., 100 bits) is required. For example, these requirements may be the result of an organization's security procedures, regulatory requirements, or known security threats.

[0010] The strength of a MAC (or any cryptographic construction) is highly dependent on the cryptographic algorithm and cryptographic key used to construct the MAC. In some cases, the size of the key or the type of algorithm used may be limited by certain elements of the cryptographic system (e.g., security logic, processing power, memory usage, backend hardware security modules, etc.).

[0011] Therefore, problems may arise if a certain security level (eg, 100 bits) is required, but due to limitations on the system, only a lower security level (eg, 60 bits) is readily achievable.

[0012] Similar issues arise in other areas of cryptography. For example, messages may be encrypted before being transmitted over a network. Messages may be encrypted using a given encryption algorithm that relies on a cryptographic key, where the strength of the encryption depends on the size of the key. Cryptographic strength is also measured in bits; for example, the well-known Advanced Encryption Standard-128 (AES-128) uses a key size of 128 bits and is designed to provide 128 bits of cryptographic strength.

[0013] However, it should be noted that the key size does not necessarily directly correlate to the cryptographic strength provided, as the strength also depends on the algorithm being used. For example, when applying the Triple Data Encryption Algorithm (Triple DES) with a 168-bit key, 2 112 An attack algorithm that performs this operation is known; therefore, despite using a 168-bit key, Triple DES only provides 112 bits of cryptographic strength.

[0014] Sometimes, improved attacks are developed after encryption standards are put into practice. Therefore, an encryption protocol that has a high level of security one day may have a lower level of security the next day.

[0015] In addition to cryptographic strength, there are several other considerations when choosing an encryption algorithm and key size. Some algorithms run faster than others, and in general increasing the key size also increases the amount of time required to encrypt a message. Therefore, system administrators need to balance the security provided by the algorithm with the specific application (which may require a certain speed or turnaround time).

[0016] Therefore, problems may arise when applying encryption algorithms where a certain level of security is required but may not be available or practical due to limitations on the system or data. Summary of the invention

[0017] Exemplary embodiments relate to methods, media, and systems for constructing a strong cryptographic construction from multiple weak constructions, a combination of a weak construction and a shared secret, or a combination of multiple constructions and multiple shared secrets.

[0018] According to an exemplary embodiment, information to be encoded may be accessed. The information may be related to a contactless card for which authentication is requested by a recipient. A shared secret stored on the contactless card may be accessed, wherein the shared secret is also known to the recipient. The shared secret and the information to be encoded may be combined to generate combined information. A first master key may also be obtained from the contactless card and may be used to generate a diversified session key. A message authentication code (MAC) algorithm may be applied to the combined information to generate a MAC output, and at least a portion of the MAC output may be transmitted to the recipient.

[0019] All or part of the MAC output may be combined with a random element, and the random element may be transmitted to a recipient along with at least a portion of the MAC output.

[0020] The encryption algorithm may be applied to all or part of the MAC output to generate an encrypted output. Transmitting all or part of the MAC output includes transmitting the encrypted output. The encryption algorithm may be applied based on a second master key stored in a memory of the contactless card.

[0021] The shared secret may be a random number used to initialize the contactless card.

[0022] The first master key may be combined with a counter value stored in a memory of the contactless card to generate a diversified session key.

[0023] The information to be encoded may be status information associated with the contactless card.

[0024] In another embodiment, a message may be received at a server. The message may include an encrypted message authentication code (MAC) and content associated with a user's account. An entry in a database associated with an account associated with the message may be identified. A first and a second master key associated with the account may be obtained, wherein the first and the second master keys are generated when the card is initialized for the account. The first master key may be used to generate a first diversified session key, and the second master key may be used to generate a second diversified session key. The encrypted MAC may be decrypted using the second diversified session key to obtain MAC data, and the MAC algorithm may be applied to the content of the message using the first master key to generate a server-side MAC. The server-side MAC may be compared with the obtained MAC data, and the message may be authenticated when the server-side MAC corresponds to the obtained MAC data. When the two MACs do not correspond, the system may suppress verification of the message.

[0025] The account may also be associated with a counter value that is incremented when the card is authenticated. The first and second diversified session keys may be generated based at least in part on the counter value. The counter value may be included in the content of the message.

[0026] A shared secret known to the card and the server may also be obtained. Comparing the server-side MAC with the obtained MAC data may include inverting the combination of the obtained MAC and the shared secret.

[0027] The shared secret may be a random number generated when the card is initialized. The shared secret may be a random number generated when a communication session is established with the card.

[0028] In some embodiments, random data may be added to the obtained MAC before comparing the server-side MAC to the obtained MAC.

[0029]

[0011] In further embodiments, an apparatus may include a contactless payment card having at least a memory, a processor, and a transmitter.

[0030] The memory may store the first master key and a secret shared with the authentication recipient. The shared secret may have a size.

[0031] The processor may be configured to perform an encryption procedure on the information to be encrypted. The encryption procedure may include combining the information to be encrypted with a shared secret and encrypting the result of the combination using a first master key to generate encrypted information. The encryption procedure may be associated with a security level.

[0032] The transmitter may be configured to transmit the encrypted information to an authenticated recipient. The transmission may be associated with a security requirement that is greater than the security level of the encryption procedure. The size of the shared secret may be selected to be sufficient so that when combined with the encryption procedure and any other cryptographic structures used to generate the encrypted information, the combined security level exceeds the security requirement.

[0033] The memory may also store a counter value that is incremented when the card is authenticated.The first master key may be combined with the counter value to generate a diversified session key for encrypting the result of the combination.

[0034] The result of the combination can be used as a message authentication code (MAC). In some cases, other cryptographic structures can include a MAC algorithm for generating a MAC using a second master key stored in a memory. The memory can also store a counter value that increments when the card is authenticated, and the second master key can be combined with the counter value to generate a diversified session key used by the MAC algorithm. The MAC algorithm can be associated with a security level, and the size of the shared secret and the encryption algorithm security level may not be sufficient to meet the security requirements, but when combined with the security level of the MAC algorithm, it is sufficient to meet the security requirements.

[0035] It is clearly contemplated that the various embodiments described herein may be used together, although for the sake of brevity, not all possible combinations are clearly shown by way of example. For example, a message authentication code (MAC) may be calculated over information and then encrypted with an encryption algorithm (or vice versa), a shared secret may be hidden in a MAC (or vice versa, as in the case where a MAC is encoded using a shared secret), a shared secret may be encrypted, an encryption scheme may be applied to data twice (using the same or different algorithms in conjunction with different encryption keys), etc. The system may be used to prepare and send authentication messages as well as receive and read authentication messages. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1A An environment suitable for use with the exemplary embodiments is depicted.

[0037] Figure 1B An example of a contactless card with a physical token is depicted.

[0038] Figure 1C The structure of an exemplary physical token is depicted.

[0039] Figure 2A An exemplary interface of a mobile application associated with an owner of a contactless card is depicted.

[0040] Figure 2B Depicted is an exemplary interface when a physical token is read by a reader on an owner's mobile device.

[0041] Figure 2C Depicted is an example of data exchange between a contactless card and a client device.

[0042] Figure 2D Exemplary data structures suitable for use with exemplary embodiments are depicted.

[0043] Figure 3 is a flow chart illustrating key operations according to an example embodiment.

[0044] Figure 4 is a diagram of a key system according to an example embodiment.

[0045] Figure 5 is a flow chart of a method of generating a password according to an example embodiment.

[0046] Fig. 6A is a flow chart illustrating a process of key diversification according to an example embodiment.

[0047] Figure 6B A more detailed description Fig. 6A Flowchart of block 606 of .

[0048] Figure 7 An exemplary computing system suitable for use with the exemplary embodiments is depicted.

[0049] Figure 8 An exemplary network environment suitable for use with the exemplary embodiments is depicted. DETAILED DESCRIPTION

[0050] Exemplary embodiments provide techniques for constructing a strong cryptographic construct from multiple weak constructs, a combination of a weak construct and a shared secret, or a combination of multiple constructs and multiple shared secrets. Using the techniques described herein, relatively weak constructs (i.e., each individually providing less than the security requirement (referred to herein as S security_requirement ) can be combined to produce a relatively strong construction (i.e., a construction that provides cryptographic strength greater than the security requirement).

[0051] According to an exemplary embodiment, relatively weak cryptographic constructions are layered to amplify their effective bit strength. In one example, an effective bit strength of S may be provided. shared_secret The shared secret can be set to S MAC_algorithm The MAC algorithm is used to share the secret. shared_secret and S MAC_algorithm Each of them may be smaller than S security_requirement , but combining these two elements as above results in S shared_secret +S MAC_algorithm The effective bit strength.

[0052] An important feature of the exemplary embodiments is that cryptographic operations are layered to increase the resulting cryptographic strength, rather than applying such operations side-by-side (which would result in no increase in cryptographic strength). In other words, a first cryptographic operation is applied to data to generate cryptographically encoded data, and then a second cryptographic operation is applied to the cryptographically encoded data to generate additional cryptographically encoded data. For example, a MAC may be applied to data to generate a MAC output, and then the MAC output may be further encrypted to amplify the strength of the combined cryptographic operation. In effect, the layering of MAC outputs in encryption effectively enhances the strength of the keys used for the individual cryptographic operations. If you prefer your original wording, change "generated MACed data" to "generated MACed data"

[0053] This is in contrast to a system where, for example, data is encrypted and a MAC is generated from the encrypted data, and then both the MAC and the encrypted data are included in the message. Although both the encryption and MAC algorithms use cryptographic keys, the cryptographic operations are applied independently, and therefore this sequence does not amplify or enhance cryptographic key strength.

[0054] As an illustrative example of a layering scheme for increasing effective key strength, if the shared secret has a length of 32 bits, then 2 32 operations to exhaustively search the entire set of possible key values. If the shared secret is then processed by a MAC algorithm with an effective strength of 72 bits, a potential brute force attacker would need to: (1) try every value of the 72-bit MAC key, and (2) for each potential value of the MAC key, try every possible configuration of the 32-bit shared secret. Thus, the brute force attacker would need to try 2 32 *2 72 possible values, resulting in the need for 2 104 operations or an effective bit strength of 104 bits.

[0055] Therefore, it can be seen that if S security_requirement is 100, and the cryptographer has access only to a MAC algorithm with a strength of 72 bits and a shared secret of 32 bits, a cryptographic construction that meets the security requirements can be generated by applying the MAC algorithm to the shared secret. In this example, layering occurs because the shared secret is included in the MAC operation.

[0056] The strength of the construction can be further enhanced by encrypting the resulting MAC. encryption_algorithm The strength of the effective bit of S, then the strength of the resulting construction will correspond to shared_secret +S MAC_algorithm +S encryption_algorithmThis process may be repeated and / or applied in various orders or combinations to produce the desired effective bit strength.

[0057] A plurality of such examples are considered to be within the scope of the present invention. For example, some contemplated embodiments include: calculating a MAC over a shared secret (alone or with other data); applying a MAC to the message content, and then encrypting the resulting MAC; applying a first MAC algorithm to the message content or a shared secret (alone or with other data), and then applying a second MAC algorithm (same or different from the first algorithm) to the resulting output; calculating a MAC over a shared secret (alone or with other data) and encrypting the result; and encrypting data using a first encryption algorithm / key to produce encrypted data, and then further encrypting the encrypted data using a second encryption algorithm / key. In this latter embodiment, it is contemplated that different encryption algorithms may be combined, or that the same encryption algorithm may be applied multiple times. In either case, the encryption algorithms should be used with different encryption keys. The effective bit strength of the cryptographic constructions to be combined need not be the same.

[0058] As used herein, an encryption algorithm generally refers to an algorithm that accepts an input and encodes the input to produce encrypted content that can be decrypted by an authorized party. On the other hand, a MAC algorithm is generally intended not to be reversible (i.e., when a MAC algorithm is applied to an input to generate a MAC output, the input generally cannot be reconstructed from the MAC output). Instead, the recipient either needs to be provided with a copy of the input, or needs to already have the input. The recipient can run the same MAC algorithm on the input using the same key as applied by the sender; if the MAC output generated by the recipient is the same as the MAC output sent by the sender, then the recipient knows that the input considered by the sender and the input considered by the recipient are the same (and that the message has not been tampered with or corrupted prior to receipt).

[0059] To further increase the security of exemplary embodiments, the key applied by the MAC and / or encrypted algorithm can be a diversified session key calculated based on a changing counter value known to the sender and receiver. In some embodiments, the cryptographic construction can be used to authenticate messages sent in association with a smart card (such as a credit card). The chip on the card can maintain a counter that increments each time the card is used, and the remote verification server can maintain a similar counter. The counter can be used to calculate the MAC / encryption key. Therefore, even if a brute force attacker is able to reconstruct the key used to generate or protect a particular message, the next message will be constructed using a new key based on the new counter value. Therefore, a key that an attacker is able to crack is only good for one use; it cannot be used to attack future communications.

[0060] The exemplary embodiments are described below mainly for encryption algorithms based on symmetric keys. Nevertheless, it is to be understood that this solution is not limited to these types of algorithms and is also applicable to asymmetric algorithms.

[0061] As described above, some embodiments may be used to protect messages transmitted in association with authentication messages for smart cards with embedded chips.Before providing more details on specific aspects of increasing the cryptographic strength of authentication messages, an exemplary environment in which such embodiments may be used is described below.

[0062] The following description of the embodiments provides non-limiting representative examples with reference to the accompanying drawings to specifically describe the features and teachings of different aspects of the present invention. The described embodiments should be considered to be able to be implemented separately or in combination with other embodiments from the description of the embodiments. The description of the embodiments should help to understand the present invention to such an extent that other implementations that are not specifically covered but are within the knowledge of those skilled in the art who have read the description of the embodiments will be understood to be consistent with the application of the present invention.

[0063] Figure 1A A data transfer environment 100 is shown according to an example embodiment. As discussed further below, the system 100 may include a contactless card including a physical token 106, a client device 104, a network 114, and a plurality of servers 116, 128. Figure 1A Specific configurations of components are shown, but one of ordinary skill in the art will understand that other configurations including more or fewer components or components in another configuration may be used.

[0064] Environment 100 may include one or more contactless cards, which will be referred to below. Figure 1B Further explanation. In some examples, the contactless card can communicate wirelessly with the client device 104, such as NFC communication. The contactless card can include a physical token 106, such as a contactless chip (see Figure 1C ). The physical token 106 may maintain a copy of the counter value 108 described above, which may be incremented each time the physical token is read by a reader (such as an NFC reader 110).

[0065] Environment 100 may include client device 104, which may be a network-enabled computer. As described herein, a network-enabled computer may include, but is not limited to, for example, a computer device, or a communication device, including, for example, a server, a network device, a personal computer (PC), a workstation, a mobile device, a phone, a handheld PC, a personal digital assistant (PDA), a thin client, a fat client, an Internet browser, or other device. Client device 104 may also be a mobile device; for example, a mobile device may include a computer from iPhone, iPod, iPad or running Apple Any other mobile device running Microsoft Mobile operating system, and / or any other smartphone or similar wearable mobile device.

[0066] The client device 104 and / or the contactless card including the physical token 106 may be associated with a user 102, who may be the owner of the contactless card. The user 102 may define credentials for accessing a mobile application on the client device 104, which may be an application associated with a service provider of the contactless card.

[0067] The client device 104 may include a near field communication reader 110 adapted to communicate with the physical token 106 ; for example, the NFC reader 110 may be used to read the counter value 108 from the physical token 106 .

[0068] In various examples according to the present disclosure, a client device 104 of the environment 100 may execute one or more applications, such as software applications. The software applications may enable network communications with one or more components of the environment 100 and may transmit and / or receive data. Among other computer executable logic, the client device 104 may include client-side validation logic 112 (such as in conjunction with Figure 5 Logic described in more detail).

[0069] The client device 104 may communicate with one or more servers 116, 128 via one or more networks 114, and may operate as a respective front-end to back-end pair with the transaction verification server 116. The client device 104 may transmit one or more requests to the server 116, for example, from a mobile device application executing on the client device 104. The one or more requests may be associated with data obtained from the server 116. The server 116 may receive the one or more requests from the client device 104. Based on the one or more requests from the client device 104, the server 116 may be configured to obtain the requested data from one or more databases (not shown). Based on receiving the requested data from the one or more databases, the server 116 may be configured to transmit the received data to the client device 104, the received data being responsive to the one or more requests.

[0070] The environment 100 may include one or more servers 116, 128. In some examples, the servers 116, 128 may include one or more processors coupled to a memory. The servers 116, 128 may be configured as a central system, server, or platform for controlling and calling various data at different times to perform multiple workflow actions. The servers 116, 128 may be configured to connect to one or more databases. The client device 104 may be connected to at least one of the servers 116, 128.

[0071] In one embodiment, the third party server 128 may request verification of the transaction. For example, the third party server 128 may be a server associated with a vendor selling a product or service for which a purchase request is submitted on behalf of the user 102. The third party server 128 may request verification of the purchase with a service provider.

[0072] To this end, the third-party server 128 may communicate with a transaction verification server 116 affiliated with the service provider via the network 114. To verify the transaction, the server 116 may execute server-side verification logic 118 (such as the logic depicted in FIG. 6). The logic 118 may maintain a counter window 120 that defines a range of acceptable counter values ​​(as described above, this takes into account accidental reads and other unintentional increments of the counter value 108). The counter window 120 may include several different ranges associated with different risk levels, such as a relatively wide range for low-risk transactions, and a relatively narrow range for high-risk transactions (which may require an exact match).

[0073] The logic 118 may apply the counter window 120 in conjunction with a counter value 126 stored in the user database 122 and indexed to a record 124 associated with the user 102. For example, the counter window 120 may be added to the stored counter value 126 to derive a maximum acceptable counter value, and the maximum acceptable counter value may be compared to the counter value 108 received from the card. If the card's counter value 108 does not exceed the maximum acceptable counter value, the transaction may be authorized. If the card's counter value 108 does exceed the maximum acceptable counter value, the user may be required to reauthenticate the card (as described below), which provides the server 116 with a new counter value 108 from the card. Assuming the new counter value 108 from the card is consistent with the counter value 108 previously received at the beginning of the transaction, the server 116 may update its own stored counter value 126 to match the counter value provided by the card. If not, further authentication steps may be required, or the transaction may be rejected.

[0074] The user database 122 is not necessarily a database, but may be any data structure suitable for storing the counter values ​​126 associated with the physical tokens 106 of the users 102 .

[0075] Figure 1B One or more contactless cards 130 are shown, which may include payment cards such as credit cards, debit cards, or gift cards issued by a service provider 132 displayed on the front or back of the card 130. In some examples, the contactless card 130 is unrelated to the payment card and may include, but is not limited to, an identification card. In some examples, the payment card may include a dual-interface contactless payment card. The contactless card 130 may include a substrate 134, which may include a single layer or one or more laminated layers of plastic, metal, and other materials. Exemplary substrate materials include polyvinyl chloride, polyvinyl chloride acetate, acrylonitrile butadiene styrene, polycarbonate, polyester, anodized titanium, palladium, gold, carbon, paper, and biodegradable materials. In some examples, the contactless card 130 may have physical characteristics of an ID-1 format that conforms to the ISO / IEC 7810 standard, and the contactless card may additionally conform to the ISO / IEC 14443 standard. However, it should be understood that a contactless card 130 according to the present disclosure may have different characteristics and the present disclosure does not require the implementation of a contactless card in a payment card.

[0076] The contactless card 130 may also include identification information 136 displayed on the front and / or back of the card, and a contact pad 138 representing a physical token. The contact pad 138 may be configured to establish contact with another communication device such as a user device, a smartphone, a laptop, a desktop computer, or a tablet computer. The contactless card 130 may also include a processing circuit system, an antenna, and a Figure 1C Other components not shown in the figure. These components can be located behind the contact pads 138 or elsewhere on the substrate 134. The contactless card 130 can also include a back surface of the card ( Figure 1B A magnetic strip or tape (not shown).

[0077] like Figure 1C As shown, Figure 1B The contact pads 138 may include processing circuitry 140 for storing and processing information, the processing circuitry including a microprocessor 142 and a memory 144. It should be understood that the processing circuitry 140 may contain additional components necessary to perform the functions described herein, including processors, memories, error and parity / CRC checkers, data encoders, anti-collision algorithms, controllers, command decoders, security primitives, and anti-tampering hardware.

[0078] The memory 144 can be a read-only memory, a write-once read-many memory or a read / write memory, such as a RAM, a ROM and an EEPROM, and the contactless card 500 can include one or more of these memories. The read-only memory can be a factory-programmable read-only memory or a one-time programmable memory. One-time programmability provides an opportunity to write once and then read multiple times. The write-once / read-many memory can be programmed at a certain point in time after the memory chip has been shipped. Once the memory is programmed, it may not be rewritten, but it may be read multiple times. The read / write memory can be programmed and reprogrammed multiple times after shipping. It can also be read multiple times.

[0079] Memory 144 can be configured to store one or more applets 146, one or more counters 108, and customer identifier 148. One or more applets 146 can include one or more software applications configured to be executed on one or more contactless cards, such as Java card applets. However, it should be understood that applets 146 are not limited to Java card applets, and can instead be any software application that can operate on contactless cards or other devices with limited memory. One or more counters 108 can include digital counters sufficient to store integers. Customer identifier 148 can include a unique alphanumeric identifier assigned to a user of contactless card 130, and the identifier can distinguish the user of the contactless card from other contactless card users. In some examples, customer identifier 148 can identify both the customer and the account assigned to the customer, and can further identify the contactless card associated with the customer's account.

[0080] The processor and memory elements of the foregoing exemplary embodiments are described with reference to the contact pads, but the present disclosure is not limited thereto. It should be understood that these elements may be implemented outside of the pad 138, or completely separated from the pad, or as other elements outside of the processor 142 and memory 144 elements located within the contact pad 138.

[0081] In some examples, the contactless card 130 may include one or more antennas 150. The one or more antennas 150 may be placed within the contactless card 130 and around the processing circuitry 140 of the contact pad 138. For example, the one or more antennas 150 may be integral with the processing circuitry 140, and the one or more antennas 150 may be used with an external booster coil. As another example, the one or more antennas 150 may be external to the contact pad 138 and the processing circuitry 142.

[0082] In an embodiment, the coil of the contactless card 130 can act as the secondary coil of an air-core transformer. The terminal can communicate with the contactless card 130 by cutting off power or modulating amplitude. The contactless card 130 can use the gap in the power connection of the contactless card to infer the data transmitted from the terminal, and the power connection can be maintained in terms of function by one or more capacitors. The contactless card 130 can communicate by switching the load or load modulation on the coil of the contactless card. The load modulation can be detected in the terminal coil by interference.

[0083] As explained above, the contactless card 130 can be built on a software platform that can operate on a smart card or other device with limited memory (e.g., JavaCard), and can securely execute one or more applications or applets. Applets can be added to contactless cards to provide one-time passwords (OTPs) for multifactor authentication (MFA) in various mobile application-based use cases. The applet can be configured to respond to one or more requests (such as near field data exchange (NDEF) requests) from a reader (such as a mobile NFC reader) and generate an NDEF message including a cryptographically secure OTP encoded as an NDEF text tag.

[0084] As described above, an exemplary transaction may involve logic 112 executing on client device 104 to verify that the transaction is requesting an account associated with a contactless card. FIG. 2A to FIG. 2B An exemplary interface that may be presented on the client device 104 in response to this logic is depicted.

[0085] Before displaying the interface, the user of the client 104 may be notified that the transaction requires verification. For example, the user may receive an SMS message from the service provider, may receive a notification through the service provider's application, may receive a call or an email, and so on.

[0086] After receiving the notification, the user can log in to the service provider's application. For example, the user can provide a username and password, which can verify the user's identity. In other embodiments, the user can be verified in other ways, such as through biometric data. In some embodiments, the login can utilize two-factor authentication (2FA).

[0087] When a user logs into your application, they can be presented with an interface such as Figure 2A 200. In the interface, a message 202 may be displayed indicating that a problematic transaction has been received and needs to be verified. The message 202 may include details of the transaction, such as the value of the transaction, the name of the supplier attempting to verify the transaction, and the like.

[0088] Interface 200 may include interactive element 204, thereby allowing the user to mark a transaction as fraudulent if the user has not authorized the transaction. Upon selecting interactive element 204, the application may transmit a fraud warning message to the transaction verification server indicating that the transaction in question is not approved.

[0089] Message 202 may also include instructions for verifying the transaction if the user does authorize the transaction. In one embodiment, verifying the transaction may include tapping card 130 against a reader on the back of client device 104, such as Figure 2B The reader can read the counter value from the physical token on the card 130 and can generate a message 300 including the counter value 304 and the authentication password 306 (see Figure 2D ). Message 300 may be encrypted.

[0090] Counter value 304 may correspond to the counter value most recently read from the card, and authentication cryptogram 306 may be generated based on a cryptographic key stored on physical token 138 and may be used to authenticate the card with a transaction verification server and ensure that message 300 has not been tampered with or corrupted.

[0091] The message 300 may also include a token identifier 302 that may identify the card 130 and / or a user associated with the card. For example, the token identifier 302 may correspond to the unique customer identifier 148 stored in the physical token 138).

[0092] Upon receiving the message 300, the transaction verification server may decrypt the message 300, verify the card and message based on the password 306, match the message to the user account based on the token identifier 302, and retrieve the user record 124 (see Figure 1A ). The transaction verification server may then compare the counter value 304 with the corresponding counter value 126 stored in the user database 122 to verify that the number of reads or transactions on the card matches the expected counter value stored on the server. This may verify that the user owns the card (i.e., the message 300 is not a forgery) and that the number of transactions performed by the user matches the service provider's expectations. If the counter values ​​are not synchronized, this may indicate that an unauthorized transaction has been attempted and may result in the current transaction being rejected (or may result in the need for additional verification actions).

[0093] Those skilled in the art will appreciate that message 300 is depicted in a simplified format. In some embodiments, other components may be present in the message, or the depicted components may be combined or modified.

[0094] Figure 2C is a timing diagram illustrating an example sequence for providing authenticated access according to one or more embodiments of the present disclosure.A system may include a contactless card 130 and a client device 104, which may include an application (which may include logic 112) and a processor.

[0095] At 202, the application communicates with the contactless card 130 (e.g., after being brought into proximity with the contactless card 130). The communication between the application and the contactless card 130 may include the contactless card 130 being sufficiently close to a card reader (not shown) of the client device 104 to enable NFC data transfer between the application and the contactless card 130.

[0096] At step 204, after communication has been established between the client device 104 and the contactless card 130, the contactless card 130 generates a message authentication code (MAC) password. In some examples, this may occur when the contactless card 130 is read by an application hosting the logic 112. In particular, this may occur when reading (such as NFC reading) a near field data exchange (NDEF) tag, which may be created according to the NFC data exchange format. For example, a reader such as the logic 112 may transmit a message (such as an applet selection message) having an applet ID of an applet that generates NDEF. After confirming the selection, a sequence of selected file messages followed by a read file message may be transmitted. For example, the sequence may include "select function file", "read function file", and "select NDEF file". At this point, a counter value maintained by the contactless card 130 may be updated or incremented, followed by "read NDEF file". At this point, a message that may include a header and a shared secret may be generated. A session key may then be generated. A MAC password may be created based on the message, which may include a header and a shared secret. The MAC password can then be concatenated with one or more random data blocks, and the MAC password and random number (RND) can be encrypted with the session key. Thereafter, the password and header can be concatenated and encoded as ASCII hexadecimal and returned in the NDEF message format (in response to the "Read NDEF File" message).

[0097] In some examples, the MAC password may be transmitted as an NDEF tag, and in other examples, the MAC password may be included with a uniform resource indicator (eg, as a formatted string).

[0098] In some examples, logic 112 may be configured to transmit a request to contactless card 130 that includes instructions for generating a MAC password.

[0099] At step 206, the contactless card 130 sends the MAC password to the logic 112. In some examples, the transmission of the MAC password occurs via NFC, however, the present disclosure is not limited thereto. In other examples, such communication can be performed via Bluetooth, Wi-Fi or other wireless data communication methods.

[0100] At step 208, the logic 112 transmits the MAC password to the processor.

[0101] At step 210, the processor verifies the MAC password according to instructions from the logic 112. For example, the MAC password may be verified as explained below.

[0102] In some examples, verifying the MAC password may be performed by a device other than the client device 104, such as a server 116 in data communication with the client device 104. For example, the processor may output the MAC password for transmission to the server 116, which may verify the MAC password.

[0103] In some examples, the MAC password can function as a digital signature for verification purposes. Other digital signature algorithms (such as public key asymmetric algorithms, such as the digital signature algorithm and the RSA algorithm, or zero-knowledge protocols) can be used to perform such verification.

[0104] Figure 2D An exemplary technique for generating protected message 230 in accordance with an exemplary embodiment is depicted.

[0105] Message 230 can be configured to deliver information or content from a sender to a recipient. This information or content can be represented by message plaintext 234 (although the content can be optionally encrypted or otherwise protected).

[0106] The message plaintext 234 may be combined with the shared secret 232. The shared secret 232 may be a random number known to both the sender and the receiver. For example, if the message plaintext 234 relates to an authentication action for a contactless card as described above, the process of setting up or initializing the card may include sharing a random number between a chip on the card and a transaction verification server. In one embodiment, the random number may be a 32-bit random number. Alternatively or additionally, a communication session may be set up by the sender and the receiver; the process of setting up the communication session may include sharing a random number between the sender and the receiver, and the random number may be used as the shared secret 232.

[0107] The message plaintext 234 and the shared secret 232 can be combined in various ways. In one embodiment, the message plaintext 234 can be encoded in a format so that it can be multiplied by the shared secret 232. The resulting product can then be applied to the MAC algorithm. In another embodiment, the message plaintext 234 can be concatenated with the shared secret 232 in whole or in part. The resulting combination can then be applied to the MAC algorithm. The resulting MAC may be encrypted before transmission.

[0108] When the receiver (e.g., receiving server) obtains the MAC data, the receiver can decrypt the data to recover the MAC created by the sender. The receiver can then obtain the message plaintext 234 and combine it with the agreed shared secret 232 in the same manner as the sender. The receiver can generate a MAC based on this combined data and compare it to the MAC transmitted from the sender. If the two match, then the receiver can assume that the message has not been tampered with in transit.

[0109] One of ordinary skill in the art will recognize that there are other techniques for combining two different data instances, any of which may be suitable for use with the exemplary embodiments.

[0110] After the message plaintext 234 and the shared secret 232 are combined, they may be provided to a MAC algorithm 236. The MAC algorithm 236 may be any suitable MAC algorithm, such as a data authentication algorithm (DAA), a cipher block chaining message authentication code (CBC-MAC), a Galois message authentication code (GMAC), and a hashed message authentication code (HMAC).

[0111] MAC algorithm 236 operates using a key. In an exemplary embodiment, this key may be a first diversified key 250 created using a diversification algorithm 248. The diversification algorithm may operate on the counter 108 received from the contactless card and a first master key 244 (described in more detail below) stored on the contactless card to generate the first diversified key 250. Using the first diversified key 250 and the combined shared secret / plaintext, MAC algorithm 236 may generate a MAC output 238.

[0112] MAC output 238 may optionally be encrypted by encryption algorithm 240 to generate encrypted MAC 242. Encryption algorithm 240 may be any suitable encryption algorithm, such as data encryption standard (DES), TripleDES (3DES), advanced encryption standard (AES), RSA, and the like.

[0113] In some embodiments, MAC output 238 may be combined with random data 254. For example, in one embodiment, MAC output 238 may be combined with 8 bytes of randomly generated data 254. When a recipient receives message 300, the recipient may decrypt encrypted MAC 242 and discard the random data. The recipient may calculate its own version of the MAC, as described below, and may compare the recipient-generated MAC to the data remaining in encrypted MAC 242 received as part of message 230.

[0114] It should be clear to those skilled in the art that in some embodiments, MAC output 238 may be truncated so that only a portion of the original MAC output is sent by the sender. The receiver will then independently calculate the MAC output and similarly truncate it before comparing the truncated MAC output.

[0115] The encryption algorithm 240 also operates using a key. In an exemplary embodiment, this key may be a second diversified key 252 created using a diversification algorithm 248. The diversification algorithm may operate on the counter 108 received from the contactless card and a second master key 246 (described in more detail below) stored on the contactless card to generate the second diversified key 252. Using the second diversified key 252, the random data 254 and the MAC output 238 are encrypted using the encryption algorithm 240 to create an encrypted MAC 242 (which is included as part of the message 230).

[0116] The encrypted MAC 232 may be transmitted along with the message plaintext 234. The counter value 108 may optionally be sent as part of the message plaintext 234 and may be consulted by the recipient (eg, server) when authenticating the message. The shared secret 232 is not sent directly as part of the message.

[0117] Figure 3 is a flow chart illustrating key operation 300 according to an example embodiment. Figure 3 As shown, at block 310, two bank identifier number (BIN) level master keys may be used in conjunction with the account identifier and the card serial number to generate two unique derived keys per card. In some examples, the bank identifier may include a number or a combination of one or more numbers (such as an account number or an unpredictable number provided by one or more servers) that may be used for session key generation and / or diversification. During the personalization process, the UDK (AUTKEY and ENCKEY) may be stored on the card.

[0118] At box 320, the counter can be used as diversification data, since it changes with each use and provides a different session key each time, rather than a master key derivation where each card produces a unique set of keys. In some examples, it is preferred to use a 4-byte approach for both operations. Thus, at box 320, two session keys can be created for each transaction from the UDK, i.e., one session key from the AUTKEY and one session key from the ENCKEY. In the card, for the MAC key (i.e., the session key created from the AUTKEY), the lower two bytes of the counter can be used for diversification. For the ENC key (i.e., the session key created from the ENCKEY), the full length of the counter can be used for the ENC key.

[0119] At block 330, the MAC key may be used to prepare a MAC password and the ENC key may be used to encrypt the password. For example, the MAC session key may be used to prepare the password and the result may be encrypted using the ENC key before it is transmitted to one or more servers.

[0120] At block 340, verification and processing of the MAC is simplified because 2-byte diversification can be supported directly in the MAC authentication function of the payment HSM. Decryption of the password is performed before verifying the MAC. The session key is independently derived at one or more servers, resulting in a first session key (ENC key) and a second session key (MAC key). The second derived key (i.e., the ENC key) can be used to decrypt the data, and the first derived key (i.e., the MAC key) can be used to verify the decrypted data.

[0121] For contactless cards, different unique identifiers that may be associated with the application primary account number (PAN) and PAN serial number encoded in the card are derived. Key diversification can be configured to receive an identifier as input using a master key so that one or more keys can be created for each contactless card. In some examples, these diversified keys may include a first key and a second key. The first key may include an authentication master key (card password generation / authentication key - AUTKEY), and may be further diversified to create a MAC session key used when generating and verifying a MAC password. The second key may include an encryption master key (card data encryption key - ENCKEY), and may be further diversified to create an ENC session key used when encrypting and decrypting encrypted data. In some examples, the first key and the second key may be created by diversifying the issuer master key by combining the issuer master key with the card's unique ID number (pUID) and the PAN sequence number (PSN) of the payment applet. The pUID may include a 16-bit digital value. As explained above, the pUID may include a 16-bit BCD-encoded number. In some examples, the pUID may include a 14-bit digital value.

[0122] In some examples, the session key derivation method will use the lower 2 bytes of the counter. In these cases, the generated session key value will be in 2 16 In other examples, a 4-byte counter is used when deriving the session key so that the generated key value is within 2 32It may be beneficial to hide it after the first use. As is obvious to those skilled in the art, different numbers of bits or bytes from the counter can be used as needed to generate a session key that will not be hidden during the life cycle of the intended application.

[0123] In other examples such as a credit card, a number such as a transaction number or an unpredictable number provided by one or more servers may be used for session key generation and / or diversification.

[0124] Figure 4 A schematic diagram of a system 400 configured to implement one or more embodiments of the present disclosure is shown. As explained below, during the contactless card creation process, two cryptographic keys can be uniquely assigned to each card. The cryptographic keys can include a symmetric key that can be used to create a session key used in the encryption and decryption of data, as well as to create a MAC. The Triple DES (3DES) algorithm can be used by EMV and implemented by hardware in the contactless card. By using a key diversification process, one or more keys can be derived from a master key based on uniquely identifiable information for each entity that needs a key.

[0125] With respect to master key management, two issuer master keys 405, 410 may be required for each portion of a portfolio on which one or more applets are issued. For example, the first master key 405 may include an issuer password generation / authentication key (Iss-Key-Auth), and the second master key 410 may include an issuer data encryption key (Iss-Key-DEK). As further explained herein, the two issuer master keys 405, 410 are diversified into card master keys 425, 430, which are unique to each card. In some examples, a network profile record ID (pNPR) 415 and a derived key index (pDKI) 420 as background data may be used to identify which issuer master keys 405, 410 are used in the password process for authentication. The system performing the authentication may be configured to obtain the values ​​of the pNPR 415 and pDKI 420 of the contactless card at the time of authentication.

[0126] In some examples, to increase the security of the solution, session keys (such as unique keys for each session) may be derived, but rather than using the card master key 425, 530 to perform the MAC 436 and encryption 441 operations, the card master key 425, 430 may be used in conjunction with the counter 445 to derive the session key, but as explained above. For example, each time the card is used in an operation, a different key may be used for creating a message authentication code (MAC) and for performing encryption. With respect to session key generation, the keys used to generate cryptograms and encrypt data in one or more applets may include session keys based on the card unique key (AUTKEY 425 and ENCKEY 430). The session keys (MAC Key 435 and ENC Key 440) may be generated by one or more applets and derived using one or more algorithms using the application transaction counter 445. In order to fit the data into one or more algorithms, only the 2 lower bytes of the 4-byte counter 445 are used. In some examples, a four-byte session key derivation method may include: F1:=Counter (lower 2 bytes)||'F0'||'00'||PATC (four bytes) F1:=PATC (lower 2 bytes)||'0F'||'00'||Counter (four bytes) SK:={(ALG(MK)[F1])||ALG(MK)[F2]}, where ALG may include 3DES ECB and MK may include a card-unique derived master key.

[0127] As described herein, the lower two bytes of counter 445 may be used to derive one or more MAC session keys. At each tap of a contactless card, counter 445 is configured to be updated and the card master key AUTKEY 425 and ENCKEY 430 are further diversified into session keys MAC Key 435 and ENC Key 440. Counter 445 may be initialized to zero at personalization or applet initialization. In some examples, counter 445 may be initialized at or before personalization and may be configured to increment by one at each NDEF read.

[0128] Further, updates for each card may be unique and may be assigned by personalization, or algorithmically assigned by pUID or other identifying information. For example, odd numbered cards may increment or decrement by 2, and even numbered cards may increment or decrement by 5. In some examples, updates may also vary in sequential reads, such that a card may be sequentially incremented by 1, 3, 5, 2, 2, ... repeatedly. The specific sequence or algorithmic sequence may be defined at personalization, or according to one or more processes derived from a unique identifier. This makes it more difficult for a replay attacker to generalize from a smaller number of card instances.

[0129] The authentication message can be delivered as the content of a text NDEF record in hexadecimal ASCII format. In some examples, the password 460 will be the result of encryption 441, which encrypts the random data block pre-added to the output of the MAC operation 436. In some examples, the random number can be before the password A and can be a block long. In other examples, there may be no restrictions on the length of the random number. In other examples, the total data (i.e., the random number plus the password) can be a multiple of the block size. In these examples, additional 8-byte blocks can be added to match the blocks generated by the MAC algorithm. As another example, if the algorithm used uses a 16-byte block, even a multiple of the block size can be used, or the output can be automatically or manually filled to a multiple of the block size.

[0130] The MAC may be performed using a function key (MAC Key) 435. The data specified in the cryptogram may be processed using the javacard.signature method: ALG_DES_MAC8_ISO9797_1_M2_ALG3 to be associated with the EMV ARQC authentication method. As explained above, the key used for this calculation may include a session key MAC Key 435. As explained above, the lower two bytes of the counter may be used to diversify one or more MAC session keys. As explained above, the MAC Key 435 may be used to MAC data 450, and the resulting data or cryptogram A 455 and random number RND may be encrypted using the ENC Key 440 to create the cryptogram B or output 460 sent in the message.

[0131] In some examples, one or more HSM commands may be processed for decryption so that the final 16 (binary, 32 hex) bytes may include a 3DES symmetric encryption using CBC mode, where the fourth zero of the random number is followed by the MAC authentication data. The key used for this encryption may include the session key ENC Key 440 derived from ENCKEY 430. In this case, the derived data for the session key derivation is the least significant two bytes of counter 445.

[0132] The following format represents a binary version example embodiment. Further, in some examples, the first byte may be set to ASCII 'A'.

[0133]

[0134]

[0135] Another exemplary format is shown below. In this example, the tag may be encoded in hexadecimal format.

[0136]

[0137]

[0138]

[0139] The UID field of the received message can be extracted to derive the card master key (AUTKEY 425 and ENCKEY 430) of this particular card from the master keys Iss-Key-AUTH 405 and Iss-Key-DEK410. Using the card master key (AUTKEY 425 and ENCKEY 430), the counter field of the received message can be used to derive the session key (MACKey 435 and ENC Key 440) of this particular card. Password B 460 can be decrypted using ENC Key 440, which produces Password A 455 and RND, and the RND can be discarded. The UID field can be used to look up the shared secret of the contactless card, which, along with the version, UID, and counter fields of the message, can be processed using the recreated MAC Key 435 through the password MAC to create a MAC output, such as MAC'. If MAC' is the same as Password A 955, this indicates that the message decryption and MAC check have all passed. The counter can then be read to determine if it is valid.

[0140] During the authentication session, one or more passwords may be generated by one or more applications. For example, one or more passwords may be generated as a 3DES MAC using ISO 9797-1 algorithm 3 with method 2 padding using one or more session keys (such as MAC Key 435). Input data 450 may take the following form: version (2), pUID (8), pATC (4), and shared secret (4). In some examples, the number in brackets may include a length in bytes. In some examples, the shared secret may be generated by one or more random number generators that may be configured to ensure that the random number is unpredictable through one or more security processes. In some examples, the shared secret may include a random 4-byte binary number injected into the card at a personalization time known by the authentication service. During the authentication session, the shared secret may not be provided to the mobile application from one or more applets. Method 2 padding may include adding a mandatory 0x'80' byte to the end of the input data and adding 0x'00' bytes to the end of the resulting data until an 8-byte boundary. The resulting password may include 8 bytes in length.

[0141] In some examples, one benefit of encrypting the unshared random number as the first block with a MAC cipher is that it acts as an initialization vector when using the CBC (block chaining) mode of a symmetric encryption algorithm. This allows "scrambling" on a block-by-block basis without having to pre-establish a fixed or dynamic IV.

[0142] By including the application transaction counter 445 as part of the data included in the MAC password, the authentication service can be configured to determine whether the value conveyed in the plaintext data has been tampered with. Moreover, by including the version in one or more passwords, it is difficult for an attacker to purposefully tamper with the application version in an attempt to reduce the strength of the password solution. In some examples, the counter 445 can start from zero and update 1 each time one or more applications generate authentication data. The authentication service can be configured to track the counter 445 used during the authentication session. In some examples, when the authentication data uses a counter 445 that is equal to or lower than a previous value received by the authentication service, this may be interpreted as an attempt to replay an old message, and the authenticated message may be rejected. In some examples, when the counter 445 is greater than the previously received value, it can be evaluated to determine whether it is within an acceptable range or threshold, and if it exceeds the range or threshold or is outside the range or threshold, the verification can be considered to have failed or unreliable. In MAC operation 436, the data 450 is processed by MAC using MAC Key 435 to produce an encrypted MAC output (password A) 455.

[0143] To provide additional protection against brute force attacks that expose the on-card key, it is desirable to encrypt the MAC password 455. In some examples, the data or password A 455 included in the ciphertext may include: random number (8), password (8). In some examples, the number in brackets may include a length in bytes. In some examples, the random number may be generated by one or more random number generators, which may be configured to ensure that the random number is unpredictable through one or more security processes. The key used to encrypt this data may include a session key. For example, the session key may include ENC Key 440. In encryption operation 441, the data or password A 455 and RND are processed using ENC Key 440 to produce encrypted data, i.e., password B 460. Data 455 may be encrypted using 3DES in cipher block chaining mode to ensure that an attacker must perform any attack on the entire ciphertext. As a non-limiting example, other algorithms such as Advanced Encryption Standard (AES) may be used. In some examples, an initialization vector of 0x'0000000000000000' may be used. Any attacker attempting to brute force the key used to encrypt this data will not be able to determine when the correct key has been used, as correctly decrypted data will be indistinguishable from incorrectly decrypted data due to its random appearance.

[0144] In order for the authentication service to verify one or more passwords provided by one or more applets, the following data must be transmitted in plain text from one or more applets to the mobile device during the authentication session: a version number, used to determine the cryptographic method used and the message format used for verification of the password, which allows the method to be changed in the future; a pUID, used to obtain the cryptographic asset and derive the card key; and a counter 445, used to derive the session key for the password.

[0145] Figure 5 A method 500 for generating a cryptogram is shown. For example, at block 510, a network profile record ID (pNPR) and a derived key index (pDKI) may be used to identify which issuer master keys are used in a cryptogram process for authentication. In some examples, the method may include performing authentication to obtain the values ​​of the pNPR and pDKI of the contactless card at the time of authentication.

[0146] At block 520, the issuer master key may be diversified by combining the issuer master key with the card's unique ID number (pUID) and PAN serial number (PSN) for one or more applets (eg, a payment applet).

[0147] At block 530, AUTKEY 425 and ENCKEY 430 (unique card keys) may be created by diversifying the issuer master key to generate a session key that may be used to generate a MAC password.

[0148] At block 540, the keys used to generate the password and encrypt the data in one or more applets may include the session keys of block 530 based on the card unique keys (AUTKEY 425 and ENCKEY 430). In some examples, these session keys may be generated by one or more applets and derived by using counter 445 to produce session keys MACKey 435 and ENC Key 440.

[0149] FIG6 depicts an exemplary process 600 showing key diversification according to an example. Initially, a sender and a receiver may be provided with two different master keys. For example, a first master key may include a data encryption master key, and a second master key may include a data integrity master key. The sender has a counter value that may be updated at block 602, as well as other data (such as data to be protected) that the sender may securely share with the receiver.

[0150] At block 604, the counter value may be encrypted by the sender using the data encryption master key to produce a data encryption derived session key, and the counter value may also be encrypted by the sender using the data integrity master key to produce a data integrity derived session key. In some examples, the entire counter value or a portion of the counter value may be used during both encryptions.

[0151] In some examples, the counter value may not be encrypted. In these examples, the counter may be transmitted between the sender and the receiver in plain text, i.e., without encryption.

[0152] At block 606, the sender processes the data to be protected using a cryptographic MAC operation using the data integrity session key and a cryptographic MAC algorithm. The protected data (including plaintext and shared secret) may be used to generate a MAC using one of the session keys (MAC Key 435).

[0153] Combination Figure 6B Block 606 is described in more detail. Figure 6B The actions described may be performed by the processor 142 on the contact pad 138 of the contactless card 130 .

[0154] like Figure 6B As shown, at block 618, the system may access protected data, which is used to generate a MAC.

[0155] If the protected data is to be combined with a shared secret, then at block 620, the system may optionally access the shared secret (e.g., a random number generated when the contactless card was first initialized or when a communication session associated with the card was established and shared between the server and the contactless card). At block 622, the system may combine the shared secret and the protected data, such as by appending the shared secret to the protected data (as well as other possibilities, such as applying a logical or Boolean operation to the shared secret and the protected data).

[0156] The system may apply a MAC algorithm to the combined data at block 624. The MAC algorithm relies on a key in order to generate a MAC, which may be a diversified session key generated using a counter value as described above.

[0157] At block 626, the system may determine whether the MAC algorithm (optionally applied in conjunction with a shared secret) is secure enough to meet the security requirements of the system. For example, the system may be provided with a minimum security level (e.g., expressed in bits) and may determine whether the actions taken at blocks 622 to 624 are sufficient to meet the security level. In making this determination, the system may add the size of the shared secret (if used) to the security level of the MAC algorithm (which may be defined by the size of the diversified session key). If the result is greater than the minimum security requirement, processing may proceed to block 610 and the MAC may be transmitted.

[0158] If the result is not greater than the minimum security requirement ("No" at block 626), processing can proceed to block 628 and the system can apply an encryption algorithm to the MACed data using the second diversified session key as described above. Processing can then return to block 626 where the resulting construction is re-evaluated to determine if it meets the minimum security level. If so, processing proceeds to block 610 and the (now encrypted) MAC is transmitted. If not, processing can return to block 628 and the system can apply further encryption to the encrypted data to further increase the security of the encrypted data. The system can apply the same encryption algorithm as previously applied, or a different encryption algorithm can be applied. The system can use a different key (e.g., a third diversified session key generated based on a third master key or other data known to both the card and the server). Block 628 can be repeated until a sufficient security level is reached.

[0159] Figure 6BOnly one exemplary technique for increasing the security of a cryptographic structure (in this case, a MAC) is depicted. However, one of ordinary skill in the art will recognize that the depicted blocks may be performed in a different order without departing from the spirit of the invention. Furthermore, some blocks may be eliminated, some blocks may be added, and some depicted blocks may be performed more than once to increase the cryptographic strength of the construction.

[0160] It will further be apparent that although the exemplary embodiments are described in conjunction with authentication messages associated with contactless cards, the invention is not so limited. The concepts described herein, including enhancing the cryptographic strength of a MAC or encryption algorithm, may be applied to any cryptographic environment.

[0161] Back to Fig. 6A , at block 608, the data to be protected may be encrypted by the sender using a session key derived from data encryption in conjunction with a symmetric encryption algorithm. In some examples, the MAC is combined with an equal amount of random data (e.g., each 8 bytes long) and then encrypted using a second session key (DEK session key).

[0162] At block 610, the encrypted MAC is transmitted from the sender to the receiver, with sufficient information to identify additional secret information (such as a shared secret, master key, etc.) for cryptographic verification.

[0163] At block 612, the recipient independently derives two derived session keys from the two master keys using the received counter value, as explained above.

[0164] At box 614, the session key derived from the data encryption is used in conjunction with a symmetric decryption operation to decrypt the protected data. Additional processing of the exchanged data will then occur. In some examples, after extracting the MAC, it is desirable to reproduce and match the MAC. For example, when verifying a password, it can be decrypted using a properly generated session key. The protected data can be reconstructed for verification. A MAC operation can be performed using a properly generated session key to determine if it matches the decrypted MAC. Since the MAC operation is an irreversible process, the only way to verify is to attempt to recreate it from the source data.

[0165] At block 616, the data integrity derived session key is used in conjunction with a cryptographic MAC operation to verify that the protected data has not been modified.

[0166] Some examples of the methods described herein can advantageously confirm when a successful authentication is determined when the following conditions are met. First, the ability to verify the MAC indicates that the derived session key is correct. The MAC can only be correct if the decryption is successful and produces the correct MAC value. Successful decryption may indicate that the correctly derived encryption key is used to decrypt the encrypted MAC. Since the derived session key is created using a master key known only to the sender (e.g., a transmitting device) and the receiver (e.g., a receiving device), it can be believed that the contactless card that originally created the MAC and encrypted the MAC is indeed authentic. Moreover, the counter value used to derive the first session key and the second session key can be shown to be valid and can be used to perform the authentication operation.

[0167] Thereafter, the two derived session keys may be discarded, and the next iteration of the data exchange will update the counter value (returning to block 602), and a new set of session keys may be created (at block 604). In some examples, the combined random data may be discarded.

[0168] Example embodiments of the systems and methods described herein may be configured to provide security factor authentication. Security factor authentication may include multiple processes. As part of security factor authentication, a first process may include logging in and verifying a user through one or more applications executed on a device. As a second process, the user may participate in one or more behaviors associated with one or more contactless cards in response to successful login and verification of the first process through one or more applications. In practice, security factor authentication may include securely proving the identity of the user and participating in one or more types of behaviors associated with a contactless card, including but not limited to one or more tap gestures. In some examples, one or more tap gestures may include tapping a contactless card on a device by a user. In some examples, the device may include a mobile device, a kiosk, a terminal, a tablet computer, or any other device configured to process a received tap gesture.

[0169] In some examples, the contactless card can be tapped on a device (such as one or more computer kiosks or terminals) to verify identity, thereby receiving a transaction item in response to a purchase, such as coffee. By using a contactless card, a secure method for proving identity in a loyalty program can be established. Establishing a secure way to prove identity in a manner different from simply scanning a barcode card, such as to obtain a reward, coupon, discount, etc. or the receipt of a benefit. For example, an encrypted transaction can occur between a contactless card and a device, which can be configured to process one or more tap gestures. As explained above, one or more applications can be configured to verify the identity of the user, and then enable the user to act or respond to it, for example, through one or more tap gestures. In some examples, data such as bonus points, loyalty points, reward points, health care information, etc. can be written back to the contactless card.

[0170] In some examples, the contactless card can be tapped on a device, such as a mobile device. As explained above, the user's identity can be verified by one or more applications, which will then grant the user desired benefits based on the verification of the identity.

[0171] In some examples, the contactless card can be activated by being tapped on a device such as a mobile device. For example, the contactless card can communicate with the application of the device via the card reader of the device through NFC communication. Wherein the communication of tapping the card near the card reader of the device can allow the application of the device to read the data associated with the contactless card and activate the card. In some examples, activation can authorize the card to perform other functions, such as purchasing, accessing accounts or restricted information or other functions. In some examples, tapping can activate or start the application of the device, and then initiate one or more actions or communications with one or more servers to activate the contactless card. If the application is not installed on the device, tapping the contactless card near the card reader can initiate the download of the application, such as navigating to the download page of the application. After installation, tapping the contactless card can activate or start the application, and then initiate the activation of the contactless card, for example, through the application or other back-end communications. After activation, the contactless card can be used for various activities, including but not limited to commercial transactions.

[0172] In some embodiments, a dedicated application may be configured to run on a client device to perform activation of a contactless card. In other embodiments, a web portal, a web-based application, a mini-program, etc. may perform activation. Activation may be performed on a client device, or the client device may only act as an intermediary between a contactless card and an external device (e.g., an account server). According to some embodiments, when providing activation, the application may indicate to the account server the type of device performing the activation (e.g., a personal computer, a smartphone, a tablet computer, or a point-of-sale (POS) device). Further, depending on the type of device involved, the application may output different and / or additional data to the account server for transmission. For example, such data may include information associated with a merchant, such as a merchant type, a merchant ID, and information associated with the device type itself, such as POS data and POS ID.

[0173] In some embodiments, the example authentication communication protocol can mimic the offline dynamic data authentication protocol of the EMV standard with some modifications that is usually performed between a transaction card and a point-of-sale device. For example, because the example authentication protocol itself is not used to complete a payment transaction with a card issuer / payment processor, some data values ​​are not required, and authentication can be performed without involving a real-time online connection with the card issuer / payment processor. As is known in the art, a point-of-sale (POS) system submits a transaction including a transaction value to a card issuer. Whether the issuer approves or denies the transaction may be based on whether the issuer recognizes the transaction value. At the same time, in certain embodiments of the present disclosure, transactions originating from mobile devices lack a transaction value associated with the POS system. Therefore, in some embodiments, a pseudo transaction value (i.e., a value that is recognizable to the card issuer and sufficient to allow activation to occur) can be passed as part of the example authentication communication protocol. POS-based transactions can also reject transactions based on the number of transaction attempts (e.g., a transaction counter). The number of attempts exceeding a buffer value may result in a soft rejection; a soft rejection requires further verification before accepting the transaction. In some implementations, the buffer value of the transaction counter can be modified to avoid rejecting legitimate transactions.

[0174] In some examples, a contactless card can selectively transmit information based on the recipient device. Once tapped, the contactless card can identify the device that the tap was directed to, and based on this identification, the contactless card can provide the appropriate data for the device. This advantageously allows the contactless card to transmit only the information required to complete an immediate action or transaction (such as payment or card authentication). By limiting data transmission and avoiding unnecessary data transmission, both efficiency and data security can be improved. The identification and selective communication of information can be applied to a variety of scenarios, including card activation, balance transfers, account access attempts, commercial transactions, and step-up fraud reduction.

[0175] If the contactless card tap is for running Apple The contactless card can be recognized by the device operating system (such as iPhone, iPod or iPad) The operating system transmits the appropriate data to communicate with this device. For example, a contactless card can provide the encrypted identity information required to authenticate the card using an NDEF tag, such as NFC. Similarly, if a contactless card tap is performed against a running Operating system devices (e.g. smartphone or tablet), the contactless card can be recognized operating system and transmits appropriate data (such as encrypted identity information required for authentication via the methods described herein) to communicate with this device.

[0176] As another example, a contactless card tap can be performed against a POS device, including but not limited to a kiosk, checkout register, payment station, or other terminal. When performing the tap, the contactless card can identify the POS device and transmit only the information required for the action or transaction. For example, after identifying the POS device used to complete a commercial transaction, the contactless card can transmit the payment information required to complete the transaction in accordance with the EMV standard.

[0177] In some examples, a POS device participating in a transaction may require or specify additional information to be provided by the contactless card, such as device-specific information, location-specific information, and transaction-specific information. For example, once the POS device receives data communications from a contactless card, the POS device may identify the contactless card and request additional information required to complete the action or transaction.

[0178] In some examples, the POS device may be affiliated with an authorized merchant or other entity familiar with certain contactless cards or accustomed to performing certain contactless card transactions. However, it should be understood that performance of the described methods does not require such an affiliation.

[0179] In some examples, such as shopping stores, grocery stores, convenience stores, etc., a contactless card can be tapped on a mobile device without having to open an app to indicate a desire or intent to cover one or more purchases with one or more of reward points, loyalty points, coupons, offers, etc. Thus, the intent behind the purchase is provided.

[0180] In some examples, one or more applications may be configured to determine that it was initiated via one or more tap gestures of a contactless card such that the initiation occurred at 3:51 pm and the transaction was processed or occurred at 3:56 pm in order to verify the user's identity.

[0181] In some examples, one or more applications can be configured to control one or more actions in response to one or more tap gestures. For example, the one or more actions can include collecting rewards, collecting points, determining the most important purchases, determining the cheapest purchases, and / or reconfiguring to another action in real time.

[0182] In some examples, data about the tapping behavior can be collected as a biometric / gesture authentication. For example, a unique identifier that is cryptographically secure and not easily intercepted can be transmitted to one or more backend services. The unique identifier can be configured to look up auxiliary information about the individual. The auxiliary information can include personally identifiable information about the user. In some examples, the auxiliary information can be stored in a contactless card.

[0183] In some examples, the device may include an application to split a bill or check for payment among multiple individuals. For example, each person may have a contactless card and may be a customer of the same issuing financial institution, but this is not required. Each of these individuals may receive a push notification on their device through the application to split the purchase. Other contactless cards may be used instead of accepting only one card tap to indicate payment. In some examples, individuals with different financial institutions may have contactless cards to provide information to initiate one or more payment requests from the card tapping individual.

[0184] The following example use cases describe examples of specific embodiments of the present disclosure. These are intended for explanation purposes only and not for limiting purposes. In one case, a first friend (payer) owes a second friend (payee) a sum of money. The payer wishes to pay using a contactless card through the payee's smartphone (or other device) instead of going to an ATM or needing to redeem through a peer-to-peer application. The payee logs into the appropriate application on his smartphone and selects the payment request option. In response, the application requests authentication through the payee's contactless card. For example, the application outputs a display requesting the payee to tap his contactless card. Once the payee taps his contactless card on the screen of a smartphone with a supported application, the contactless card is read and verified. Next, the application displays a prompt for the payee to tap his contactless card to send the payment. After the payee taps the contactless card, the application reads the card information and transmits the payment request to the payee's card issuer through an associated processor. The card issuer processes the transaction and sends a status indicator of the transaction to the smartphone. Then, the application outputs a status indicator to display the transaction.

[0185] In another example scenario, a credit card customer may receive a new credit card (or debit card, other payment card, or any other card that needs to be activated) in the mail. Rather than activating the card by calling a provided phone number or visiting a website associated with the card issuer, the customer may decide to activate the card through an application on his or her device (e.g., a mobile device such as a smartphone). The customer may select a card activation feature from an application menu displayed on the device's display. The application may prompt the customer to tap his or her credit card on the screen. Upon tapping the credit card on the device's screen, the application may be configured to communicate with a server (such as a card issuer server that activates the customer's card). The application may then display a message indicating successful activation of the card. The card activation is then complete.

[0186] The methods described above may be embodied as instructions on a computer-readable medium or as part of a computing architecture. Figure 7 An embodiment of an exemplary computing architecture 700 suitable for implementing various embodiments as previously described is shown. In one embodiment, computing architecture 700 may include or be implemented as part of an electronic device such as computer 701. No limiting limitations are implemented in this context.

[0187] As used in this application, the terms "system" and "component" are intended to refer to computer-related entities, hardware, a combination of hardware and software, software, or software in execution, examples of which are provided by the exemplary computing architecture 700. For example, a component can be, but is not limited to, a process running on a processor, a processor, a hard drive, multiple storage drives (optical and / or magnetic storage media), an object, an executable file, a thread of execution, a program, and / or a computer. For example, both an application running on a server and a server can be a component. One or more components can reside in a process and / or a thread of execution, and a component can be located on a computer and / or distributed between two or more computers. Further, components can be communicatively coupled to each other through various types of communication media to coordinate operations. Coordination can include unidirectional or bidirectional information exchange. For example, a component can transmit information in the form of a signal transmitted through a communication medium. The information can be implemented as a signal assigned to various signal lines. In this assignment, each message is a signal. However, other embodiments can alternatively adopt data messages. Such data messages can be sent through various connections. Exemplary connections include parallel interfaces, serial interfaces, and bus interfaces.

[0188] The computing architecture 700 includes various common computing elements, such as one or more processors, multi-core processors, coprocessors, memory units, chipsets, controllers, peripherals, interfaces, oscillators, timing devices, video cards, sound cards, multimedia input / output (I / O) components, power supplies, etc. However, embodiments are not limited to implementation by the computing architecture 700.

[0189] like Figure 7 As shown in FIG. 7 , computing architecture 700 includes processor 702, system memory 704, and system bus 706. Processing unit 702 may be any of a variety of commercially available processors, including but not limited to AMD Athlon, Duron, and Opteron processors; ARM application, embedded, and security processors; IBM and Motorola's DragonBall and PowerPC processors; IBM and Sony Cell processors; Intel Celeron, Core (2) Duo, Itanium, Pentium, Xeon, and XScale processors; and similar processors. Dual microprocessors, multi-core processors, and other multi-processor architectures may also be used as processing unit 702.

[0190] The system bus 706 provides an interface for system components, including but not limited to the interface of the system memory 704 to the processing unit 702. The system bus 706 can be any of several types of bus structures, which can also interconnect to a memory bus (with or without a memory controller), a peripheral bus, and a local bus using any of a variety of commercially available bus architectures. Interface adapters can be connected to the system bus 706 through a slot architecture. Example slot architectures can include but are not limited to Accelerated Graphics Port (AGP), Card Bus, (Extended) Industry Standard Architecture ((E)ISA), MicroChannel Architecture (MCA), Peripheral Component Interconnect (Extended) (PCI (X)), PCI Express, Personal Computer Memory Card International Association (PCMCIA), etc.

[0191] The computing architecture 700 may include or implement various articles of manufacture. An article of manufacture may include a computer-readable storage medium for storing logic. Examples of computer-readable storage media may include any tangible media capable of storing electronic data, including volatile or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, etc. Examples of logic may include executable computer program instructions implemented using any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, object-oriented code, visual code, etc. Embodiments may also be implemented at least in part as instructions contained in or on a non-transitory computer-readable medium, which may be read and executed by one or more processors to enable the operations described herein to be performed.

[0192] The system memory 704 may include various types of computer-readable storage media in the form of one or more high-speed memory units, such as read-only memory (ROM), random-access memory (RAM), dynamic random access memory (DRAM), double-data-rate DRAM (DDRAM), synchronous DRAM (SDRAM), static RAM (SRAM), programmable ROM (PROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEROM), flash memory, polymer memory such as ferroelectric polymer memory, bidirectional memory, phase change or ferroelectric memory, silicon-oxide-nitride-oxide-silicon (SONOS) memory, magnetic or optical card, device array such as Redundant Array of Independent Disk (RAID) drive, solid-state memory device (e.g., USB memory, solid state drive) or the like. drive, SSD) and any other type of storage medium suitable for storing information. Figure 7In the illustrated embodiment shown in FIG. 7 , the system memory 704 may include a non-volatile memory 708 and / or a volatile memory 710 . A basic input / output system (BIOS) may be stored in the non-volatile memory 708 .

[0193] The computing architecture 700 may include various types of computer-readable storage media in the form of one or more low-speed storage units, including an internal (or external) hard disk drive (HDD) 712, a magnetic floppy disk drive (FDD) 714 that reads from or writes to a removable disk 716, and an optical drive 718 that reads from or writes to a removable optical disk 720 (e.g., a CD-ROM or DVD). The HDD 712, FDD 714, and optical drive 720 may be connected to the system bus 706 via a HDD interface 722, an FDD interface 724, and an optical drive interface 726, respectively. The HDD interface 722 for external drive implementations may include at least one or both of Universal Serial Bus (USB) and IEEE 694 interface technologies.

[0194] The drives and associated computer-readable media provide volatile and / or nonvolatile storage of data, data structures, computer-executable instructions, etc. For example, a number of program modules may be stored in the drives and memory units 708, 712, including an operating system 728, one or more applications 730, other program modules 732, and program data 734. In one embodiment, the one or more applications 730, other program modules 732, and program data 734 may include, for example, various applications and / or components of the message delivery system 500.

[0195] A user may enter commands and information into the computer 701 through one or more wired / wireless input devices, such as a keyboard 736 and a pointing device, such as a mouse 738. Other input devices may include a microphone, an infrared (IR) remote control, a radio-frequency (RF) remote control, a game pad, a stylus, a card reader, a dongle, a fingerprint reader, a glove, a graphics tablet, a joystick, a keyboard, a retina reader, a touch screen (e.g., a capacitive touch screen, a resistive touch screen, etc.), a trackball, a trackpad, a sensor, a stylus, etc. These and other input devices are typically connected to the processing unit 702 through an input device interface 740 coupled to the system bus 706, but may also be connected through other interfaces, such as a parallel port, an IEEE 694 serial port, a game port, a USB port, an IR port, etc.

[0196] A monitor 742 or other type of display device is also connected to the system bus 706 via an interface, such as a video adapter 744. The monitor 742 may be internal or external to the computer 701. In addition to the monitor 742, computers typically include other peripheral output devices, such as speakers, printers, and the like.

[0197] The computer 701 can operate in a networked environment using logical connections to one or more remote computers (e.g., remote computer 744) via wired and / or wireless communications. The remote computer 744 can be a workstation, server computer, router, personal computer, portable computer, microprocessor-based entertainment appliance, peer device, or other public network node, and typically includes many or all of the elements described relative to the computer 701, although only a memory / storage device 746 is shown for simplicity. The depicted logical connections include wired / wireless connections to a local area network (LAN) 748 and / or a larger network (e.g., a wide area network (WAN) 750). Such LAN and WAN networking environments are common in offices and companies and facilitate enterprise-wide computer networks, such as intranets, all of which can be connected to a global communication network, such as the Internet.

[0198] When used in a LAN networking environment, the computer 701 is connected to the LAN 748 through a wired and / or wireless communication network interface or adapter 752. The adapter 752 may facilitate wired and / or wireless communication to the LAN 748, which may also include a wireless access point disposed thereon for communicating with the wireless functionality of the adapter 752.

[0199] When used in a WAN networking environment, the computer 701 may include a modem 754, or be connected to a communications server on the WAN 750, or have other means for establishing communications on the WAN 750, such as through the Internet. The modem 754 (which may be internal or external to a wired and / or wireless device) is connected to the system bus 706 via the input device interface 740. In a networked environment, program modules or portions thereof depicted relative to the computer 701 may be stored in the remote memory / storage device 746. It should be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.

[0200] The computer 701 is operable to communicate with wired and wireless devices or entities using the IEEE 802 family of standards, such as wireless devices that are operatively arranged to be in wireless communication (e.g., IEEE 802.13 over-the-air modulation technology). This includes at least Wi-Fi (or Wireless Fidelity), WiMax, and Bluetooth wireless technologies, among others. Thus, the communication may be a predefined structure like a conventional network, or simply an ad hoc communication between at least two devices. Wi-Fi networks use radio technologies known as IEEE 802.13x (a, b, g, n, etc.) to provide secure, reliable, and fast wireless connections. Wireless networks can be used to connect computers to each other, to the Internet, and to wired networks (which use media and functionality associated with IEEE 802.3).

[0201] Figure 8 800 is a block diagram depicting an exemplary communication architecture 800 suitable for implementing various embodiments as previously described. The communication architecture 800 includes various common communication elements, such as transmitters, receivers, transceivers, radios, network interfaces, baseband processors, antennas, amplifiers, filters, power supplies, etc. However, the embodiments are not limited to implementation by the communication architecture 800.

[0202] like Figure 8 As shown, the communication architecture 800 includes one or more clients 802 and servers 804. The client 802 may implement the client device 510. The server 804 may implement the server device 526. The client 802 and the server 804 are operatively connected to one or more respective client data stores 806 and server data stores 808 that may be used to store information local to the respective client 802 and server 804, such as cookies and / or associated contextual information.

[0203] Client 802 and server 804 can communicate information between each other using communication framework 810. Communication framework 810 can implement any well-known communication technologies and protocols. Communication framework 810 can be implemented as a packet-switched network (e.g., a public network such as the Internet, a private network such as an intranet, etc.), a circuit-switched network (e.g., a public switched telephone network), or a combination of packet-switched networks and circuit-switched networks (with appropriate gateways and translators).

[0204] The communication framework 810 can implement various network interfaces arranged to accept, communicate and connect to a communication network. The network interface can be regarded as a special form of an input-output interface. The network interface can adopt a connection protocol, including but not limited to direct connection, Ethernet (e.g., thick, thin, twisted pair 10 / 100 / 1000BaseT, etc.), token ring, wireless network interface, cellular network interface, IEEE 802.8ax network interface, IEEE 802.16 network interface, IEEE 802.20 network interface, etc. Further, multiple network interfaces can be used to participate in various communication network types. For example, multiple network interfaces can be used to allow communication through broadcast, multicast and unicast networks. If the processing requirements dictate greater speed and capacity, the distributed network controller architecture can be similarly used for convergence, load balancing, and otherwise increasing the communication bandwidth required by the client 802 and the server 804. The communication network can be any type and combination of wired and / or wireless networks, including but not limited to direct interconnection, secure customized connection, private network (e.g., corporate intranet), public network (e.g., Internet), Personal Area Network (PAN), Local Area Network (LAN), Metropolitan Area Network (MAN), Operating Missions as Nodes on the Internet (OMNI), Wide Area Network (WAN), wireless network, cellular network and other communication networks.

[0205] The components and features of the devices described above may be implemented using any combination of discrete circuit systems, application specific integrated circuits (ASICs), logic gates, and / or single chip architectures. Further, where appropriately applicable, features of the devices may be implemented using microcontrollers, programmable logic arrays, and / or microprocessors, or any combination of the foregoing. Note that hardware, firmware, and / or software elements may be collectively or individually referred to herein as "logic" or "circuitry."

[0206] It should be understood that the exemplary devices shown in the block diagrams described above may represent a functional descriptive example of many potential implementations. Therefore, the division, omission or inclusion of the block functions described in the drawings does not mean that the hardware components, circuits, software and / or elements used to implement these functions must be divided, omitted or included in the embodiments.

[0207] At least one computer-readable storage medium may include instructions that, when executed, cause a system to perform any of the computer-implemented methods described herein.

[0208] Some embodiments may be described using the expression "one embodiment" or "an embodiment" and their derivatives. These terms mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment. The appearance of the phrase "in one embodiment" in different places in the specification does not necessarily all refer to the same embodiment. In addition, unless otherwise stated, the features described above are considered to be usable together in any combination. Therefore, any features discussed separately may be used in combination with each other, unless it is noted that these features are incompatible with each other.

[0209] With general reference to the symbols and nomenclature used herein, the detailed description herein may be presented in terms of program processes executed on a computer or network of computers. These program descriptions and representations are used by those skilled in the art to most effectively convey the substance of their work to others skilled in the art.

[0210] A procedure is here, and generally, conceived to be a self-consistent sequence of operations leading to a desired result. The operations are those requiring physical manipulation of physical quantities. Usually, although not necessarily, these quantities take the form of electrical, magnetic or optical signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, primarily for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. It should be noted, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities.

[0211] Further, the manipulations performed are often referred to by terms such as addition or comparison, which are often associated with mental operations performed by a human operator. In any of the operations described herein that form part of one or more embodiments, such capabilities of a human operator are not required, or in most cases are not desirable. Rather, these operations are machine operations. Useful machines for performing the operations of the various embodiments include general purpose digital computers or similar devices.

[0212] Some embodiments may be described using the expressions "coupled" and "connected" and their derivatives. These terms are not necessarily intended to be synonymous with each other. For example, some embodiments may be described using the terms "connected" and / or "coupled" to indicate that two or more elements are in direct physical or electrical contact with each other. However, the term "coupled" may also mean that two or more elements are not in direct contact with each other, but still cooperate or interact with each other.

[0213] Various embodiments also relate to apparatus or systems for performing these operations. This apparatus may be specially constructed for the desired purpose, or it may include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. The programs presented herein are not inherently related to a particular computer or other apparatus. Various general-purpose machines may be used with programs written according to the teachings of this article, or it may prove convenient to construct more specialized apparatus to perform the desired method steps. The structures required for the various machines will appear from the description given.

[0214] It is emphasized that the abstract of the present disclosure is provided to allow the reader to quickly determine the nature of the technical disclosure. It is submitted with such an understanding that it will not be used to interpret or limit the scope or meaning of the claims. In addition, in the previous detailed description, it can be seen that various features are combined together in a single embodiment for the purpose of simplifying the present disclosure. This disclosure method should not be interpreted as reflecting the intention that the claimed embodiment requires more features than those explicitly stated in each claim. On the contrary, as reflected in the following claims, the subject matter of the invention lies in less than all the features of a single disclosed embodiment. Therefore, the following claims are thus incorporated into the detailed description, wherein each claim is independently as a separate embodiment. In the appended claims, the terms "including" and "in which" are used as the plain English equivalents of the corresponding terms "comprising" and "wherein", respectively. Moreover, the terms "first", "second", "third", etc. are used only as labels and are not intended to impose numerical requirements on their objects.

[0215] What has been described above includes examples of the disclosed architecture. Of course, it is not possible to describe every conceivable combination of components and / or methods, but one of ordinary skill in the art will recognize that many further combinations and permutations are possible. Therefore, the novel architecture is intended to encompass all such changes, modifications, and variations that fall within the spirit and scope of the appended claims.

Claims

1. A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to: accessing information to be encoded, the information relating to a contactless card requested to be authenticated by a recipient; accessing a shared secret stored on the contactless card, the shared secret also being known to the recipient; combining the shared secret and the information to be encoded to generate combined information; Retrieving a first master key and a counter value from a memory of the contactless card; generating a first diversified session key having a first number of bits using the first master key and the counter value; applying a message authentication code (MAC) algorithm to the combined information using the first diversified session key to generate a MAC output; determining whether the first number of bits of the first diversified session key meets security requirements; In response to determining that the first number of bits satisfies the security requirement, transmitting the MAC output to the recipient; as well as In response to determining that the first number of bits does not satisfy the security requirement, the processor: obtaining a second master key from the memory of the contactless card; generating a second diversified session key having a second number of bits using the second master key and the counter value, wherein the first diversified session key and the second diversified session key are different keys; applying an encryption algorithm to the MAC output using the second diversified session key to generate an encrypted output; Determining that a sum of the first number of bits and the second number of bits satisfies the security requirement; as well as The encrypted output is transmitted to the recipient.

2. The non-transitory computer-readable medium storing instructions of claim 1, wherein at least a portion of the MAC output is combined with a random element and the random element is transmitted to the recipient along with the encrypted output.

3. The non-transitory computer-readable medium storing instructions of claim 1, wherein the shared secret is a random number used to initialize the contactless card.

4. The non-transitory computer-readable medium storing instructions of claim 1, wherein the information to be encoded is status information associated with the contactless card.

5. The non-transitory computer-readable medium storing instructions of claim 1, the processor combining the shared secret with the information by multiplying the shared secret with the information.

6. The non-transitory computer-readable medium storing instructions of claim 1, the processor combining the shared secret with the information by concatenating the information with at least a portion of the shared secret.

7. The non-transitory computer-readable medium storing instructions of claim 1, wherein a sum of the first bit number and the second bit number is greater than or equal to the security requirement.

8. A computer implemented method for generating security data from a contactless card, include: accessing information to be encoded, said information relating to said contactless card for which authentication is requested by a recipient; accessing a shared secret stored on the contactless card, the shared secret also being known to the recipient; combining the shared secret and the information to be encoded to generate combined information; Retrieving a first master key and a counter value from a memory of the contactless card; generating a first diversified session key having a first number of bits using the first master key and the counter value; applying a message authentication code (MAC) algorithm to the combined information using the first diversified session key to generate a MAC output; determining that the first number of bits of the first diversified session key does not meet security requirements; In response to determining that the first number of bits of the first diversified session key does not satisfy the security requirement, the method includes: obtaining a second master key from the memory of the contactless card; generating a second diversified session key having a second number of bits using the second master key and the counter value, wherein the first diversified session key and the second diversified session key are different keys; applying an encryption algorithm to at least a portion of the MAC output using the second diversified session key to generate an encrypted output; determining that the sum of the first number of bits and the second number of bits satisfies the security requirement; and The encrypted output is transmitted to the recipient.

9. The method of claim 8, wherein at least a portion of the MAC output is combined with a random element, and the random element is transmitted to the recipient along with the encrypted output.

10. The method of claim 8, wherein the shared secret is a random number used to initialize the contactless card.

11. The method of claim 8, wherein the information to be encoded is status information associated with the contactless card.

12. The method of claim 8, wherein combining the shared secret with the information comprises multiplying the shared secret with the information.

13. The method of claim 8, wherein combining the shared secret with the information comprises concatenating the information with at least a portion of the shared secret.

14. The method according to claim 8, wherein a sum of the first number of bits and the second number of bits is greater than or equal to the security requirement.

15. A contactless card, the contactless card include: a memory for storing the first master key, the second master key, the counter value, and a shared secret shared with the recipient; a processor configured to execute an encryption procedure on information to be encoded, the information being related to the contactless card requested to be authenticated by the recipient, and the processor, when executing the encryption procedure: combining the information to be encoded with the shared secret to generate combined information, obtaining the first master key, the second master key and the counter value, generating a first diversified session key having a first number of bits using the first master key and the counter value, applying a message authentication code (MAC) algorithm to the combined information using the first diversified session key to generate a MAC output, determining whether the first number of bits of the first diversified session key meets security requirements, In response to the first number of bits satisfying the security requirement, transmitting the MAC output to the receiver via a transmitter, In response to the first number of bits not satisfying the security requirement, the processor: generating a second diversified session key having a second number of bits using the second master key and the counter value, wherein the first diversified session key and the second diversified session key are different keys, applying an encryption algorithm to the MAC output using the second diversified session key, to generate the encrypted output, determining that the sum of the first number of bits and the second number of bits satisfies the security requirement, and The encrypted output is transmitted to the recipient via the transmitter.

16. The contactless card of claim 15, wherein at least a portion of the MAC output is combined with a random element, and the random element is transmitted to the recipient along with at least a portion of the MAC output.

17. The contactless card of claim 15, wherein the shared secret is a random number used to initialize the contactless card.

18. The contactless card of claim 15, the processor combines the shared secret with the information by multiplying the shared secret with the information.

19. The contactless card of claim 15, the processor combines the shared secret with the information by concatenating the information with at least a portion of the shared secret.

20. The contactless card of claim 15, wherein a sum of the first number of bits and the second number of bits is greater than or equal to the security requirement.

Citation Information

Patent Citations

  • Method and apparatus for encryption and pass-through handling of confidential information in software applications

    CA2550698A1

  • Implementation of an integrity-protected secure storage

    US20060259790A1

  • Encrypting and storing data

    US20160156464A1

  • Method for secure communication from chip card and system for performing the same

    US7805611B1