[go: up one dir, main page]

CN114697898A - Digital car key processing method, sharing method, device, SIM card and vehicle - Google Patents

Digital car key processing method, sharing method, device, SIM card and vehicle Download PDF

Info

Publication number
CN114697898A
CN114697898A CN202011471071.1A CN202011471071A CN114697898A CN 114697898 A CN114697898 A CN 114697898A CN 202011471071 A CN202011471071 A CN 202011471071A CN 114697898 A CN114697898 A CN 114697898A
Authority
CN
China
Prior art keywords
key
sim card
digital
vehicle
nfc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011471071.1A
Other languages
Chinese (zh)
Other versions
CN114697898B (en
Inventor
傅镜艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011471071.1A priority Critical patent/CN114697898B/en
Publication of CN114697898A publication Critical patent/CN114697898A/en
Application granted granted Critical
Publication of CN114697898B publication Critical patent/CN114697898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention provides a digital car key processing method, a sharing device, an SIM card and a car, wherein a digital car key program is preset in the SIM card; the method comprises the following steps: negotiating with a target vehicle to determine a first shared key and establish a secure channel based on Near Field Communication (NFC); the first shared key is used for encrypting and decrypting the digital vehicle key related information transmitted between the SIM card and the target vehicle; the embodiment of the invention adopts the SIM card of the mobile terminal as the safety carrier of the digital car key, the SIM card can be conveniently switched among different brands of terminals, when a user changes the mobile terminal, the car key service can be normally used by inserting the SIM card, and the moving threshold of the car key after the user changes the machine is reduced; further, the establishment of a safety channel between the SIM card and the vehicle is realized through NFC, the safety of data transmission can be ensured, and one-time pad is realized.

Description

数字车钥匙处理方法、共享方法、装置、SIM卡及车辆Digital car key processing method, sharing method, device, SIM card and vehicle

技术领域technical field

本发明涉及通信技术领域,尤其是指一种数字车钥匙处理方法、共享方法、装置、SIM卡及车辆。The present invention relates to the field of communication technology, in particular to a digital car key processing method, sharing method, device, SIM card and vehicle.

背景技术Background technique

随着车辆智能化、网联化的深入,以便捷生活为核心目标驱动,数字车钥匙应运而生。数字车钥匙是将实体车钥匙虚拟成数字身份存放在移动终端中,通过移动终端和车辆间的通信认证实现开启/锁定车门、启动汽车等控制操作,已成为车联网的关键性基础设施之一。数字车钥匙具备便携性、易分享、低成本、炫酷的用户体验。With the deepening of vehicle intelligence and networking, driven by the core goal of convenient life, digital car keys came into being. The digital car key is to virtualize the physical car key into a digital identity and store it in the mobile terminal, and realize control operations such as opening/locking the door and starting the car through the communication authentication between the mobile terminal and the vehicle. It has become one of the key infrastructures of the Internet of Vehicles. . Digital car keys are portable, easy to share, low-cost, and have a cool user experience.

目前主流的移动终端车钥匙实现方案有两类:At present, there are two types of mainstream mobile terminal car key implementation solutions:

第一类是软件实现方案:将数字车钥匙(公私钥对)存放在移动终端的应用程序(APP)中,通过移动终端的蓝牙功能和车辆进行通信,向车辆发送身份验证信息(签名信息),若车辆验证通过则实现开锁、启动等功能。The first type is the software implementation scheme: store the digital car key (public and private key pair) in the application program (APP) of the mobile terminal, communicate with the vehicle through the Bluetooth function of the mobile terminal, and send the identity verification information (signature information) to the vehicle. , if the vehicle passes the verification, the functions such as unlocking and starting will be realized.

第二类是移动终端厂商主导的eSE(embedded Secure Element,内嵌安全芯片)方案:将数字车钥匙(公私钥对)存放在手机终端的移动终端中,通过移动终端内置的近场通信(Near Field Communication,NFC)芯片和车辆进行通信,向车辆发送身份验证信息(签名信息),若车辆验证通过则实现开锁、启动等功能。同时,通过车钥匙APP车主可以将数字车钥匙分享给亲友。The second type is the eSE (embedded Secure Element, embedded security chip) solution led by mobile terminal manufacturers: the digital car key (public and private key pair) is stored in the mobile terminal of the mobile terminal, and the near field communication (Near Field Communication) built in the mobile terminal is used. Field Communication, NFC) chip communicates with the vehicle, sends the identity verification information (signature information) to the vehicle, and realizes functions such as unlocking and starting if the vehicle passes the verification. At the same time, the car owner can share the digital car key with relatives and friends through the car key APP.

其中移动终端车钥匙的分享简易流程如下:The simple process of sharing the mobile terminal car key is as follows:

车主通过移动终端中车钥匙APP向后台服务器发起分享申请,后台服务器根据车主设定的权限信息为车主的亲友生成临时车钥匙数据,然后推送给车主的亲友,亲友通过车钥匙APP获取到临时车钥匙后将其存储在手机的eSE中。The car owner initiates a sharing application to the backend server through the car key APP in the mobile terminal. The backend server generates temporary car key data for the car owner's relatives and friends according to the permission information set by the car owner, and then pushes it to the car owner's relatives and friends. Relatives and friends can obtain the temporary car through the car key APP. After the key is stored in the eSE of the phone.

综上,第一类方案存在如下问题:To sum up, the first type of scheme has the following problems:

车钥匙公私钥存放在网络环境中,安全级别不高,有被窃取的风险;一旦移动终端无电关机,则无法启用蓝牙连接使用车钥匙功能。The public and private keys of the car key are stored in the network environment, the security level is not high, and there is a risk of being stolen; once the mobile terminal is powered off, the Bluetooth connection cannot be enabled to use the car key function.

而第二类方案存在如下问题:The second type of solution has the following problems:

由于目前移动终端厂商的车钥匙eSE方案均为私有实现,从用户角度看,移动终端更新换代快,eSE车钥匙方案不支持跨手机品牌迁移,以及跨手机品牌分享,用户选择某家移动终端的车钥匙就意味着要一直使用该厂商的移动终端。车钥匙分享过程中要求车主和其钥匙分享对象(如亲友)的终端必须接入互联网,即仅支持在线钥匙分享。当在无网络的环境中,不能支持车钥匙分享。Since the current car key eSE solutions of mobile terminal manufacturers are all privately implemented, from the user's point of view, the replacement of mobile terminals is fast. The eSE car key solution does not support cross-mobile phone brand migration and cross-mobile phone brand sharing. The car key means that the manufacturer's mobile terminal must be used all the time. In the process of car key sharing, the terminal of the car owner and the key sharing object (such as relatives and friends) must be connected to the Internet, that is, only online key sharing is supported. When there is no network environment, car key sharing cannot be supported.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供一种数字车钥匙处理方法、共享方法、装置、SIM卡及车辆,以解决现有的移动终端车钥匙不安全的问题。The purpose of the embodiments of the present invention is to provide a digital car key processing method, a sharing method, a device, a SIM card and a vehicle, so as to solve the problem of insecure car keys in existing mobile terminals.

为了解决上述问题,本发明实施例提供一种数字车钥匙的处理方法,由用户识别模块SIM卡执行,SIM卡中预置数字车钥匙程序;所述方法包括:In order to solve the above problems, an embodiment of the present invention provides a method for processing a digital car key, which is executed by a user identification module SIM card, and a digital car key program is preset in the SIM card; the method includes:

基于近场通信NFC,与目标车辆协商确定第一共享密钥并建立安全通道;Based on near field communication NFC, negotiate with the target vehicle to determine the first shared key and establish a secure channel;

通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Encryption and decryption processing is performed on the digital vehicle key related information transmitted between the SIM card and the target vehicle by using the first shared key.

其中,基于近场通信NFC,与目标车辆协商确定第一共享密钥,包括:Wherein, based on the near field communication NFC, negotiating with the target vehicle to determine the first shared key, including:

根据第一椭圆加密曲线,生成第一临时公钥和第一临时私钥;generating a first temporary public key and a first temporary private key according to the first elliptic encryption curve;

基于NFC,向目标车辆发送所述第一临时公钥;以由目标车辆根据第一临时公钥和第二临时私钥确定第一共享密钥;其中,第二临时私钥由目标车辆根据所述第一椭圆加密曲线生成;Based on NFC, the first temporary public key is sent to the target vehicle; so that the target vehicle determines the first shared key according to the first temporary public key and the second temporary private key; wherein the second temporary private key is determined by the target vehicle according to the generating the first elliptic encryption curve;

接收目标车辆基于NFC发送的所述目标车辆根据所述第一椭圆加密曲线生成的第二临时公钥;receiving a second temporary public key generated by the target vehicle according to the first elliptic encryption curve and sent by the target vehicle based on NFC;

根据所述第一临时私钥和所述第二临时公钥,确定所述第一共享密钥。The first shared key is determined according to the first temporary private key and the second temporary public key.

其中,所述方法还包括:Wherein, the method also includes:

SIM卡在确定所述第一共享密钥之后,向所述目标车辆发送第一共享密钥协商成功消息;或者,接收目标车辆在确定所述第一共享密钥之后向所述SIM卡发送的第一共享密钥协商成功消息;After determining the first shared key, the SIM card sends a first shared key negotiation success message to the target vehicle; or, receiving a message sent by the target vehicle to the SIM card after determining the first shared key The first shared key negotiation success message;

根据所述第一共享密钥协商成功消息,确定安全通道建立成功。According to the first shared key negotiation success message, it is determined that the secure channel is successfully established.

其中,通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理,包括:Wherein, performing encryption and decryption processing on the digital car key related information transmitted between the SIM card and the target vehicle through the first shared key, including:

生成数字车钥匙公钥和数字车钥匙私钥;Generate digital car key public key and digital car key private key;

通过第一共享密钥对所述数字车钥匙公钥进行加密,并将加密数字车钥匙公钥通过NFC发送给所述目标车辆;Encrypting the digital car key public key by using the first shared key, and sending the encrypted digital car key public key to the target vehicle through NFC;

接收目标车辆通过NFC反馈的配对结果;其中,在目标车辆利用所述第一共享密钥对加密数字车钥匙公钥进行解密得到并存储数字车钥匙公钥的情况下,配对结果为配对成功;否则,配对结果为配对失败。Receive the pairing result fed back by the target vehicle through NFC; wherein, when the target vehicle uses the first shared key to decrypt the encrypted digital car key public key to obtain and stores the digital car key public key, the pairing result is successful pairing; Otherwise, the pairing result is pairing failure.

其中,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理,还包括:Wherein, when the vehicle stores the public key of the digital car key corresponding to the SIM card, encrypting and decrypting the relevant information of the digital car key transmitted between the SIM card and the target vehicle through the first shared key, further comprising:

通过第一共享密钥对SIM卡的身份标识进行加密,通过NFC向目标车辆发送加密后的身份标识;Encrypt the identity of the SIM card through the first shared key, and send the encrypted identity to the target vehicle through NFC;

接收目标车辆在利用第一共享密钥验证SIM卡身份后,通过NFC发送的加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;receiving encrypted random challenge information sent by the target vehicle through NFC after verifying the identity of the SIM card using the first shared key; the random challenge information is encrypted by the first shared key;

利用所述第一共享密钥对加密随机挑战信息进行解密,得到随机挑战信息;Decrypt the encrypted random challenge information using the first shared key to obtain random challenge information;

使用数字车钥匙私钥对所述随机挑战信息进行签名生成第一密文信息,通过NFC将第一密文信息发送至目标车辆;Using the digital car key private key to sign the random challenge information to generate first ciphertext information, and sending the first ciphertext information to the target vehicle through NFC;

接收目标车辆通过NFC反馈的执行结果;其中,在目标车辆根据数字车钥匙私钥对应的数字车钥匙公钥对第一密文信息验证通过的情况下,所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Receive the execution result fed back by the target vehicle through NFC; wherein, in the case that the target vehicle passes the verification of the first ciphertext information according to the digital car key public key corresponding to the digital car key private key, the execution result is that the door is opened or the door is opened. The locking is completed; otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

其中,在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,接收通过NFC发送的加密随机挑战信息之前,所述方法还包括:Wherein, in the case where the vehicle does not store the public key of the digital car key corresponding to the SIM card, before receiving the encrypted random challenge information sent through NFC, the method further includes:

接收目标车辆通过NFC发送的授权验证请求;Receive the authorization verification request sent by the target vehicle through NFC;

根据所述授权验证请求,通过NFC向目标车辆发送已与车辆配对的SIM卡的签名信息,以由目标车辆对利用已与车辆配对的SIM卡的数字车钥匙公钥对签名信息进行解密,得到所述SIM卡对应的数字车钥匙公钥并存储。According to the authorization verification request, the signature information of the SIM card paired with the vehicle is sent to the target vehicle through NFC, so that the target vehicle decrypts the signature information using the digital car key public key of the SIM card paired with the vehicle, and obtains The public key of the digital car key corresponding to the SIM card is stored.

本发明实施例还提供一种数字车钥匙的处理方法,由目标车辆执行,所述目标车辆中预置NFC读卡模块,所述方法包括:An embodiment of the present invention also provides a method for processing a digital car key, which is executed by a target vehicle, where an NFC card reader module is preset in the target vehicle, and the method includes:

基于NFC读卡模块,与SIM卡协商确定第一共享密钥并建立安全通道;Based on the NFC card reader module, negotiate with the SIM card to determine the first shared key and establish a secure channel;

通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Encryption and decryption processing is performed on the digital vehicle key related information transmitted between the SIM card and the target vehicle by using the first shared key.

其中,基于NFC读卡模块,与SIM卡协商确定第一共享密钥,包括:Wherein, based on the NFC card reader module, negotiate with the SIM card to determine the first shared key, including:

接收SIM卡基于NFC发送的第一临时公钥;其中,所述SIM卡根据第一椭圆加密曲线生成第一临时公钥和第一临时私钥;Receive the first temporary public key sent by the SIM card based on NFC; wherein, the SIM card generates a first temporary public key and a first temporary private key according to the first elliptic encryption curve;

根据所述第一椭圆加密曲线,生成第二临时公钥和第二临时私钥;generating a second temporary public key and a second temporary private key according to the first elliptic encryption curve;

根据所述第一临时公钥和第二临时私钥确定所述第一共享密钥;determining the first shared key according to the first temporary public key and the second temporary private key;

基于NFC向SIM卡发送所述第二临时公钥;以由所述SIM卡根据所述第一临时私钥和第二临时公钥确定所述第一共享密钥。Sending the second temporary public key to the SIM card based on NFC; so that the SIM card determines the first shared key according to the first temporary private key and the second temporary public key.

其中,所述方法还包括:Wherein, the method also includes:

目标车辆在确定所述第一共享密钥之后向所述SIM卡发送第一共享密钥协商成功消息;或者,接收SIM卡在确定所述第一共享密钥之后向所述目标车辆发送的第一共享密钥协商成功消息;After determining the first shared key, the target vehicle sends a first shared key negotiation success message to the SIM card; or, receiving a first message sent by the SIM card to the target vehicle after determining the first shared key. A shared key negotiation success message;

根据所述第一共享密钥协商成功消息,确定安全通道建立成功。According to the first shared key negotiation success message, it is determined that the secure channel is successfully established.

其中,通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理,包括:Wherein, performing encryption and decryption processing on the digital car key related information transmitted between the SIM card and the target vehicle through the first shared key, including:

接收SIM卡通过NFC发送的加密数字车钥匙公钥;Receive the encrypted digital car key public key sent by the SIM card through NFC;

利用所述第一共享密钥对所述加密数字车钥匙公钥进行解密;Decrypt the encrypted digital vehicle key public key by using the first shared key;

在成功解密得到SIM卡的数字车钥匙公钥的情况下,存储所述数字车钥匙公钥并向SIM卡发送配对结果,所述配对结果为配对成功;否则,向SIM卡发送配对失败的配对结果。In the case of successfully decrypting the digital car key public key of the SIM card, store the digital car key public key and send the pairing result to the SIM card, and the pairing result is successful pairing; otherwise, send the pairing failed pairing to the SIM card result.

其中,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理,还包括:Wherein, when the vehicle stores the public key of the digital car key corresponding to the SIM card, encrypting and decrypting the relevant information of the digital car key transmitted between the SIM card and the target vehicle through the first shared key, further comprising:

通过NFC接收SIM卡发送的加密后的身份标识;Receive the encrypted identification sent by the SIM card through NFC;

利用第一共享密钥对加密后的身份标识进行解密和验证,并通过NFC向SIM卡发送加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;Use the first shared key to decrypt and verify the encrypted identity, and send encrypted random challenge information to the SIM card through NFC; the random challenge information is encrypted by the first shared key;

接收SIM卡利用第一共享密钥解密得到随机挑战信息后,通过NFC发送的第一密文信息;所述第一密文信息为SIM卡使用数字车钥匙私钥对所述随机挑战信息进行签名得到;Receive the first ciphertext information sent by NFC after the SIM card decrypts the random challenge information with the first shared key; the first ciphertext information is that the SIM card uses the digital car key private key to sign the random challenge information get;

利用数字车钥匙公钥对第一密文信息进行验证,并向SIM卡发送执行结果;在验证通过的情况下,开启车门或锁定车门,且所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Use the digital car key public key to verify the first ciphertext information, and send the execution result to the SIM card; in the case of passing the verification, open the door or lock the door, and the execution result is that the door is opened or the door is locked. Otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

其中,在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,通过NFC向SIM卡发送加密随机挑战信息之前,所述方法还包括:Wherein, in the case where the vehicle does not store the public key of the digital car key corresponding to the SIM card, before sending the encrypted random challenge information to the SIM card through NFC, the method further includes:

通过NFC向SIM卡发送授权验证请求;Send an authorization verification request to the SIM card through NFC;

接收所述SIM卡根据所述授权验证请求发送的已与车辆配对的SIM卡的签名信息;所述已与车辆配对的SIM卡的签名信息由已与车辆配对的SIM卡根据其对应的数字车钥匙私钥对所述SIM卡的数字车钥匙公钥进行签名生成;Receive the signature information of the SIM card paired with the vehicle sent by the SIM card according to the authorization verification request; the signature information of the SIM card paired with the vehicle is determined by the SIM card paired with the vehicle according to its corresponding digital vehicle The key private key performs signature generation on the digital car key public key of the SIM card;

根据已与车辆配对的SIM卡对应的数字车钥匙公钥对所述签名信息进行验证,若验证通过,存储所述SIM卡对应的数字车钥匙公钥。The signature information is verified according to the public key of the digital car key corresponding to the SIM card that has been paired with the vehicle, and if the verification is passed, the public key of the digital car key corresponding to the SIM card is stored.

本发明实施例还提供一种数字车钥匙共享方法,由第一SIM卡执行,第一SIM卡中预置数字车钥匙程度;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;所述方法包括:An embodiment of the present invention also provides a method for sharing a digital car key, which is performed by a first SIM card, where the digital car key level is preset in the first SIM card; and the first digital car key private key and the first digital key of the first SIM card The vehicle key public key is successfully paired with the target vehicle; the method includes:

基于NFC与第二SIM卡建立NFC连接;其中,第二SIM卡中分别预置数字车钥匙程序;An NFC connection is established with the second SIM card based on NFC; wherein, the digital car key program is respectively preset in the second SIM card;

接收第二SIM卡生成第二数字车钥匙公钥和第二数字车钥匙私钥之后,通过NFC连接发送的第一请求;第一请求中携带所述第二数字车钥匙公钥;receiving a first request sent through the NFC connection after the second SIM card generates the second digital car key public key and the second digital car key private key; the first request carries the second digital car key public key;

利用所述第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息,并通过NFC连接将签名信息发送给第二SIM卡;Use the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information, and send the signature information to the second SIM card through the NFC connection;

接收所述第二SIM卡在接收到所述签名信息后反馈的接收结果,所述接收结果用于指示第二SIM卡成功接收所述签名信息。Receive a reception result fed back by the second SIM card after receiving the signature information, where the reception result is used to indicate that the second SIM card successfully receives the signature information.

其中,所述方法还包括:Wherein, the method also includes:

第一SIM卡和第二SIM卡基于NFC协商确定第二共享密钥并建立NFC连接;The first SIM card and the second SIM card determine the second shared key based on NFC negotiation and establish an NFC connection;

其中,通过所述第二共享密钥对第一SIM卡和第二SIM卡之间传输的信息进行加解密处理。Wherein, the information transmitted between the first SIM card and the second SIM card is encrypted and decrypted by the second shared key.

本发明实施例还提供一种数字车钥匙共享方法,由第二SIM卡执行,所述方法还包括:An embodiment of the present invention further provides a method for sharing a digital car key, which is executed by a second SIM card, and the method further includes:

基于NFC与第一SIM卡建立NFC连接,其中,第一SIM卡和第二SIM卡中分别预置数字车钥匙程序;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;An NFC connection is established with the first SIM card based on NFC, wherein the digital car key program is preset in the first SIM card and the second SIM card respectively; and the first digital car key private key and the first digital car key of the first SIM card The public key is successfully paired with the target vehicle;

生成第二数字车钥匙公钥和第二数字车钥匙私钥,并通过NFC向第一SIM卡发送第一请求;第一请求中携带所述第二数字车钥匙公钥;generating a second digital car key public key and a second digital car key private key, and sending a first request to the first SIM card through NFC; the first request carries the second digital car key public key;

接收第一SIM卡利用第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息;Receiving the first SIM card and using the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information;

向第一SIM卡发送接收结果,所述接收结果用于指示所述第二SIM卡成功接收所述签名信息。Send a reception result to the first SIM card, where the reception result is used to indicate that the second SIM card successfully receives the signature information.

其中,所述方法还包括:Wherein, the method also includes:

第二SIM卡和第一SIM卡基于NFC协商确定第二共享密钥并建立NFC连接;The second SIM card and the first SIM card determine a second shared key based on NFC negotiation and establish an NFC connection;

其中,通过所述第二共享密钥对第二SIM卡和第一SIM卡之间传输的信息进行加解密处理。Wherein, the information transmitted between the second SIM card and the first SIM card is encrypted and decrypted by the second shared key.

其中,若目标车辆存储了第二数字车钥匙公钥;所述方法还包括:Wherein, if the target vehicle stores the second digital vehicle key public key; the method further includes:

通过NFC向目标车辆发送身份标识;Send identification to the target vehicle via NFC;

接收目标车辆在验证第二SIM卡身份后,通过NFC发送的随机挑战信息;Receive random challenge information sent by the target vehicle through NFC after verifying the identity of the second SIM card;

使用第二数字车钥匙私钥对所述随机挑战信息进行签名生成第二密文信息,通过NFC将第二密文信息发送至目标车辆;Using the private key of the second digital car key to sign the random challenge information to generate second ciphertext information, and sending the second ciphertext information to the target vehicle through NFC;

接收目标车辆通过NFC反馈的执行结果;其中,在目标车辆根据第二数字车钥匙公钥对第二密文信息验证通过的情况下,所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Receive the execution result fed back by the target vehicle through NFC; wherein, in the case that the target vehicle passes the verification of the second ciphertext information according to the second digital car key public key, the execution result is that the door is opened or the door is locked; otherwise, The execution result is that the vehicle door fails to open or the vehicle door fails to lock.

其中,在车辆未存储第二数字车钥匙公钥的情况下,接收通过NFC发送的随机挑战信息之前,所述方法还包括:Wherein, in the case where the vehicle does not store the public key of the second digital vehicle key, before receiving the random challenge information sent through NFC, the method further includes:

接收目标车辆通过NFC发送的授权验证请求;Receive the authorization verification request sent by the target vehicle through NFC;

根据所述授权验证请求,通过NFC向目标车辆发送第一SIM卡的签名信息,以由目标车辆对利用第一SIM卡的第一数字车钥匙公钥对签名信息进行解密,得到第二SIM卡的第二数字车钥匙公钥并存储。According to the authorization verification request, the signature information of the first SIM card is sent to the target vehicle through NFC, so that the target vehicle decrypts the signature information using the public key of the first digital car key of the first SIM card to obtain the second SIM card The second digital car key public key and stored.

本发明实施例还提供一种数字车钥匙的处理装置,应用于用户识别模块SIM卡,SIM卡中预置数字车钥匙程序;所述装置包括:The embodiment of the present invention also provides a processing device for a digital car key, which is applied to a user identification module SIM card, and a digital car key program is preset in the SIM card; the device includes:

第一建立模块,用于基于近场通信NFC,与目标车辆协商确定第一共享密钥并建立安全通道;a first establishment module, configured to negotiate with the target vehicle to determine the first shared key and establish a secure channel based on the near field communication NFC;

第一处理模块,用于通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。The first processing module is configured to perform encryption and decryption processing on the digital car key related information transmitted between the SIM card and the target vehicle by using the first shared key.

本发明实施例还提供一种SIM卡,包括处理器和收发器,所述收发器在处理器的控制下接收和发送数据,其特征在于,所述处理器用于执行以下操作:An embodiment of the present invention further provides a SIM card, including a processor and a transceiver, and the transceiver receives and transmits data under the control of the processor, wherein the processor is configured to perform the following operations:

基于近场通信NFC,与目标车辆协商确定第一共享密钥并建立安全通道;Based on near field communication NFC, negotiate with the target vehicle to determine the first shared key and establish a secure channel;

通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Encryption and decryption processing is performed on the digital vehicle key related information transmitted between the SIM card and the target vehicle by using the first shared key.

本发明实施例还提供一种数字车钥匙的处理装置,应用于目标车辆,其特征在于,所述目标车辆中预置NFC读卡模块,所述装置包括:An embodiment of the present invention further provides a processing device for a digital car key, which is applied to a target vehicle, characterized in that an NFC card reader module is preset in the target vehicle, and the device includes:

第二建立模块,用于基于NFC读卡模块,与SIM卡协商确定第一共享密钥并建立安全通道;The second establishment module is used to negotiate with the SIM card to determine the first shared key and establish a secure channel based on the NFC card reader module;

第二处理模块,用于通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。The second processing module is configured to perform encryption and decryption processing on the digital car key related information transmitted between the SIM card and the target vehicle by using the first shared key.

本发明实施例还提供一种目标车辆,包括处理器和收发器,所述收发器在处理器的控制下接收和发送数据,其特征在于,所述处理器用于执行以下操作:An embodiment of the present invention further provides a target vehicle, including a processor and a transceiver, wherein the transceiver receives and transmits data under the control of the processor, wherein the processor is configured to perform the following operations:

基于NFC读卡模块,与SIM卡协商确定第一共享密钥并建立安全通道;Based on the NFC card reader module, negotiate with the SIM card to determine the first shared key and establish a secure channel;

通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Encryption and decryption processing is performed on the digital vehicle key related information transmitted between the SIM card and the target vehicle by using the first shared key.

本发明实施例还提供一种数字车钥匙共享装置,应用于第一SIM卡,第一SIM卡中预置数字车钥匙程度;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;所述装置包括:An embodiment of the present invention further provides a digital car key sharing device, which is applied to a first SIM card, where a digital car key level is preset in the first SIM card; and the first digital car key private key and the first digital key of the first SIM card The vehicle key public key is successfully paired with the target vehicle; the device includes:

第一连接模块,用于基于NFC与第二SIM卡建立NFC连接;其中,第二SIM卡中分别预置数字车钥匙程序;The first connection module is used to establish an NFC connection with the second SIM card based on NFC; wherein, the digital car key program is respectively preset in the second SIM card;

第一请求接收模块,用于接收第二SIM卡生成第二数字车钥匙公钥和第二数字车钥匙私钥之后,通过NFC连接发送的第一请求;第一请求中携带所述第二数字车钥匙公钥;The first request receiving module is used to receive the first request sent through the NFC connection after the second SIM card generates the second digital car key public key and the second digital car key private key; the first request carries the second number car key public key;

签名发送模块,用于利用所述第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息,并通过NFC连接将签名信息发送给第二SIM卡;A signature sending module, configured to use the private key of the first digital car key of the first SIM card to sign the public key of the second digital car key to generate signature information, and send the signature information to the second SIM card through the NFC connection ;

结果接收模块,用于接收所述第二SIM卡在接收到所述签名信息后反馈的接收结果,所述接收结果用于指示第二SIM卡成功接收所述签名信息。A result receiving module, configured to receive a reception result fed back by the second SIM card after receiving the signature information, where the reception result is used to indicate that the second SIM card has successfully received the signature information.

本发明实施例还提供一种SIM卡,所述SIM卡为第一SIM卡,第一SIM卡中预置数字车钥匙程度;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;所述SIM卡还包括处理器和收发器,所述收发器在处理器的控制下接收和发送数据,其特征在于,所述处理器用于执行以下操作:An embodiment of the present invention also provides a SIM card, the SIM card is a first SIM card, and the first SIM card is preset with a digital car key level; and the first digital car key private key and the first digital key of the first SIM card The vehicle key public key is successfully paired with the target vehicle; the SIM card further includes a processor and a transceiver, and the transceiver receives and transmits data under the control of the processor, wherein the processor is used to perform the following operations:

基于NFC与第二SIM卡建立NFC连接;其中,第二SIM卡中分别预置数字车钥匙程序;An NFC connection is established with the second SIM card based on NFC; wherein, the digital car key program is respectively preset in the second SIM card;

接收第二SIM卡生成第二数字车钥匙公钥和第二数字车钥匙私钥之后,通过NFC连接发送的第一请求;第一请求中携带所述第二数字车钥匙公钥;receiving a first request sent through the NFC connection after the second SIM card generates the second digital car key public key and the second digital car key private key; the first request carries the second digital car key public key;

利用所述第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息,并通过NFC连接将签名信息发送给第二SIM卡;Use the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information, and send the signature information to the second SIM card through the NFC connection;

接收所述第二SIM卡在接收到所述签名信息后反馈的接收结果,所述接收结果用于指示第二SIM卡成功接收所述签名信息。Receive a reception result fed back by the second SIM card after receiving the signature information, where the reception result is used to indicate that the second SIM card successfully receives the signature information.

本发明实施例还提供一种数字车钥匙共享装置,应用于第二SIM卡,所述装置包括:An embodiment of the present invention further provides a digital car key sharing device, which is applied to a second SIM card, and the device includes:

第二连接模块,用于基于NFC与第一SIM卡建立NFC连接,其中,第一SIM卡和第二SIM卡中分别预置数字车钥匙程序;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;The second connection module is used to establish an NFC connection with the first SIM card based on NFC, wherein the digital car key program is preset in the first SIM card and the second SIM card respectively; and the first digital car key of the first SIM card is private The key and the public key of the first digital car key are successfully paired with the target vehicle;

第一请求发送模块,用于生成第二数字车钥匙公钥和第二数字车钥匙私钥,并通过NFC向第一SIM卡发送第一请求;第一请求中携带所述第二数字车钥匙公钥;a first request sending module for generating a second digital car key public key and a second digital car key private key, and sending a first request to the first SIM card through NFC; the first request carries the second digital car key public key;

签名接收模块,用于接收第一SIM卡利用第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息;a signature receiving module, configured to receive the first SIM card to sign the second digital car key public key with the first SIM card's first digital car key private key to generate signature information;

结果发送模块,用于向第一SIM卡发送接收结果,所述接收结果用于指示所述第二SIM卡成功接收所述签名信息。A result sending module, configured to send a reception result to the first SIM card, where the reception result is used to indicate that the second SIM card has successfully received the signature information.

本发明实施例还提供一种SIM卡,所述SIM卡为第二SIM卡,所述SIM卡还包括处理器和收发器,所述收发器在处理器的控制下接收和发送数据,其特征在于,所述处理器用于执行以下操作:An embodiment of the present invention further provides a SIM card, the SIM card is a second SIM card, the SIM card further includes a processor and a transceiver, and the transceiver receives and transmits data under the control of the processor. That is, the processor is configured to perform the following operations:

基于NFC与第一SIM卡建立NFC连接,其中,第一SIM卡和第二SIM卡中分别预置数字车钥匙程序;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;An NFC connection is established with the first SIM card based on NFC, wherein the digital car key program is preset in the first SIM card and the second SIM card respectively; and the first digital car key private key and the first digital car key of the first SIM card The public key is successfully paired with the target vehicle;

生成第二数字车钥匙公钥和第二数字车钥匙私钥,并通过NFC向第一SIM卡发送第一请求;第一请求中携带所述第二数字车钥匙公钥;generating a second digital car key public key and a second digital car key private key, and sending a first request to the first SIM card through NFC; the first request carries the second digital car key public key;

接收第一SIM卡利用第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息;Receiving the first SIM card and using the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information;

向第一SIM卡发送接收结果,所述接收结果用于指示所述第二SIM卡成功接收所述签名信息。Send a reception result to the first SIM card, where the reception result is used to indicate that the second SIM card successfully receives the signature information.

本发明实施例还提供一种通信设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序;其特征在于,所述处理器执行所述程序时实现如上所述的数字车钥匙的处理方法;或者,所述处理器执行所述程序时实现如上所述的数字车钥匙共享方法。An embodiment of the present invention further provides a communication device, including a memory, a processor, and a program stored on the memory and running on the processor; it is characterized in that the processor implements the above when executing the program The method for processing a digital car key; or, when the processor executes the program, the above-mentioned method for sharing a digital car key is implemented.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如上所述的数字车钥匙的处理方法中的步骤;或者,该程序被处理器执行时实现如上所述的数字车钥匙共享方法中的步骤。Embodiments of the present invention further provide a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps in the above-mentioned method for processing a digital car key are implemented; When the program is executed by the processor, the steps in the digital vehicle key sharing method as described above are implemented.

本发明的上述技术方案至少具有如下有益效果:The above-mentioned technical scheme of the present invention has at least the following beneficial effects:

本发明实施例的数字车钥匙的处理方法、装置、SIM卡及车辆中,采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;进一步通过NFC实现SIM卡和车辆之间安全通道的建立,能够保证数据传输的安全性,实现一次一密。In the processing method, device, SIM card and vehicle of the digital car key according to the embodiments of the present invention, the SIM card of the mobile terminal is used as the safe carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. After inserting the SIM card into the terminal, the car key service can be used normally, which reduces the migration threshold of the car key after the user changes the car; further, the establishment of a secure channel between the SIM card and the vehicle through NFC can ensure the security of data transmission and realize One pass at a time.

附图说明Description of drawings

图1表示本发明实施例提供的数字车钥匙的处理方法的应用系统示意图;1 is a schematic diagram of an application system of a method for processing a digital car key provided by an embodiment of the present invention;

图2表示本发明实施例提供的数字车钥匙的处理方法的步骤流程图之一;FIG. 2 shows one of the flow charts of the steps of the method for processing a digital car key provided by an embodiment of the present invention;

图3表示本发明实施例提供的数字车钥匙的处理方法中安全通道的建立流程图;3 shows a flowchart of establishing a secure channel in a method for processing a digital car key provided by an embodiment of the present invention;

图4表示本发明实施例提供的数字车钥匙的处理方法中数字车钥匙配对流程图;FIG. 4 shows a flow chart of digital car key pairing in the processing method for digital car keys provided by an embodiment of the present invention;

图5表示本发明实施例提供的数字车钥匙的处理方法中车主SIM卡的数字车钥匙使用流程图;Fig. 5 is a flowchart showing the use of the digital car key of the owner's SIM card in the processing method of the digital car key provided by the embodiment of the present invention;

图6表示本发明实施例提供的数字车钥匙的处理方法的步骤流程图之二;FIG. 6 shows the second flow chart of the steps of the method for processing a digital car key provided by an embodiment of the present invention;

图7表示本发明实施例提供的数字车钥匙共享方法的步骤流程图之一;FIG. 7 shows one of the step flow charts of the method for sharing a digital car key provided by an embodiment of the present invention;

图8表示本发明实施例提供的数字车钥匙共享方法中第一SIM卡的数字车钥匙的离线分享流程图;FIG. 8 shows a flowchart of offline sharing of the digital car key of the first SIM card in the digital car key sharing method provided by the embodiment of the present invention;

图9表示本发明实施例提供的数字车钥匙共享方法的步骤流程图之二;FIG. 9 shows the second flow chart of the steps of the method for sharing a digital car key provided by an embodiment of the present invention;

图10表示表示本发明实施例提供的数字车钥匙共享方法中第二SIM卡首次使用数字车钥匙的流程图;FIG. 10 shows a flowchart showing the first use of a digital car key by a second SIM card in the method for sharing a digital car key provided by an embodiment of the present invention;

图11表示本发明实施例提供的数字车钥匙的处理装置的结构示意图之一;FIG. 11 shows one of the schematic structural diagrams of the processing device for a digital car key provided by an embodiment of the present invention;

图12表示本发明实施例提供的SIM卡的结构示意图之一;12 shows one of the schematic structural diagrams of a SIM card provided by an embodiment of the present invention;

图13表示本发明实施例提供的数字车钥匙的处理装置的结构示意图之二;FIG. 13 shows the second schematic structural diagram of a processing device for a digital car key provided by an embodiment of the present invention;

图14表示本发明实施例提供的目标车辆的结构示意图;FIG. 14 is a schematic structural diagram of a target vehicle provided by an embodiment of the present invention;

图15表示本发明实施例提供的数字车钥匙共享装置的结构示意图之一;FIG. 15 shows one of the schematic structural diagrams of the digital car key sharing device provided by the embodiment of the present invention;

图16表示本发明实施例提供的SIM卡的结构示意图之二;16 shows the second schematic structural diagram of a SIM card provided by an embodiment of the present invention;

图17表示本发明实施例提供的数字车钥匙共享装置的结构示意图之二;FIG. 17 shows the second schematic structural diagram of the digital car key sharing device provided by the embodiment of the present invention;

图18表示本发明实施例提供的SIM卡的结构示意图之三。FIG. 18 shows the third schematic structural diagram of the SIM card provided by the embodiment of the present invention.

具体实施方式Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, the following will be described in detail with reference to the accompanying drawings and specific embodiments.

如图1所示,本发明实施例提供的数字车钥匙的处理方法采用移动终端中的SIM卡作为数字车钥匙的安全载体,通过NFC实现汽车控制操作。该方案可作为通用SIM卡车钥匙业务,向所有车企厂商提供数字车钥匙服务。如图1所示,其应用的系统包括:移动终端、SIM卡、车辆、车钥匙业务后台服务器。As shown in FIG. 1 , the method for processing a digital car key provided by an embodiment of the present invention uses a SIM card in a mobile terminal as a safe carrier of the digital car key, and implements a car control operation through NFC. The solution can be used as a general SIM truck key business to provide digital car key services to all car manufacturers. As shown in Fig. 1, the applied system includes: a mobile terminal, a SIM card, a vehicle, and a car key business background server.

移动终端:具备NFC功能,是数字车钥匙APP的载体,向车主提供车钥匙业务可视化操作界面。移动终端中的数字车钥匙运行框架向数字车钥匙APP提供通用数字密钥服务功能,包括车主配对、车钥匙共享等操作。Mobile terminal: With NFC function, it is the carrier of the digital car key APP, which provides the car owner with a visual operation interface of the car key business. The digital car key running framework in the mobile terminal provides the digital car key APP with general digital key service functions, including car owner pairing, car key sharing and other operations.

SIM卡:为NFC卡,支持多种密码算法,且通过SWP(Single Wire Protocol,单线协议)接口与移动终端中的NFC模块相连,能够实现和汽车的非接触式通信。数字车钥匙APPLET(小程序或程序)提前预置在SIM卡里。SIM card: It is an NFC card that supports a variety of cryptographic algorithms, and is connected to the NFC module in the mobile terminal through a SWP (Single Wire Protocol) interface, enabling contactless communication with the car. The digital car key APPLET (small program or program) is preset in the SIM card in advance.

车辆:目标车辆必须配备有NFC读卡模块,用于与移动终端中SIM卡通信,读取卡中车钥匙相关信息以锁定/开启车门。Vehicle: The target vehicle must be equipped with an NFC card reader module, which is used to communicate with the SIM card in the mobile terminal and read the relevant information of the car key in the card to lock/open the door.

车钥匙业务后台服务器:是数字车钥匙APP的业务处理后台,并通过私有链接与车辆进行连接,实现车辆中密钥、证书等数据的预置和更新。Car key business background server: It is the business processing background of the digital car key APP, and is connected to the vehicle through a private link to realize the preset and update of data such as keys and certificates in the vehicle.

需要说明的是,上述APPLET、数字车钥匙APP和业务平台可由运营商运维,向车企提供数字车钥匙业务,简化了车厂和繁多的手机厂商合作适配的工作量。It should be noted that the above-mentioned APPLET, digital car key APP and business platform can be operated and maintained by operators to provide digital car key services to car companies, which simplifies the workload of cooperation and adaptation between car manufacturers and various mobile phone manufacturers.

如图2所示,本发明实施例提供一种数字车钥匙的处理方法,由用户识别模块SIM卡执行,SIM卡中预置数字车钥匙程序;所述方法包括:As shown in FIG. 2 , an embodiment of the present invention provides a method for processing a digital car key, which is executed by a user identification module SIM card, and a digital car key program is preset in the SIM card; the method includes:

步骤201,基于近场通信NFC,与目标车辆协商确定第一共享密钥并建立安全通道;Step 201, based on the near field communication NFC, negotiate with the target vehicle to determine the first shared key and establish a secure channel;

步骤202,通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Step 202 , perform encryption and decryption processing on the digital vehicle key related information transmitted between the SIM card and the target vehicle by using the first shared key.

本发明实施例中为了提高SIM卡与目标车辆之前的通信安全,车辆和SIM卡基于NFC近场通信协议,建立安全通道,协商共享密钥(即第一共享密钥),后续的数据交换流程均受此密钥保护。该SIM卡可以是车主SIM卡,也可以是除车主SIM卡之外的其他SIM卡。需要说明的是,本申请实施例中提及的车主SIM卡为首次与车辆配对成功的SIM卡。In the embodiment of the present invention, in order to improve the communication security between the SIM card and the target vehicle, the vehicle and the SIM card establish a secure channel based on the NFC near field communication protocol, negotiate a shared key (ie, the first shared key), and the subsequent data exchange process are protected by this key. The SIM card may be the vehicle owner SIM card, or may be other SIM cards except the vehicle owner SIM card. It should be noted that the SIM card of the vehicle owner mentioned in the embodiments of this application is the SIM card that is successfully paired with the vehicle for the first time.

作为一个可选实施例,安全通道建立基于ECDH(Elliptic Curve Diffie–Hellmankey Exchange,椭圆曲线迪菲-赫尔曼秘钥交换)密钥协商算法,双方基于选定的椭圆曲线协商密钥。具体的,步骤201包括:As an optional embodiment, the establishment of the secure channel is based on an ECDH (Elliptic Curve Diffie-Hellmankey Exchange, Elliptic Curve Diffie-Hellmankey Exchange) key negotiation algorithm, and the two parties negotiate a key based on the selected elliptic curve. Specifically, step 201 includes:

根据第一椭圆加密曲线,生成第一临时公钥PKt和第一临时私钥SKt;generating a first temporary public key PKt and a first temporary private key SKt according to the first elliptic encryption curve;

基于NFC,向目标车辆发送所述第一临时公钥PKt;以由目标车辆根据第一临时公钥PKt和第二临时私钥SKs确定第一共享密钥K;其中,第二临时私钥SKs由目标车辆根据所述第一椭圆加密曲线生成;Based on NFC, the first temporary public key PKt is sent to the target vehicle; so that the target vehicle determines the first shared key K according to the first temporary public key PKt and the second temporary private key SKs; wherein the second temporary private key SKs generated by the target vehicle according to the first elliptic encryption curve;

接收目标车辆基于NFC发送的所述目标车辆根据所述第一椭圆加密曲线生成的第二临时公钥PKs;receiving a second temporary public key PKs generated by the target vehicle based on the NFC and generated by the target vehicle according to the first elliptic encryption curve;

根据所述第一临时私钥SKt和所述第二临时公钥PKs,确定所述第一共享密钥K。The first shared key K is determined according to the first temporary private key SKt and the second temporary public key PKs.

进一步的,所述方法还包括:Further, the method also includes:

SIM卡在确定所述第一共享密钥K之后,向所述目标车辆发送第一共享密钥协商成功消息;或者,接收目标车辆在确定所述第一共享密钥K之后向所述SIM卡发送的第一共享密钥协商成功消息;After determining the first shared key K, the SIM card sends a first shared key negotiation success message to the target vehicle; or, the receiving target vehicle sends a message to the SIM card after determining the first shared key K The first shared key negotiation success message sent;

根据所述第一共享密钥协商成功消息,确定安全通道建立成功。According to the first shared key negotiation success message, it is determined that the secure channel is successfully established.

如图3所示,SIM卡和目标车辆的安全通道建立过程包括:As shown in Figure 3, the process of establishing a secure channel between the SIM card and the target vehicle includes:

步骤1,SIM卡使用既定的椭圆加密算法(ECC算法)曲线生成第一临时公私钥对(PKt,SKt);Step 1, the SIM card uses a given elliptic encryption algorithm (ECC algorithm) curve to generate a first temporary public-private key pair (PKt, SKt);

步骤2,将PKt发送给目标车辆;Step 2, send PKt to the target vehicle;

步骤3,目标车辆使用既定的ECC算法曲线生成第二临时公私钥对(PKs,SKs);Step 3, the target vehicle uses a predetermined ECC algorithm curve to generate a second temporary public-private key pair (PKs, SKs);

步骤4,目标车辆使用PKt和SKs计算出第一共享密钥K;Step 4, the target vehicle uses PKt and SKs to calculate the first shared key K;

步骤5,目标车辆将PKs发送给SIM卡;Step 5, the target vehicle sends the PKs to the SIM card;

步骤6,SIM卡使用PKs和SKt计算出第一共享密钥K。Step 6, the SIM card uses PKs and SKt to calculate the first shared key K.

其中,K为建立安全通道的关键密钥,后续SIM卡和目标车辆两方将可以使用该第一共享密钥对传输的信息进行加解密保护。Wherein, K is a key key for establishing a secure channel, and the subsequent SIM card and the target vehicle can use the first shared key to encrypt and decrypt the transmitted information.

本发明实施例中SIM卡借助移动终端开放的NFC能力与车辆之间进行通信,通信过程采用ECDH密钥协商算法,能够保证信息传输的安全性,实现一次一密,提高数字车钥匙的安全性。In the embodiment of the present invention, the SIM card uses the NFC capability opened by the mobile terminal to communicate with the vehicle, and the communication process adopts the ECDH key negotiation algorithm, which can ensure the security of information transmission, realize one-time encryption, and improve the security of the digital car key .

作为一个可选实施例,在SIM卡为车主SIM卡的情况下,车主SIM卡中已预配置数字车钥匙程序并完成了密钥数据个人化,车主需通过安全车主SIM卡的移动终端下载数字车钥匙APP;相应的,步骤202包括:As an optional embodiment, in the case where the SIM card is the owner's SIM card, the owner's SIM card has been pre-configured with a digital car key program and personalization of the key data has been completed. car key APP; correspondingly, step 202 includes:

车主SIM卡生成数字车钥匙公钥PKc和数字车钥匙私钥SKc;The owner's SIM card generates the digital car key public key PKc and the digital car key private key SKc;

通过第一共享密钥对所述数字车钥匙公钥PKc进行加密,并将加密数字车钥匙公钥通过NFC发送给所述目标车辆;Encrypting the digital car key public key PKc with the first shared key, and sending the encrypted digital car key public key to the target vehicle through NFC;

接收目标车辆通过NFC反馈的配对结果;其中,在目标车辆利用所述第一共享密钥对加密数字车钥匙公钥PKc进行解密得到并存储数字车钥匙公钥PKc的情况下,配对结果为配对成功;否则,配对结果为配对失败。Receive the pairing result fed back by the target vehicle through NFC; wherein, when the target vehicle uses the first shared key to decrypt the encrypted digital car key public key PKc to obtain and stores the digital car key public key PKc, the pairing result is pairing success; otherwise, the pairing result is pairing failure.

如图4所示,数字车钥匙与目标车辆的配对过程如下:As shown in Figure 4, the pairing process of the digital car key and the target vehicle is as follows:

步骤1,车主在车钥匙APP中启动配对流程;Step 1, the car owner starts the pairing process in the car key APP;

步骤2,车钥匙APP通过机卡接口通知SIM卡准备进行车钥匙配对。Step 2, the car key APP notifies the SIM card through the machine card interface to prepare for car key pairing.

步骤3,车主将移动终端靠近车侧NFC读卡器。Step 3, the car owner brings the mobile terminal close to the NFC card reader on the car side.

步骤4,目标车辆和SIM卡基于NFC近场通信协议,建立安全通道,协商确定第一共享密钥,后续的数据交换流程均受该第一共享密钥保护。Step 4, the target vehicle and the SIM card establish a secure channel based on the NFC near field communication protocol, and negotiate to determine a first shared key, and subsequent data exchange processes are protected by the first shared key.

步骤5,SIM卡生成数字车钥匙(PKc,SKc);Step 5, the SIM card generates a digital car key (PKc, SKc);

步骤6,SIM卡将PKc发送给目标车辆。Step 6, the SIM card sends the PKc to the target vehicle.

步骤7,目标车辆存储PKc,完成车钥匙配对,并返回配对结果。Step 7, the target vehicle stores the PKc, completes the pairing of the car key, and returns the pairing result.

需要说明的是,步骤5-6中SIM卡和目标车辆之前传输的所有信息均通过第一共享密钥进行保护。It should be noted that, in steps 5-6, all the information previously transmitted by the SIM card and the target vehicle are protected by the first shared key.

作为一个可选实施例,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,步骤202还包括:As an optional embodiment, when the vehicle stores the digital vehicle key public key corresponding to the SIM card, step 202 further includes:

通过第一共享密钥对SIM卡的身份标识进行加密,通过NFC向目标车辆发送加密后的身份标识;Encrypt the identity of the SIM card through the first shared key, and send the encrypted identity to the target vehicle through NFC;

接收目标车辆在利用第一共享密钥验证SIM卡身份后,通过NFC发送的加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;receiving encrypted random challenge information sent by the target vehicle through NFC after verifying the identity of the SIM card using the first shared key; the random challenge information is encrypted by the first shared key;

利用所述第一共享密钥对加密随机挑战信息进行解密,得到随机挑战信息;Decrypt the encrypted random challenge information using the first shared key to obtain random challenge information;

使用数字车钥匙私钥对所述随机挑战信息进行签名生成第一密文信息,通过NFC将第一密文信息发送至目标车辆;Using the digital car key private key to sign the random challenge information to generate first ciphertext information, and sending the first ciphertext information to the target vehicle through NFC;

接收目标车辆通过NFC反馈的执行结果;其中,在目标车辆根据数字车钥匙私钥对应的数字车钥匙公钥对第一密文信息验证通过的情况下,所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Receive the execution result fed back by the target vehicle through NFC; wherein, in the case that the target vehicle passes the verification of the first ciphertext information according to the digital car key public key corresponding to the digital car key private key, the execution result is that the door is opened or the door is opened. The locking is completed; otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

该SIM卡可以是已与车辆配对的车主SIM卡(即目标车辆存储车主SIM卡对应的数字车钥匙公钥),也可以是非首次使用数字车钥匙的其他用户的SIM卡(即目标车辆存储了该SIM卡对应的数字车钥匙公钥),即SIM卡利用自己生成的数字车钥匙私钥(例如,车主SIM卡对应第一数字车钥匙私钥,其他SIM卡对应第二数字车钥匙私钥)对随机挑战信息进行签名,目标车辆利用对应的数字车钥匙公钥(例如,车主SIM卡对应第一数字车钥匙公钥,其他SIM卡对应第二数字车钥匙公钥)进行验签,从而实现车门开启或锁定。The SIM card can be the owner's SIM card that has been paired with the vehicle (that is, the target vehicle stores the digital car key public key corresponding to the owner's SIM card), or the SIM card of other users who are not using the digital car key for the first time (that is, the target vehicle stores the digital car key public key) The digital car key public key corresponding to the SIM card), that is, the SIM card uses the digital car key private key generated by itself (for example, the owner's SIM card corresponds to the first digital car key private key, and other SIM cards correspond to the second digital car key private key) ) to sign the random challenge information, and the target vehicle uses the corresponding digital car key public key (for example, the owner's SIM card corresponds to the first digital car key public key, and other SIM cards correspond to the second digital car key public key) to verify the signature, thereby Enables door opening or locking.

如图5所示,SIM卡的数字车钥匙使用流程如下:As shown in Figure 5, the process of using the SIM card digital car key is as follows:

步骤1,车主将移动终端靠近车侧NFC读卡器,建立NFC连接。Step 1, the car owner places the mobile terminal close to the NFC card reader on the car side to establish an NFC connection.

步骤2,目标车辆和SIM卡基于NFC近场通信协议,建立安全通道,协商确定第一共享密钥,后续的数据交换流程均受该第一共享密钥保护。Step 2, the target vehicle and the SIM card establish a secure channel based on the NFC near field communication protocol, and negotiate to determine a first shared key, and subsequent data exchange processes are protected by the first shared key.

步骤3,SIM卡向车辆发送身份验证请求,携带身份标识。Step 3, the SIM card sends an identity verification request to the vehicle, carrying the identity identification.

步骤4,目标车辆根据身份标识判断其是车主SIM卡或已存储对应数字车钥匙公钥的SIM卡,车辆发送随机挑战信息;Step 4, the target vehicle judges that it is the owner's SIM card or the SIM card that has stored the corresponding digital car key public key according to the identity identifier, and the vehicle sends random challenge information;

步骤5,SIM卡使用自身的数字车钥匙私钥对随机挑战信息进行签名,生成第一密文信息;Step 5, the SIM card uses its own digital car key private key to sign the random challenge information to generate the first ciphertext information;

步骤6,SIM卡将第一密文信息发送给目标车辆;Step 6, the SIM card sends the first ciphertext information to the target vehicle;

步骤7,目标车辆使用SIM卡对应的数字车钥匙公钥对第一密文信息进行验签;若验证通过,则开启或锁定车门;否则,不响应;Step 7, the target vehicle uses the digital car key public key corresponding to the SIM card to verify the signature of the first ciphertext information; if the verification is passed, the door is opened or locked; otherwise, no response;

步骤8,目标车辆向SIM卡返回执行结果。Step 8, the target vehicle returns the execution result to the SIM card.

需要说明的是,步骤3-7中SIM卡和目标车辆之前传输的所有信息均通过第一共享密钥进行保护。It should be noted that, in steps 3-7, all the information previously transmitted by the SIM card and the target vehicle are protected by the first shared key.

本发明实施例将数字车钥匙程序预置在SIM卡,向上通过手机终端机卡通道和车钥匙APP通信,向下通过SWP接口与手机中的NFC模块相连和安装了NFC读卡器的汽车进行非接触式通信,实现车辆的开锁/解锁等功能。In the embodiment of the present invention, the digital car key program is preset on the SIM card, communicates with the car key APP through the mobile phone terminal machine card channel upward, and is connected with the NFC module in the mobile phone through the SWP interface and the car with the NFC card reader installed. Contactless communication to realize functions such as unlocking/unlocking of vehicles.

作为另一个可选实施例,在非车主SIM卡(也可称为没有与目标车辆配对的SIM卡)第一次使用数字车钥匙时,即在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,接收通过NFC发送的加密随机挑战信息之前,所述方法还包括:As another optional embodiment, when the non-owner SIM card (also referred to as the SIM card not paired with the target vehicle) uses the digital car key for the first time, that is, the vehicle does not store the digital car key public key corresponding to the SIM card In the case of NFC, before receiving the encrypted random challenge information sent by NFC, the method further includes:

接收目标车辆通过NFC发送的授权验证请求;Receive the authorization verification request sent by the target vehicle through NFC;

根据所述授权验证请求,通过NFC向目标车辆发送已与车辆配对的SIM卡的签名信息,以由目标车辆对利用已与车辆配对的SIM卡的数字车钥匙公钥对签名信息进行解密,得到所述SIM卡对应的数字车钥匙公钥并存储。According to the authorization verification request, the signature information of the SIM card paired with the vehicle is sent to the target vehicle through NFC, so that the target vehicle decrypts the signature information using the digital car key public key of the SIM card paired with the vehicle, and obtains The public key of the digital car key corresponding to the SIM card is stored.

综上,本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;进一步通过NFC实现SIM卡和车辆之间安全通道的建立,能够保证数据传输的安全性,实现一次一密。To sum up, the embodiment of the present invention adopts the SIM card of the mobile terminal as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. After the user replaces the mobile terminal, the car key service can be used normally by inserting the SIM card. , which reduces the migration threshold of the car key after the user changes the machine; furthermore, the establishment of a secure channel between the SIM card and the vehicle through NFC can ensure the security of data transmission and realize one-time encryption.

如图6所示,本发明实施例还提供一种数字车钥匙的处理方法,由目标车辆执行,所述目标车辆中预置NFC读卡模块,所述方法包括:As shown in FIG. 6 , an embodiment of the present invention further provides a method for processing a digital car key, which is executed by a target vehicle, where an NFC card reader module is preset in the target vehicle, and the method includes:

步骤801,基于NFC读卡模块,与SIM卡协商确定第一共享密钥并建立安全通道;Step 801, based on the NFC card reader module, negotiate with the SIM card to determine the first shared key and establish a secure channel;

步骤802,通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Step 802: Perform encryption and decryption processing on the digital vehicle key related information transmitted between the SIM card and the target vehicle by using the first shared key.

本发明实施例中为了提高SIM卡与目标车辆之前的通信安全,车辆和SIM卡基于NFC近场通信协议,建立安全通道,协商共享密钥(即第一共享密钥),后续的数据交换流程均受此密钥保护。该SIM卡可以是车主SIM卡,也可以是除车主SIM卡之外的其他SIM卡。需要说明的是,本申请实施例中提及的车主SIM卡为首次与车辆配对成功的SIM卡。In the embodiment of the present invention, in order to improve the communication security between the SIM card and the target vehicle, the vehicle and the SIM card establish a secure channel based on the NFC near field communication protocol, negotiate a shared key (ie, the first shared key), and the subsequent data exchange process are protected by this key. The SIM card may be the vehicle owner SIM card, or may be other SIM cards except the vehicle owner SIM card. It should be noted that the SIM card of the vehicle owner mentioned in the embodiments of this application is the SIM card that is successfully paired with the vehicle for the first time.

作为一个可选实施例,安全通道建立基于ECDH(Elliptic Curve Diffie–Hellmankey Exchange,椭圆曲线迪菲-赫尔曼秘钥交换)密钥协商算法,双方基于选定的椭圆曲线协商密钥。具体的,步骤801包括:As an optional embodiment, the establishment of the secure channel is based on an ECDH (Elliptic Curve Diffie-Hellmankey Exchange, Elliptic Curve Diffie-Hellmankey Exchange) key negotiation algorithm, and the two parties negotiate a key based on the selected elliptic curve. Specifically, step 801 includes:

接收SIM卡基于NFC发送的第一临时公钥;其中,所述SIM卡根据第一椭圆加密曲线生成第一临时公钥和第一临时私钥;Receive the first temporary public key sent by the SIM card based on NFC; wherein, the SIM card generates a first temporary public key and a first temporary private key according to the first elliptic encryption curve;

根据所述第一椭圆加密曲线,生成第二临时公钥和第二临时私钥;generating a second temporary public key and a second temporary private key according to the first elliptic encryption curve;

根据所述第一临时公钥和第二临时私钥确定所述第一共享密钥;determining the first shared key according to the first temporary public key and the second temporary private key;

基于NFC向SIM卡发送所述第二临时公钥;以由所述SIM卡根据所述第一临时私钥和第二临时公钥确定所述第一共享密钥。Sending the second temporary public key to the SIM card based on NFC; so that the SIM card determines the first shared key according to the first temporary private key and the second temporary public key.

进一步的,所述方法还包括:Further, the method also includes:

目标车辆在确定所述第一共享密钥之后向所述SIM卡发送第一共享密钥协商成功消息;或者,接收SIM卡在确定所述第一共享密钥之后向所述目标车辆发送的第一共享密钥协商成功消息;After determining the first shared key, the target vehicle sends a first shared key negotiation success message to the SIM card; or, receiving a first message sent by the SIM card to the target vehicle after determining the first shared key. A shared key negotiation success message;

根据所述第一共享密钥协商成功消息,确定安全通道建立成功。According to the first shared key negotiation success message, it is determined that the secure channel is successfully established.

本发明实施例中SIM卡借助移动终端开放的NFC能力与车辆之间进行通信,通信过程采用ECDH密钥协商算法,能够保证信息传输的安全性,实现一次一密,提高数字车钥匙的安全性。In the embodiment of the present invention, the SIM card uses the NFC capability opened by the mobile terminal to communicate with the vehicle, and the communication process adopts the ECDH key negotiation algorithm, which can ensure the security of information transmission, realize one-time encryption, and improve the security of the digital car key .

作为一个可选实施例,车主SIM卡中已预配置数字车钥匙程序并完成了密钥数据个人化,车主需通过安全车主SIM卡的移动终端下载数字车钥匙APP;相应的,步骤802包括:As an optional embodiment, the digital car key program has been pre-configured in the vehicle owner's SIM card and the key data personalization has been completed, and the vehicle owner needs to download the digital vehicle key APP through the mobile terminal of the security vehicle owner's SIM card; correspondingly, step 802 includes:

接收SIM卡通过NFC发送的加密数字车钥匙公钥;Receive the encrypted digital car key public key sent by the SIM card through NFC;

利用所述第一共享密钥对所述加密数字车钥匙公钥进行解密;Decrypt the encrypted digital vehicle key public key by using the first shared key;

在成功解密得到SIM卡的数字车钥匙公钥的情况下,存储所述数字车钥匙公钥并向SIM卡发送配对结果,所述配对结果为配对成功;否则,向SIM卡发送配对失败的配对结果。In the case of successfully decrypting the digital car key public key of the SIM card, store the digital car key public key and send the pairing result to the SIM card, and the pairing result is successful pairing; otherwise, send the pairing failed pairing to the SIM card result.

作为另一个可选实施例,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,步骤802还包括:As another optional embodiment, in the case that the vehicle stores the digital vehicle key public key corresponding to the SIM card, step 802 further includes:

通过NFC接收SIM卡发送的加密后的身份标识;Receive the encrypted identification sent by the SIM card through NFC;

利用第一共享密钥对加密后的身份标识进行解密和验证,并通过NFC向SIM卡发送加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;Use the first shared key to decrypt and verify the encrypted identity, and send encrypted random challenge information to the SIM card through NFC; the random challenge information is encrypted by the first shared key;

接收SIM卡利用第一共享密钥解密得到随机挑战信息后,通过NFC发送的第一密文信息;所述第一密文信息为SIM卡使用数字车钥匙私钥对所述随机挑战信息进行签名得到;Receive the first ciphertext information sent by NFC after the SIM card decrypts the random challenge information with the first shared key; the first ciphertext information is that the SIM card uses the digital car key private key to sign the random challenge information get;

利用数字车钥匙公钥对第一密文信息进行验证,并向SIM卡发送执行结果;在验证通过的情况下,开启车门或锁定车门,且所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Use the digital car key public key to verify the first ciphertext information, and send the execution result to the SIM card; in the case of passing the verification, open the door or lock the door, and the execution result is that the door is opened or the door is locked. Otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

本发明实施例将数字车钥匙程序预置在SIM卡,向上通过手机终端机卡通道和车钥匙APP通信,向下通过SWP接口与手机中的NFC模块相连和安装了NFC读卡器的汽车进行非接触式通信,实现车辆的开锁/解锁等功能。In the embodiment of the present invention, the digital car key program is preset on the SIM card, communicates with the car key APP through the mobile phone terminal machine card channel upward, and downward through the SWP interface to connect with the NFC module in the mobile phone and the car with the NFC card reader installed. Contactless communication to realize functions such as unlocking/unlocking of vehicles.

作为一个可选实施例,在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,通过NFC向SIM卡发送加密随机挑战信息之前,所述方法还包括:As an optional embodiment, when the vehicle does not store the public key of the digital car key corresponding to the SIM card, before sending the encrypted random challenge information to the SIM card through NFC, the method further includes:

通过NFC向SIM卡发送授权验证请求;Send an authorization verification request to the SIM card through NFC;

接收所述SIM卡根据所述授权验证请求发送的已与车辆配对的SIM卡的签名信息;所述已与车辆配对的SIM卡的签名信息由已与车辆配对的SIM卡根据其对应的数字车钥匙私钥对所述SIM卡的数字车钥匙公钥进行签名生成;Receive the signature information of the SIM card paired with the vehicle sent by the SIM card according to the authorization verification request; the signature information of the SIM card paired with the vehicle is determined by the SIM card paired with the vehicle according to its corresponding digital vehicle The key private key performs signature generation on the digital car key public key of the SIM card;

根据已与车辆配对的SIM卡对应的数字车钥匙公钥对所述签名信息进行验证,若验证通过,存储所述SIM卡对应的数字车钥匙公钥。The signature information is verified according to the public key of the digital car key corresponding to the SIM card that has been paired with the vehicle, and if the verification is passed, the public key of the digital car key corresponding to the SIM card is stored.

综上,本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;进一步通过NFC实现SIM卡和车辆之间安全通道的建立,能够保证数据传输的安全性,实现一次一密。To sum up, the embodiment of the present invention adopts the SIM card of the mobile terminal as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. After the user replaces the mobile terminal, the car key service can be used normally by inserting the SIM card. , which reduces the migration threshold of the car key after the user changes the machine; furthermore, the establishment of a secure channel between the SIM card and the vehicle through NFC can ensure the security of data transmission and realize one-time encryption.

如图7所示,本发明实施例还提供一种数字车钥匙共享方法,由第一SIM卡执行,第一SIM卡中预置数字车钥匙程度;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功,所述方法包括:As shown in FIG. 7 , an embodiment of the present invention further provides a method for sharing a digital car key, which is executed by a first SIM card, where the digital car key level is preset in the first SIM card; and the first digital car key of the first SIM card The private key and the public key of the first digital car key are successfully paired with the target vehicle, and the method includes:

步骤701,基于NFC与第二SIM卡建立NFC连接;其中,第二SIM卡中分别预置数字车钥匙程序;Step 701, establishing an NFC connection with the second SIM card based on NFC; wherein, the digital car key program is respectively preset in the second SIM card;

步骤702,接收第二SIM卡生成第二数字车钥匙公钥和第二数字车钥匙私钥之后,通过NFC连接发送的第一请求;第一请求中携带所述第二数字车钥匙公钥;Step 702, receiving a first request sent through an NFC connection after the second SIM card generates the second digital car key public key and the second digital car key private key; the first request carries the second digital car key public key;

步骤703,利用所述第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息,并通过NFC连接将签名信息发送给第二SIM卡;Step 703, using the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information, and sending the signature information to the second SIM card through the NFC connection;

步骤704,接收所述第二SIM卡在接收到所述签名信息后反馈的接收结果,所述接收结果用于指示第二SIM卡成功接收所述签名信息。Step 704: Receive a reception result fed back by the second SIM card after receiving the signature information, where the reception result is used to indicate that the second SIM card has successfully received the signature information.

例如,第一SIM卡为车主SIM卡,第二SIM卡为亲友SIM卡;本发明实施例中车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。For example, the first SIM card is the SIM card of the car owner, and the second SIM card is the SIM card of relatives and friends; in the embodiment of the present invention, the SIM card of the car owner and the SIM cards of relatives and friends rely on the NFC function opened by the mobile terminal to the SIM card to realize the offline connection between the car owner and relatives and friends. Digital car key authorization.

本发明的至少一个可选实施例中,车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线车钥匙授权;即当车主需要分享数字车钥匙给亲友时,即使双方的移动终端未接入互联网,通过NFC连接,车主也可以实现车钥匙分享。同时,分享车钥匙时无需亲友在手机上下载安装车钥匙APP,也无需顾虑亲友的移动终端品牌。In at least one optional embodiment of the present invention, the vehicle owner's SIM card and the relatives and friends' SIM cards use the NFC function opened by the mobile terminal to the SIM card to realize the offline car key authorization of the vehicle owner to the relatives and friends; that is, when the vehicle owner needs to share the digital car key with relatives and friends. Even if the mobile terminals of both parties are not connected to the Internet, the car owner can share the car keys through the NFC connection. At the same time, when sharing car keys, there is no need for relatives and friends to download and install the car key APP on the mobile phone, and there is no need to worry about the mobile terminal brand of relatives and friends.

需要说明的是,两个SIM卡之间的NFC交互,可以仅通过NFC传输,也可以通过NFC安全通道(即预先建立第二共享密钥)传输,在此不做具体限定。相应的,所述方法还包括:It should be noted that the NFC interaction between the two SIM cards can be transmitted only through NFC, or can be transmitted through an NFC secure channel (ie, a second shared key is pre-established), which is not specifically limited here. Correspondingly, the method further includes:

第一SIM卡和第二SIM卡基于NFC协商确定第二共享密钥并建立NFC连接;The first SIM card and the second SIM card determine the second shared key based on NFC negotiation and establish an NFC connection;

其中,通过所述第二共享密钥对第一SIM卡和第二SIM卡之间传输的信息进行加解密处理。Wherein, the information transmitted between the first SIM card and the second SIM card is encrypted and decrypted by the second shared key.

如图8所示,离线车钥匙共享流程如下:As shown in Figure 8, the offline car key sharing process is as follows:

步骤1,车主在车钥匙APP中开始车钥匙分享流程。Step 1, the car owner starts the car key sharing process in the car key APP.

步骤2,车主APP调用机卡接口向车主SIM卡(即第一SIM卡)发送车钥匙分享通知。Step 2, the car owner APP calls the machine card interface to send a car key sharing notification to the car owner SIM card (ie, the first SIM card).

步骤3,车主使用移动终端靠近亲友移动终端,车主SIM卡和第二SIM卡之间建立NFC连接并建立安全通道。In step 3, the vehicle owner uses the mobile terminal to approach the mobile terminal of relatives and friends, and an NFC connection is established between the vehicle owner's SIM card and the second SIM card and a secure channel is established.

步骤4,第二SIM卡生成车钥匙公私钥对(PKr,SKr)。Step 4, the second SIM card generates a car key public-private key pair (PKr, SKr).

步骤5,第二SIM卡向车主SIM卡请求车主签名信息。Step 5, the second SIM card requests the owner's signature information from the owner's SIM card.

步骤6,第二SIM卡使用SKc对PKr进行签名。Step 6, the second SIM card uses SKc to sign the PKr.

步骤7,第一SIM卡向第二SIM卡发送车主签名信息。Step 7, the first SIM card sends the vehicle owner signature information to the second SIM card.

步骤8,第二SIM卡返回接收结果,车钥匙APP向车主告知分享结果。分享成功后,亲友就可以使用第二SIM卡控制车辆了。Step 8, the second SIM card returns the receiving result, and the car key APP informs the owner of the sharing result. After the sharing is successful, relatives and friends can use the second SIM card to control the vehicle.

综上,本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;且车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。To sum up, the embodiment of the present invention adopts the SIM card of the mobile terminal as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. After the user replaces the mobile terminal, the car key service can be used normally by inserting the SIM card. , which lowers the migration threshold of the car key after the user changes the car; and the NFC function between the car owner's SIM card and the relatives and friends' SIM cards is enabled by the NFC function opened by the mobile terminal to the SIM card, enabling the car owner to authorize the offline digital car key of relatives and friends.

如图9所示,本发明实施例还提供一种数字车钥匙共享方法,由第二SIM卡执行,所述方法还包括:As shown in FIG. 9 , an embodiment of the present invention further provides a method for sharing a digital car key, which is performed by a second SIM card, and the method further includes:

步骤901,基于NFC与第一SIM卡建立NFC连接,其中,第一SIM卡和第二SIM卡中分别预置数字车钥匙程序;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;Step 901, establish an NFC connection with the first SIM card based on NFC, wherein the digital car key program is preset in the first SIM card and the second SIM card respectively; and the first digital car key private key of the first SIM card and the first The digital car key public key is successfully paired with the target vehicle;

步骤902,生成第二数字车钥匙公钥和第二数字车钥匙私钥,并通过NFC向第一SIM卡发送第一请求;第一请求中携带所述第二数字车钥匙公钥;Step 902, generating a second digital car key public key and a second digital car key private key, and sending a first request to the first SIM card through NFC; the first request carries the second digital car key public key;

步骤903,接收第一SIM卡利用第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息;Step 903, receiving the first SIM card and using the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information;

步骤904,向第一SIM卡发送接收结果,所述接收结果用于指示所述第二SIM卡成功接收所述签名信息。Step 904: Send a reception result to the first SIM card, where the reception result is used to indicate that the second SIM card successfully receives the signature information.

例如,第一SIM卡为车主SIM卡,第二SIM卡为亲友SIM卡;本发明实施例中车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。For example, the first SIM card is the SIM card of the car owner, and the second SIM card is the SIM card of relatives and friends; in the embodiment of the present invention, the SIM card of the car owner and the SIM cards of relatives and friends rely on the NFC function opened by the mobile terminal to the SIM card to realize the offline connection between the car owner and relatives and friends. Digital car key authorization.

本发明的至少一个可选实施例中,车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线车钥匙授权;即当车主需要分享数字车钥匙给亲友时,即使双方的移动终端未接入互联网,通过NFC连接,车主也可以实现车钥匙分享。同时,分享车钥匙时无需亲友在手机上下载安装车钥匙APP,也无需顾虑亲友的移动终端品牌。In at least one optional embodiment of the present invention, the vehicle owner's SIM card and the relatives and friends' SIM cards rely on the NFC function opened by the mobile terminal to the SIM card to realize the offline car key authorization of the vehicle owner to the relatives and friends; that is, when the vehicle owner needs to share the digital car key to relatives and friends. Even if the mobile terminals of both parties are not connected to the Internet, the car owner can share the car keys through the NFC connection. At the same time, when sharing car keys, there is no need for relatives and friends to download and install the car key APP on their mobile phones, and there is no need to worry about the mobile terminal brands of relatives and friends.

需要说明的是,两个SIM卡之间的NFC交互,可以仅通过NFC传输,也可以通过NFC安全通道(即预先建立第二共享密钥)传输,在此不做具体限定。相应的,所述方法还包括:It should be noted that the NFC interaction between the two SIM cards can be transmitted only through NFC, or can also be transmitted through an NFC secure channel (ie, a second shared key is pre-established), which is not specifically limited here. Correspondingly, the method further includes:

第二SIM卡和第一SIM卡基于NFC协商确定第二共享密钥并建立NFC连接;The second SIM card and the first SIM card determine a second shared key based on NFC negotiation and establish an NFC connection;

其中,通过所述第二共享密钥对第二SIM卡和第一SIM卡之间传输的信息进行加解密处理。Wherein, the information transmitted between the second SIM card and the first SIM card is encrypted and decrypted by the second shared key.

作为一个可选实施例,若目标车辆存储了第二数字车钥匙公钥;所述方法还包括:As an optional embodiment, if the target vehicle stores the second digital vehicle key public key; the method further includes:

通过NFC向目标车辆发送身份标识;Send identification to the target vehicle via NFC;

接收目标车辆在验证第二SIM卡身份后,通过NFC发送的随机挑战信息;Receive random challenge information sent by the target vehicle through NFC after verifying the identity of the second SIM card;

使用第二数字车钥匙私钥对所述随机挑战信息进行签名生成第二密文信息,通过NFC将第二密文信息发送至目标车辆;Using the private key of the second digital car key to sign the random challenge information to generate second ciphertext information, and sending the second ciphertext information to the target vehicle through NFC;

接收目标车辆通过NFC反馈的执行结果;其中,在目标车辆根据第二数字车钥匙公钥对第二密文信息验证通过的情况下,所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Receive the execution result fed back by the target vehicle through NFC; wherein, in the case that the target vehicle passes the verification of the second ciphertext information according to the second digital car key public key, the execution result is that the door is opened or the door is locked; otherwise, The execution result is that the vehicle door fails to open or the vehicle door fails to lock.

利用第二SIM卡开启或锁定车门的方式与使用车主SIM卡开启或锁定车门的方式相同,在此不做重复赘述。The method of using the second SIM card to open or lock the vehicle door is the same as the method of using the vehicle owner's SIM card to open or lock the vehicle door, which will not be repeated here.

而在非车主SIM卡(也可称为没有与目标车辆配对的SIM卡,即第二SIM卡)第一次使用数字车钥匙时,在车辆未存储第二数字车钥匙公钥的情况下,接收通过NFC发送的随机挑战信息之前,所述方法还包括:When the non-owner SIM card (also called the SIM card not paired with the target vehicle, that is, the second SIM card) uses the digital car key for the first time, if the vehicle does not store the public key of the second digital car key, Before receiving the random challenge information sent through NFC, the method further includes:

接收目标车辆通过NFC发送的授权验证请求;Receive the authorization verification request sent by the target vehicle through NFC;

根据所述授权验证请求,通过NFC向目标车辆发送第一SIM卡的签名信息,以由目标车辆对利用第一SIM卡的第一数字车钥匙公钥对签名信息进行解密,得到第二SIM卡的第二数字车钥匙公钥并存储。According to the authorization verification request, the signature information of the first SIM card is sent to the target vehicle through NFC, so that the target vehicle decrypts the signature information using the public key of the first digital car key of the first SIM card to obtain the second SIM card The second digital car key public key and stored.

如图10所示,第二SIM卡的数字车钥匙首次使用流程如下:As shown in Figure 10, the process of using the digital car key of the second SIM card for the first time is as follows:

步骤1,车主好友将移动终端靠近车侧NFC读卡器,建立NFC连接。Step 1, the car owner's friend brings the mobile terminal close to the NFC card reader on the car side to establish an NFC connection.

步骤2,目标车辆和SIM卡基于NFC近场通信协议,建立安全通道,协商确定第一共享密钥,后续的数据交换流程均受该第一共享密钥保护。Step 2, the target vehicle and the SIM card establish a secure channel based on the NFC near field communication protocol, and negotiate to determine a first shared key, and subsequent data exchange processes are protected by the first shared key.

步骤3,第二SIM卡向车辆发送身份验证请求,携带身份标识。Step 3, the second SIM card sends an identity verification request to the vehicle, carrying the identity identifier.

步骤4,目标车辆根据身份标识判断其是第二SIM卡,向第二SIM卡发送授权验证请求;Step 4, the target vehicle judges that it is the second SIM card according to the identity identifier, and sends an authorization verification request to the second SIM card;

步骤5,第二SIM卡将第一SIM卡的签名信息发送给目标车辆;Step 5, the second SIM card sends the signature information of the first SIM card to the target vehicle;

步骤6,目标车辆使用车主SIM卡的PKc验签,若验证通过,则存储第二SIM卡的PKr;Step 6, the target vehicle uses the PKc of the owner's SIM card to verify the signature, and if the verification is passed, then the PKr of the second SIM card is stored;

步骤7,目标车辆发送随机挑战信息;Step 7, the target vehicle sends random challenge information;

步骤8,第二SIM卡使用第二数字车钥匙私钥SKr对随机挑战信息进行签名,生成第二密文信息;Step 8, the second SIM card uses the second digital car key private key SKr to sign the random challenge information to generate the second ciphertext information;

步骤9,第二SIM卡将第二密文信息发送给目标车辆;Step 9, the second SIM card sends the second ciphertext information to the target vehicle;

步骤10,目标车辆使用第二数字车钥匙公钥PKr对第二密文信息进行验签;若验证通过,则开启或锁定车门;否则,不响应;Step 10, the target vehicle uses the second digital car key public key PKr to verify the signature of the second ciphertext information; if the verification is passed, the door is opened or locked; otherwise, no response;

步骤11,目标车辆向第二SIM卡返回执行结果。Step 11, the target vehicle returns the execution result to the second SIM card.

需要说明的是,步骤3-10中第二SIM卡和目标车辆之前传输的所有信息均通过第一共享密钥进行保护。It should be noted that, in step 3-10, all the information previously transmitted by the second SIM card and the target vehicle is protected by the first shared key.

综上,本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;且车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。To sum up, the embodiment of the present invention adopts the SIM card of the mobile terminal as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. After the user replaces the mobile terminal, the car key service can be used normally by inserting the SIM card. , which lowers the migration threshold of the car key after the user changes the car; and the NFC function between the car owner's SIM card and the relatives and friends' SIM cards is enabled by the NFC function opened by the mobile terminal to the SIM card, enabling the car owner to authorize the offline digital car key of relatives and friends.

如图11所示,本发明实施例还提供一种数字车钥匙的处理装置,应用于用户识别模块SIM卡,SIM卡中预置数字车钥匙程序;所述装置包括:As shown in FIG. 11 , an embodiment of the present invention further provides a processing device for a digital car key, which is applied to a user identification module SIM card, and a digital car key program is preset in the SIM card; the device includes:

第一建立模块101,用于基于近场通信NFC,与目标车辆协商确定第一共享密钥并建立安全通道;The first establishment module 101 is configured to negotiate with the target vehicle to determine a first shared key and establish a secure channel based on the near field communication NFC;

第一处理模块102,用于通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。The first processing module 102 is configured to perform encryption and decryption processing on the digital car key related information transmitted between the SIM card and the target vehicle by using the first shared key.

作为一个可选实施例,第一建立模块包括:As an optional embodiment, the first establishment module includes:

第一子模块,用于根据第一椭圆加密曲线,生成第一临时公钥和第一临时私钥;a first submodule for generating a first temporary public key and a first temporary private key according to the first elliptic encryption curve;

第二子模块,用于基于NFC,向目标车辆发送所述第一临时公钥;以由目标车辆根据第一临时公钥和第二临时私钥确定第一共享密钥;其中,第二临时私钥由目标车辆根据所述第一椭圆加密曲线生成;The second submodule is configured to send the first temporary public key to the target vehicle based on NFC; so that the target vehicle determines the first shared key according to the first temporary public key and the second temporary private key; wherein the second temporary public key The private key is generated by the target vehicle according to the first elliptic encryption curve;

第三子模块,用于接收目标车辆基于NFC发送的所述目标车辆根据所述第一椭圆加密曲线生成的第二临时公钥;a third submodule, configured to receive a second temporary public key generated by the target vehicle according to the first elliptic encryption curve and sent by the target vehicle based on NFC;

第四子模块,用于根据所述第一临时私钥和所述第二临时公钥,确定所述第一共享密钥。The fourth submodule is configured to determine the first shared key according to the first temporary private key and the second temporary public key.

作为一个可选实施例,所述装置还包括:As an optional embodiment, the device further includes:

消息处理模块,用于SIM卡在确定所述第一共享密钥之后,向所述目标车辆发送第一共享密钥协商成功消息;或者,接收目标车辆在确定所述第一共享密钥之后向所述SIM卡发送的第一共享密钥协商成功消息;The message processing module is used for the SIM card to send a first shared key negotiation success message to the target vehicle after determining the first shared key; or, after the receiving target vehicle determines the first shared key, send a message to the target vehicle. The first shared key negotiation success message sent by the SIM card;

确定模块,用于根据所述第一共享密钥协商成功消息,确定安全通道建立成功。A determining module, configured to determine that the secure channel is successfully established according to the first shared key negotiation success message.

作为一个可选实施例,第一处理模块包括:As an optional embodiment, the first processing module includes:

第五子模块,用于生成数字车钥匙公钥和一数字车钥匙私钥;The fifth submodule is used to generate a digital car key public key and a digital car key private key;

第六子模块,用于通过第一共享密钥对所述数字车钥匙公钥进行加密,并将加密第一数字车钥匙公钥通过NFC发送给所述目标车辆;a sixth submodule, configured to encrypt the digital car key public key by using the first shared key, and send the encrypted first digital car key public key to the target vehicle through NFC;

第七子模块,用于接收目标车辆通过NFC反馈的配对结果;其中,在目标车辆利用所述第一共享密钥对加密数字车钥匙公钥进行解密得到并存储数字车钥匙公钥的情况下,配对结果为配对成功;否则,配对结果为配对失败。The seventh sub-module is used to receive the pairing result fed back by the target vehicle through NFC; wherein, when the target vehicle uses the first shared key to decrypt the encrypted digital car key public key to obtain and store the digital car key public key , the pairing result is pairing success; otherwise, the pairing result is pairing failure.

作为一个可选实施例,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,所述第一处理模块还包括:As an optional embodiment, when the vehicle stores the public key of the digital car key corresponding to the SIM card, the first processing module further includes:

第八子模块,用于通过第一共享密钥对SIM卡的身份标识进行加密,通过NFC向目标车辆发送加密后的身份标识;The eighth submodule is used to encrypt the identity of the SIM card through the first shared key, and send the encrypted identity to the target vehicle through NFC;

第九子模块,用于接收目标车辆在利用第一共享密钥验证SIM卡身份后,通过NFC发送的加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;a ninth sub-module, configured to receive encrypted random challenge information sent by the target vehicle through NFC after using the first shared key to verify the identity of the SIM card; the random challenge information is encrypted by the first shared key;

第十子模块,用于利用所述第一共享密钥对加密随机挑战信息进行解密,得到随机挑战信息;The tenth submodule is used to decrypt the encrypted random challenge information by using the first shared key to obtain random challenge information;

第十一子模块,用于使用数字车钥匙私钥对所述随机挑战信息进行签名生成第一密文信息,通过NFC将第一密文信息发送至目标车辆;The eleventh submodule is used to sign the random challenge information with the private key of the digital car key to generate first ciphertext information, and send the first ciphertext information to the target vehicle through NFC;

第十二子模块,用于接收目标车辆通过NFC反馈的执行结果;其中,在目标车辆根据数字车钥匙私钥对应的数字车钥匙公钥对第一密文信息验证通过的情况下,所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。The twelfth sub-module is used to receive the execution result fed back by the target vehicle through NFC; wherein, in the case that the target vehicle passes the verification of the first ciphertext information according to the digital car key public key corresponding to the digital car key private key, the The execution result is that the vehicle door is opened or the vehicle door is locked; otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

作为一个可选实施例,在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,所述装置还包括:As an optional embodiment, in the case that the vehicle does not store the public key of the digital car key corresponding to the SIM card, the device further includes:

验证接收模块,用于接收目标车辆通过NFC发送的授权验证请求;The verification receiving module is used to receive the authorization verification request sent by the target vehicle through NFC;

发送模块,用于根据所述授权验证请求,通过NFC向目标车辆发送已与车辆配对的SIM卡的签名信息,以由目标车辆对利用已与车辆配对的SIM卡的数字车钥匙公钥对签名信息进行解密,得到所述SIM卡对应的数字车钥匙公钥并存储。The sending module is configured to send the signature information of the SIM card that has been paired with the vehicle to the target vehicle through NFC according to the authorization verification request, so that the target vehicle uses the digital car key public key pair of the SIM card that has been paired with the vehicle to sign The information is decrypted, and the public key of the digital car key corresponding to the SIM card is obtained and stored.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;进一步通过NFC实现SIM卡和车辆之间安全通道的建立,能够保证数据传输的安全性,实现一次一密。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the machine; furthermore, the establishment of a secure channel between the SIM card and the vehicle through NFC can ensure the security of data transmission and realize one-time encryption.

需要说明的是,本发明实施例提供的数字车钥匙的处理装置是能够执行上述数字车钥匙的处理方法的装置,则上述数字车钥匙的处理方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the apparatus for processing a digital car key provided by the embodiment of the present invention is a device capable of executing the above-mentioned method for processing a digital car key, and all the embodiments of the above-mentioned method for processing a digital car key are applicable to the apparatus, and all can achieve the same or similar beneficial effects.

如图12所示,本发明实施例还提供一种SIM卡,包括处理器100和收发器110,所述收发器110在处理器100的控制下接收和发送数据,所述处理器100用于执行以下操作:As shown in FIG. 12, an embodiment of the present invention further provides a SIM card, including a processor 100 and a transceiver 110, the transceiver 110 receives and sends data under the control of the processor 100, and the processor 100 is used for Do the following:

基于近场通信NFC,与目标车辆协商确定第一共享密钥并建立安全通道;Based on near field communication NFC, negotiate with the target vehicle to determine the first shared key and establish a secure channel;

通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Encryption and decryption processing is performed on the digital vehicle key related information transmitted between the SIM card and the target vehicle by using the first shared key.

作为一个可选实施例,所述处理器100还用于执行以下操作:As an optional embodiment, the processor 100 is further configured to perform the following operations:

根据第一椭圆加密曲线,生成第一临时公钥和第一临时私钥;generating a first temporary public key and a first temporary private key according to the first elliptic encryption curve;

基于NFC,向目标车辆发送所述第一临时公钥;以由目标车辆根据第一临时公钥和第二临时私钥确定第一共享密钥;其中,第二临时私钥由目标车辆根据所述第一椭圆加密曲线生成;Based on NFC, the first temporary public key is sent to the target vehicle; so that the target vehicle determines the first shared key according to the first temporary public key and the second temporary private key; wherein the second temporary private key is determined by the target vehicle according to the generating the first elliptic encryption curve;

接收目标车辆基于NFC发送的所述目标车辆根据所述第一椭圆加密曲线生成的第二临时公钥;receiving a second temporary public key generated by the target vehicle according to the first elliptic encryption curve and sent by the target vehicle based on NFC;

根据所述第一临时私钥和所述第二临时公钥,确定所述第一共享密钥。The first shared key is determined according to the first temporary private key and the second temporary public key.

作为一个可选实施例,所述处理器100还用于执行以下操作:As an optional embodiment, the processor 100 is further configured to perform the following operations:

SIM卡在确定所述第一共享密钥之后,向所述目标车辆发送第一共享密钥协商成功消息;或者,接收目标车辆在确定所述第一共享密钥之后向所述SIM卡发送的第一共享密钥协商成功消息;After determining the first shared key, the SIM card sends a first shared key negotiation success message to the target vehicle; or, receiving a message sent by the target vehicle to the SIM card after determining the first shared key The first shared key negotiation success message;

根据所述第一共享密钥协商成功消息,确定安全通道建立成功。According to the first shared key negotiation success message, it is determined that the secure channel is successfully established.

作为一个可选实施例,所述处理器100还用于执行以下操作:As an optional embodiment, the processor 100 is further configured to perform the following operations:

生成数字车钥匙公钥和数字车钥匙私钥;Generate digital car key public key and digital car key private key;

通过第一共享密钥对所述数字车钥匙公钥进行加密,并将加密数字车钥匙公钥通过NFC发送给所述目标车辆;Encrypting the digital car key public key by using the first shared key, and sending the encrypted digital car key public key to the target vehicle through NFC;

接收目标车辆通过NFC反馈的配对结果;其中,在目标车辆利用所述第一共享密钥对加密数字车钥匙公钥进行解密得到并存储数字车钥匙公钥的情况下,配对结果为配对成功;否则,配对结果为配对失败。Receive the pairing result fed back by the target vehicle through NFC; wherein, in the case that the target vehicle uses the first shared key to decrypt the encrypted digital car key public key to obtain and stores the digital car key public key, the pairing result is successful pairing; Otherwise, the pairing result is pairing failure.

作为一个可选实施例,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,所述处理器100还用于执行以下操作:As an optional embodiment, when the vehicle stores the public key of the digital vehicle key corresponding to the SIM card, the processor 100 is further configured to perform the following operations:

通过第一共享密钥对SIM卡的身份标识进行加密,通过NFC向目标车辆发送加密后的身份标识;Encrypt the identity of the SIM card through the first shared key, and send the encrypted identity to the target vehicle through NFC;

接收目标车辆在利用第一共享密钥验证SIM卡身份后,通过NFC发送的加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;receiving encrypted random challenge information sent by the target vehicle through NFC after verifying the identity of the SIM card using the first shared key; the random challenge information is encrypted by the first shared key;

利用所述第一共享密钥对加密随机挑战信息进行解密,得到随机挑战信息;Decrypt the encrypted random challenge information using the first shared key to obtain random challenge information;

使用数字车钥匙私钥对所述随机挑战信息进行签名生成第一密文信息,通过NFC将第一密文信息发送至目标车辆;Using the digital car key private key to sign the random challenge information to generate first ciphertext information, and sending the first ciphertext information to the target vehicle through NFC;

接收目标车辆通过NFC反馈的执行结果;其中,在目标车辆根据数字车钥匙私钥对应的数字车钥匙公钥对第一密文信息验证通过的情况下,所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Receive the execution result fed back by the target vehicle through NFC; wherein, in the case that the target vehicle passes the verification of the first ciphertext information according to the digital car key public key corresponding to the digital car key private key, the execution result is that the door is opened or the door is opened. The locking is completed; otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

作为一个可选实施例,在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,所述处理器100还用于执行以下操作:As an optional embodiment, when the vehicle does not store the public key of the digital vehicle key corresponding to the SIM card, the processor 100 is further configured to perform the following operations:

接收目标车辆通过NFC发送的授权验证请求;Receive the authorization verification request sent by the target vehicle through NFC;

根据所述授权验证请求,通过NFC向目标车辆发送已与车辆配对的SIM卡的签名信息,以由目标车辆对利用已与车辆配对的SIM卡的数字车钥匙公钥对签名信息进行解密,得到所述SIM卡对应的数字车钥匙公钥并存储。According to the authorization verification request, the signature information of the SIM card paired with the vehicle is sent to the target vehicle through NFC, so that the target vehicle decrypts the signature information using the digital car key public key of the SIM card paired with the vehicle, and obtains The public key of the digital car key corresponding to the SIM card is stored.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;进一步通过NFC实现SIM卡和车辆之间安全通道的建立,能够保证数据传输的安全性,实现一次一密。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the machine; further, the establishment of a secure channel between the SIM card and the vehicle through NFC can ensure the security of data transmission and realize one-time encryption.

需要说明的是,本发明实施例提供的SIM卡是能够执行上述数字车钥匙的处理方法的SIM卡,则上述数字车钥匙的处理方法的所有实施例均适用于该SIM卡,且均能达到相同或相似的有益效果。It should be noted that, the SIM card provided in the embodiment of the present invention is a SIM card capable of executing the above-mentioned processing method of a digital car key, and all the above-mentioned embodiments of the processing method of a digital car key are applicable to the SIM card, and can achieve same or similar beneficial effects.

如图13所示,本发明实施例还提供一种数字车钥匙的处理装置,应用于目标车辆,所述目标车辆中预置NFC读卡模块,所述装置包括:As shown in FIG. 13 , an embodiment of the present invention further provides a processing device for a digital car key, which is applied to a target vehicle, where an NFC card reading module is preset in the target vehicle, and the device includes:

第二建立模块131,用于基于NFC读卡模块,与SIM卡协商确定第一共享密钥并建立安全通道;The second establishment module 131 is configured to negotiate with the SIM card to determine the first shared key and establish a secure channel based on the NFC card reader module;

第二处理模块132,用于通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。The second processing module 132 is configured to perform encryption and decryption processing on the digital car key related information transmitted between the SIM card and the target vehicle by using the first shared key.

作为一个可选实施例,所述第二建立模块包括:As an optional embodiment, the second establishment module includes:

第二十子模块,用于接收SIM卡基于NFC发送的第一临时公钥;其中,所述SIM卡根据第一椭圆加密曲线生成第一临时公钥和第一临时私钥;The twentieth submodule is used to receive the first temporary public key sent by the SIM card based on NFC; wherein, the SIM card generates a first temporary public key and a first temporary private key according to the first elliptic encryption curve;

第二十一子模块,用于根据所述第一椭圆加密曲线,生成第二临时公钥和第二临时私钥;The twenty-first sub-module is configured to generate a second temporary public key and a second temporary private key according to the first elliptic encryption curve;

第二十二子模块,用于根据所述第一临时公钥和第二临时私钥确定所述第一共享密钥;A twenty-second submodule, configured to determine the first shared key according to the first temporary public key and the second temporary private key;

第二十三子模块,用于基于NFC向SIM卡发送所述第二临时公钥;以由所述SIM卡根据所述第一临时私钥和第二临时公钥确定所述第一共享密钥。The twenty-third sub-module is configured to send the second temporary public key to the SIM card based on NFC; so that the SIM card determines the first shared secret according to the first temporary private key and the second temporary public key key.

作为一个可选实施例,所述装置还包括:As an optional embodiment, the device further includes:

成功协商模块,用于目标车辆在确定所述第一共享密钥之后向所述SIM卡发送第一共享密钥协商成功消息;或者,接收SIM卡在确定所述第一共享密钥之后向所述目标车辆发送的第一共享密钥协商成功消息;The successful negotiation module is used for the target vehicle to send a first shared key negotiation success message to the SIM card after determining the first shared key; or, after the receiving SIM card determines the first shared key to the SIM card the first shared key negotiation success message sent by the target vehicle;

建立成功模块,用于根据所述第一共享密钥协商成功消息,确定安全通道建立成功。A successful establishment module is configured to determine that the secure channel establishment is successful according to the first shared key negotiation success message.

作为一个可选实施例,所述第二处理模块包括:As an optional embodiment, the second processing module includes:

第二十四子模块,用于接收SIM卡通过NFC发送的加密数字车钥匙公钥;The twenty-fourth sub-module is used to receive the encrypted digital car key public key sent by the SIM card through NFC;

第二十五子模块,用于利用所述第一共享密钥对所述加密数字车钥匙公钥进行解密;A twenty-fifth sub-module, configured to decrypt the encrypted digital vehicle key public key by using the first shared key;

第二十六子模块,用于在成功解密得到SIM卡的数字车钥匙公钥的情况下,存储所述数字车钥匙公钥并向SIM卡发送配对结果,所述配对结果为配对成功;否则,向SIM卡发送配对失败的配对结果。The twenty-sixth sub-module is used to store the digital car key public key of the SIM card and send the pairing result to the SIM card when the public key of the digital car key of the SIM card is successfully decrypted; otherwise, the pairing result is successful; otherwise , and send the pairing result of the pairing failure to the SIM card.

作为一个可选实施例,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,所述第二处理模块包括:As an optional embodiment, when the vehicle stores the public key of the digital car key corresponding to the SIM card, the second processing module includes:

第二十七子模块,用于通过NFC接收SIM卡发送的加密后的身份标识;The twenty-seventh sub-module is used to receive the encrypted identity identifier sent by the SIM card through NFC;

第二十八子模块,用于利用第一共享密钥对加密后的身份标识进行解密和验证,并通过NFC向SIM卡发送加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;The twenty-eighth sub-module is used to decrypt and verify the encrypted identity by using the first shared key, and send encrypted random challenge information to the SIM card through NFC; the random challenge information is passed through the first shared secret key. key encryption;

第二十九子模块,用于接收SIM卡利用第一共享密钥解密得到随机挑战信息后,通过NFC发送的第一密文信息;所述第一密文信息为SIM卡使用数字车钥匙私钥对所述随机挑战信息进行签名得到;The twenty-ninth sub-module is used to receive the first ciphertext information sent by NFC after the SIM card decrypts the random challenge information with the first shared key; the first ciphertext information is the private key of the digital car key used by the SIM card The key is obtained by signing the random challenge information;

第三十子模块,用于利用数字车钥匙公钥对第一密文信息进行验证,并向SIM卡发送执行结果;在验证通过的情况下,开启车门或锁定车门,且所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。The thirtieth sub-module is used for verifying the first ciphertext information by using the digital car key public key, and sending the execution result to the SIM card; in the case of passing the verification, the vehicle door is opened or locked, and the execution result is The vehicle door is completed or the vehicle door is locked; otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

作为一个可选实施例,在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,所述装置还包括:As an optional embodiment, in the case that the vehicle does not store the public key of the digital car key corresponding to the SIM card, the device further includes:

第三十五子模块,用于通过NFC向SIM卡发送授权验证请求;The thirty-fifth submodule is used to send an authorization verification request to the SIM card through NFC;

第三十六子模块,用于接收所述SIM卡根据所述授权验证请求发送的已与车辆配对的SIM卡的签名信息;所述已与车辆配对的SIM卡的签名信息由已与车辆配对的SIM卡根据其对应的数字车钥匙私钥对所述SIM卡的数字车钥匙公钥进行签名生成;The thirty-sixth sub-module is configured to receive the signature information of the SIM card paired with the vehicle sent by the SIM card according to the authorization verification request; the signature information of the SIM card paired with the vehicle is determined by the signature information of the SIM card paired with the vehicle The SIM card is generated by signing the digital car key public key of the SIM card according to its corresponding digital car key private key;

第三十七子模块,用于根据已与车辆配对的SIM卡对应的数字车钥匙公钥对所述签名信息进行验证,若验证通过,存储所述SIM卡对应的数字车钥匙公钥。The thirty-seventh sub-module is used to verify the signature information according to the public key of the digital car key corresponding to the SIM card that has been paired with the vehicle, and if the verification is passed, store the public key of the digital car key corresponding to the SIM card.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;进一步通过NFC实现SIM卡和车辆之间安全通道的建立,能够保证数据传输的安全性,实现一次一密。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the machine; furthermore, the establishment of a secure channel between the SIM card and the vehicle through NFC can ensure the security of data transmission and realize one-time encryption.

需要说明的是,本发明实施例提供的数字车钥匙的处理装置是能够执行上述数字车钥匙的处理方法的装置,则上述数字车钥匙的处理方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the apparatus for processing a digital car key provided by the embodiment of the present invention is a device capable of executing the above-mentioned method for processing a digital car key, and all the embodiments of the above-mentioned method for processing a digital car key are applicable to the apparatus, and all can achieve the same or similar beneficial effects.

如图14所示,本发明实施例还提供一种目标车辆,包括处理器120和收发器121,所述收发器121在处理器120的控制下接收和发送数据,所述处理器120用于执行以下操作:As shown in FIG. 14 , an embodiment of the present invention further provides a target vehicle, including a processor 120 and a transceiver 121 , the transceiver 121 receives and sends data under the control of the processor 120 , and the processor 120 is used for Do the following:

基于NFC读卡模块,与SIM卡协商确定第一共享密钥并建立安全通道;Based on the NFC card reader module, negotiate with the SIM card to determine the first shared key and establish a secure channel;

通过所述第一共享密钥对SIM卡和目标车辆之间传输的数字车钥匙相关信息进行加解密处理。Encryption and decryption processing is performed on the digital car key related information transmitted between the SIM card and the target vehicle by using the first shared key.

作为一个可选实施例,所述处理器120还用于执行以下操作:As an optional embodiment, the processor 120 is further configured to perform the following operations:

接收SIM卡基于NFC发送的第一临时公钥;其中,所述SIM卡根据第一椭圆加密曲线生成第一临时公钥和第一临时私钥;Receive the first temporary public key sent by the SIM card based on NFC; wherein, the SIM card generates a first temporary public key and a first temporary private key according to the first elliptic encryption curve;

根据所述第一椭圆加密曲线,生成第二临时公钥和第二临时私钥;generating a second temporary public key and a second temporary private key according to the first elliptic encryption curve;

根据所述第一临时公钥和第二临时私钥确定所述第一共享密钥;determining the first shared key according to the first temporary public key and the second temporary private key;

基于NFC向SIM卡发送所述第二临时公钥;以由所述SIM卡根据所述第一临时私钥和第二临时公钥确定所述第一共享密钥。Send the second temporary public key to the SIM card based on NFC; so that the SIM card determines the first shared key according to the first temporary private key and the second temporary public key.

作为一个可选实施例,所述处理器120还用于执行以下操作:As an optional embodiment, the processor 120 is further configured to perform the following operations:

目标车辆在确定所述第一共享密钥之后向所述SIM卡发送第一共享密钥协商成功消息;或者,接收SIM卡在确定所述第一共享密钥之后向所述目标车辆发送的第一共享密钥协商成功消息;After determining the first shared key, the target vehicle sends a first shared key negotiation success message to the SIM card; or, receiving a first message sent by the SIM card to the target vehicle after determining the first shared key. A shared key negotiation success message;

根据所述第一共享密钥协商成功消息,确定安全通道建立成功。According to the first shared key negotiation success message, it is determined that the secure channel is successfully established.

作为一个可选实施例,在所述SIM卡为车主SIM卡的情况下,所述处理器120还用于执行以下操作:As an optional embodiment, when the SIM card is a vehicle owner SIM card, the processor 120 is further configured to perform the following operations:

接收SIM卡通过NFC发送的加密数字车钥匙公钥;Receive the encrypted digital car key public key sent by the SIM card through NFC;

利用所述第一共享密钥对所述加密数字车钥匙公钥进行解密;Decrypt the encrypted digital vehicle key public key by using the first shared key;

在成功解密得到SIM卡的数字车钥匙公钥的情况下,存储所述数字车钥匙公钥并向SIM卡发送配对结果,所述配对结果为配对成功;否则,向SIM卡发送配对失败的配对结果。In the case of successfully decrypting the digital car key public key of the SIM card, store the digital car key public key and send the pairing result to the SIM card, and the pairing result is successful pairing; otherwise, send the pairing failed pairing to the SIM card result.

作为一个可选实施例,在车辆存储了SIM卡对应的数字车钥匙公钥的情况下,所述处理器120还用于执行以下操作:As an optional embodiment, when the vehicle stores the digital vehicle key public key corresponding to the SIM card, the processor 120 is further configured to perform the following operations:

通过NFC接收SIM卡发送的加密后的身份标识;Receive the encrypted identification sent by the SIM card through NFC;

利用第一共享密钥对加密后的身份标识进行解密和验证,并通过NFC向SIM卡发送加密随机挑战信息;所述随机挑战信息通过所述第一共享密钥加密;Use the first shared key to decrypt and verify the encrypted identity, and send encrypted random challenge information to the SIM card through NFC; the random challenge information is encrypted by the first shared key;

接收SIM卡利用第一共享密钥解密得到随机挑战信息后,通过NFC发送的第一密文信息;所述第一密文信息为SIM卡使用数字车钥匙私钥对所述随机挑战信息进行签名得到;Receive the first ciphertext information sent by NFC after the SIM card decrypts the random challenge information with the first shared key; the first ciphertext information is that the SIM card uses the digital car key private key to sign the random challenge information get;

利用数字车钥匙公钥对第一密文信息进行验证,并向SIM卡发送执行结果;在验证通过的情况下,开启车门或锁定车门,且所述执行结果为车门开启完成或车门锁定完成;否则,所述执行结果为车门开启失败或车门锁定失败。Use the digital car key public key to verify the first ciphertext information, and send the execution result to the SIM card; in the case of passing the verification, open the door or lock the door, and the execution result is that the door is opened or the door is locked. Otherwise, the execution result is that the vehicle door fails to open or the vehicle door fails to lock.

作为一个可选实施例,在车辆未存储SIM卡对应的数字车钥匙公钥的情况下,所述处理器120还用于执行以下操作:As an optional embodiment, when the vehicle does not store the public key of the digital vehicle key corresponding to the SIM card, the processor 120 is further configured to perform the following operations:

通过NFC向SIM卡发送授权验证请求;Send an authorization verification request to the SIM card through NFC;

接收所述SIM卡根据所述授权验证请求发送的已与车辆配对的SIM卡的签名信息;所述已与车辆配对的SIM卡的签名信息由已与车辆配对的SIM卡根据其对应的数字车钥匙私钥对所述SIM卡的数字车钥匙公钥进行签名生成;Receive the signature information of the SIM card paired with the vehicle sent by the SIM card according to the authorization verification request; the signature information of the SIM card paired with the vehicle is determined by the SIM card paired with the vehicle according to its corresponding digital vehicle The key private key performs signature generation on the digital car key public key of the SIM card;

根据已与车辆配对的SIM卡对应的数字车钥匙公钥对所述签名信息进行验证,若验证通过,存储所述SIM卡对应的数字车钥匙公钥。The signature information is verified according to the public key of the digital car key corresponding to the SIM card that has been paired with the vehicle, and if the verification is passed, the public key of the digital car key corresponding to the SIM card is stored.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;进一步通过NFC实现SIM卡和车辆之间安全通道的建立,能够保证数据传输的安全性,实现一次一密。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the machine; further, the establishment of a secure channel between the SIM card and the vehicle through NFC can ensure the security of data transmission and realize one-time encryption.

需要说明的是,本发明实施例提供的目标车辆是能够执行上述数字车钥匙的处理方法的目标车辆,则上述数字车钥匙的处理方法的所有实施例均适用于该目标车辆,且均能达到相同或相似的有益效果。It should be noted that, if the target vehicle provided by the embodiment of the present invention is a target vehicle capable of executing the above-mentioned processing method for a digital car key, all embodiments of the above-mentioned processing method for a digital car key are applicable to the target vehicle, and can achieve same or similar beneficial effects.

如图15所示,本发明实施例还提供一种数字车钥匙共享装置,应用于第一SIM卡,第一SIM卡中预置数字车钥匙程度;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;所述装置包括:As shown in FIG. 15 , an embodiment of the present invention further provides a digital car key sharing device, which is applied to a first SIM card, where the digital car key level is preset in the first SIM card; and the first digital car key of the first SIM card The private key and the public key of the first digital car key are successfully paired with the target vehicle; the device includes:

第一连接模块151,用于基于NFC与第二SIM卡建立NFC连接;其中,第二SIM卡中分别预置数字车钥匙程序;The first connection module 151 is used to establish an NFC connection with the second SIM card based on NFC; wherein, the digital car key program is respectively preset in the second SIM card;

第一请求接收模块152,用于接收第二SIM卡生成第二数字车钥匙公钥和第二数字车钥匙私钥之后,通过NFC连接发送的第一请求;第一请求中携带所述第二数字车钥匙公钥;The first request receiving module 152 is configured to receive the first request sent through the NFC connection after the second SIM card generates the second digital car key public key and the second digital car key private key; the first request carries the second digital car key public key and the second digital car key private key. Digital car key public key;

签名发送模块153,用于利用所述第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息,并通过NFC连接将签名信息发送给第二SIM卡;The signature sending module 153 is configured to use the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information, and send the signature information to the second SIM through the NFC connection Card;

结果接收模块154,用于接收所述第二SIM卡在接收到所述签名信息后反馈的接收结果,所述接收结果用于指示第二SIM卡成功接收所述签名信息。The result receiving module 154 is configured to receive a reception result fed back by the second SIM card after receiving the signature information, where the reception result is used to indicate that the second SIM card has successfully received the signature information.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;且车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the car; and the NFC function between the car owner's SIM card and the relatives and friends' SIM cards is enabled by the NFC function opened by the mobile terminal to the SIM card, enabling the car owner to authorize the offline digital car key of relatives and friends.

需要说明的是,本发明实施例提供的数字车钥匙共享装置是能够执行上述数字车钥匙方法的装置,则上述数字车钥匙共享方法的所有实施例均适用于该装置,且均能到达相同或相似的有益效果。It should be noted that, the digital car key sharing device provided by the embodiment of the present invention is a device capable of executing the above-mentioned digital car key method, and all the embodiments of the above-mentioned digital car key sharing method are applicable to the device, and can achieve the same or similar beneficial effects.

如图16所示,本发明实施例还提供一种SIM卡,所述SIM卡为第一SIM卡,第一SIM卡中预置数字车钥匙程度;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;所述SIM卡还包括处理器160和收发器161,所述收发器161在处理器160的控制下接收和发送数据,所述处理器160用于执行以下操作:As shown in FIG. 16 , an embodiment of the present invention further provides a SIM card, where the SIM card is a first SIM card, and a digital car key level is preset in the first SIM card; and the first digital car key of the first SIM card The private key and the public key of the first digital car key are successfully paired with the target vehicle; the SIM card further includes a processor 160 and a transceiver 161, the transceiver 161 receives and sends data under the control of the processor 160, and the processing Controller 160 is used to perform the following operations:

基于NFC与第二SIM卡建立NFC连接;其中,第二SIM卡中分别预置数字车钥匙程序;An NFC connection is established with the second SIM card based on NFC; wherein, the digital car key program is respectively preset in the second SIM card;

接收第二SIM卡生成第二数字车钥匙公钥和第二数字车钥匙私钥之后,通过NFC连接发送的第一请求;第一请求中携带所述第二数字车钥匙公钥;receiving a first request sent through the NFC connection after the second SIM card generates the second digital car key public key and the second digital car key private key; the first request carries the second digital car key public key;

利用所述第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息,并通过NFC连接将签名信息发送给第二SIM卡;Use the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information, and send the signature information to the second SIM card through the NFC connection;

接收所述第二SIM卡在接收到所述签名信息后反馈的接收结果,所述接收结果用于指示第二SIM卡成功接收所述签名信息。Receive a reception result fed back by the second SIM card after receiving the signature information, where the reception result is used to indicate that the second SIM card successfully receives the signature information.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;且车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the car; and the NFC function between the car owner's SIM card and the relatives and friends' SIM cards is enabled by the NFC function opened by the mobile terminal to the SIM card, enabling the car owner to authorize the offline digital car key of relatives and friends.

需要说明的是,本发明实施例提供的数字车钥匙共享装置是能够执行上述数字车钥匙方法的装置,则上述数字车钥匙共享方法的所有实施例均适用于该装置,且均能到达相同或相似的有益效果。It should be noted that, the digital car key sharing device provided by the embodiment of the present invention is a device capable of executing the above-mentioned digital car key method, and all the embodiments of the above-mentioned digital car key sharing method are applicable to the device, and can achieve the same or similar beneficial effects.

如图17所示,本发明实施例还提供一种数字车钥匙共享装置,应用于第二SIM卡,所述装置包括:As shown in FIG. 17 , an embodiment of the present invention further provides a digital car key sharing device, which is applied to a second SIM card, and the device includes:

第二连接模块171,用于基于NFC与第一SIM卡建立NFC连接,其中,第一SIM卡和第二SIM卡中分别预置数字车钥匙程序;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;The second connection module 171 is configured to establish an NFC connection with the first SIM card based on NFC, wherein the digital car key program is preset in the first SIM card and the second SIM card respectively; and the first digital car key of the first SIM card The private key and the public key of the first digital car key are successfully paired with the target vehicle;

第一请求发送模块172,用于生成第二数字车钥匙公钥和第二数字车钥匙私钥,并通过NFC向第一SIM卡发送第一请求;第一请求中携带所述第二数字车钥匙公钥;The first request sending module 172 is used to generate the second digital car key public key and the second digital car key private key, and send a first request to the first SIM card through NFC; the first request carries the second digital car key key public key;

签名接收模块173,用于接收第一SIM卡利用第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息;A signature receiving module 173, configured to receive the first SIM card to sign the second digital car key public key by using the first digital car key private key of the first SIM card to generate signature information;

结果发送模块174,用于向第一SIM卡发送接收结果,所述接收结果用于指示所述第二SIM卡成功接收所述签名信息。The result sending module 174 is configured to send a receiving result to the first SIM card, where the receiving result is used to indicate that the second SIM card has successfully received the signature information.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;且车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the car; and the NFC function between the car owner's SIM card and the relatives and friends' SIM cards is enabled by the NFC function opened by the mobile terminal to the SIM card, enabling the car owner to authorize the offline digital car key of relatives and friends.

需要说明的是,本发明实施例提供的数字车钥匙共享装置是能够执行上述数字车钥匙方法的装置,则上述数字车钥匙共享方法的所有实施例均适用于该装置,且均能到达相同或相似的有益效果。It should be noted that, the digital car key sharing device provided by the embodiment of the present invention is a device capable of executing the above-mentioned digital car key method, and all the embodiments of the above-mentioned digital car key sharing method are applicable to the device, and can achieve the same or similar beneficial effects.

如图18所示,本发明实施例还提供一种SIM卡,所述SIM卡为第二SIM卡,所述SIM卡还包括处理器180和收发器181,所述收发器181在处理器180的控制下接收和发送数据,所述处理器180用于执行以下操作:As shown in FIG. 18 , an embodiment of the present invention further provides a SIM card, where the SIM card is a second SIM card, and the SIM card further includes a processor 180 and a transceiver 181 , and the transceiver 181 is in the processor 180 . To receive and transmit data under the control of the processor 180, the processor 180 is configured to perform the following operations:

基于NFC与第一SIM卡建立NFC连接,其中,第一SIM卡和第二SIM卡中分别预置数字车钥匙程序;且第一SIM卡的第一数字车钥匙私钥和第一数字车钥匙公钥与目标车辆配对成功;An NFC connection is established with the first SIM card based on NFC, wherein the digital car key program is preset in the first SIM card and the second SIM card respectively; and the first digital car key private key and the first digital car key of the first SIM card The public key is successfully paired with the target vehicle;

生成第二数字车钥匙公钥和第二数字车钥匙私钥,并通过NFC向第一SIM卡发送第一请求;第一请求中携带所述第二数字车钥匙公钥;generating a second digital car key public key and a second digital car key private key, and sending a first request to the first SIM card through NFC; the first request carries the second digital car key public key;

接收第一SIM卡利用第一SIM卡的第一数字车钥匙私钥对所述第二数字车钥匙公钥进行签名生成签名信息;Receiving the first SIM card and using the first digital car key private key of the first SIM card to sign the second digital car key public key to generate signature information;

向第一SIM卡发送接收结果,所述接收结果用于指示所述第二SIM卡成功接收所述签名信息。Send a reception result to the first SIM card, where the reception result is used to indicate that the second SIM card successfully receives the signature information.

本发明实施例采用移动终端的SIM卡作为数字车钥匙的安全载体,SIM卡可方便的在不同品牌终端间切换,当用户更换移动终端后,插入SIM卡即可正常使用车钥匙业务,降低了用户换机后车钥匙的迁移门槛;且车主SIM卡和亲友SIM卡间凭借移动终端向SIM卡开放的NFC功能,实现车主向亲友的离线数字车钥匙授权。In this embodiment of the present invention, the SIM card of the mobile terminal is used as the security carrier of the digital car key, and the SIM card can be easily switched between terminals of different brands. The migration threshold of the car key after the user changes the car; and the NFC function between the car owner's SIM card and the relatives and friends' SIM cards is enabled by the NFC function opened by the mobile terminal to the SIM card, enabling the car owner to authorize the offline digital car key of relatives and friends.

需要说明的是,本发明实施例提供的数字车钥匙共享装置是能够执行上述数字车钥匙方法的装置,则上述数字车钥匙共享方法的所有实施例均适用于该装置,且均能到达相同或相似的有益效果。It should be noted that, the digital car key sharing device provided by the embodiment of the present invention is a device capable of executing the above-mentioned digital car key method, and all the embodiments of the above-mentioned digital car key sharing method are applicable to the device, and can achieve the same or similar beneficial effects.

本发明实施例还提供一种通信设备,该设备为SIM卡或目标车辆,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述的数字车钥匙的处理方法实施例或数字车钥匙共享方法实施例中的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present invention further provide a communication device, which is a SIM card or a target vehicle, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes The program implements each process in the above-mentioned embodiment of the method for processing a digital car key or the embodiment of the method for sharing a digital car key, and can achieve the same technical effect. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述的数字车钥匙的处理方法实施例或数字车钥匙共享方法实施例中的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(RandomAccess Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned embodiments of the method for processing a digital car key or an embodiment of the method for sharing a digital car key are implemented. and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可读存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, the embodiments of the present application may be provided as a method, a system or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本申请是参照根据本申请实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其它可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其它可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow and/or a block or blocks of the flowchart.

这些计算机程序指令也可存储在能引导计算机或其它可编程数据处理设备以特定方式工作的计算机可读存储介质中,使得存储在该计算机可读存储介质中的指令产生包括指令装置的纸制品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable storage medium capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce a paper product comprising the instruction means, The instruction means implements the functions specified in the flow or flows of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其它可编程数据处理设备上,使得计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他科编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device to cause the computer or other programmable device to perform a series of operational steps to produce a computer-implemented process, whereby the instructions to be executed on the computer or other programmable device Steps are provided for implementing the functions specified in a flow or flows of the flowcharts and/or a block or blocks of the block diagrams.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. These improvements and modifications It should also be regarded as the protection scope of the present invention.

Claims (28)

1. A processing method of digital car key, is carried out by subscriber identity module SIM card, characterized by, preset the digital car key procedure in the SIM card; the method comprises the following steps:
negotiating with a target vehicle to determine a first shared key and establish a secure channel based on Near Field Communication (NFC);
and encrypting and decrypting the digital vehicle key related information transmitted between the SIM card and the target vehicle through the first shared key.
2. The method of claim 1, wherein negotiating with the target vehicle to determine the first shared key based on Near Field Communication (NFC) comprises:
generating a first temporary public key and a first temporary private key according to the first elliptic encryption curve;
sending the first temporary public key to a target vehicle based on NFC; determining, by the target vehicle, a first shared key from the first ephemeral public key and the second ephemeral private key; wherein the second temporary private key is generated by the target vehicle according to the first elliptic encryption curve;
receiving a second temporary public key which is sent by a target vehicle based on NFC and generated by the target vehicle according to the first elliptic encryption curve;
and determining the first shared secret key according to the first temporary private key and the second temporary public key.
3. The method of claim 2, further comprising:
after determining the first shared key, the SIM card sends a first shared key negotiation success message to the target vehicle; or receiving a first shared key negotiation success message sent by the target vehicle to the SIM card after the first shared key is determined;
and determining that the establishment of the secure channel is successful according to the first shared key negotiation success message.
4. The method of claim 1, wherein encrypting and decrypting the digital car key related information transmitted between the SIM card and the target vehicle by the first shared key comprises:
generating a digital car key public key and a digital car key private key;
encrypting the digital vehicle key public key through a first shared key, and sending the encrypted digital vehicle key public key to the target vehicle through NFC;
receiving a pairing result fed back by the target vehicle through NFC; the pairing result is successful under the condition that the target vehicle decrypts the encrypted digital vehicle key public key by using the first shared key to obtain and store the digital vehicle key public key; otherwise, the pairing result is pairing failure.
5. The method according to claim 1, wherein in a case where the vehicle stores a digital vehicle key public key corresponding to the SIM card, the first shared key is used to encrypt and decrypt the digital vehicle key related information transmitted between the SIM card and the target vehicle, and further comprising:
encrypting the identity of the SIM card through a first shared secret key, and sending the encrypted identity to a target vehicle through NFC;
receiving encrypted random challenge information sent by NFC after the identity of the SIM card is verified by the target vehicle by using the first shared key; the random challenge information is encrypted by the first shared key;
decrypting the encrypted random challenge information by using the first shared key to obtain random challenge information;
signing the random challenge information by using a digital car key private key to generate first ciphertext information, and sending the first ciphertext information to a target vehicle through NFC;
receiving an execution result fed back by the target vehicle through NFC; under the condition that the target vehicle passes the verification of the first ciphertext information according to the digital vehicle key public key corresponding to the digital vehicle key private key, the execution result is that the vehicle door is opened or locked; otherwise, the execution result is that the vehicle door is failed to open or the vehicle door is failed to lock.
6. The method of claim 5, wherein before receiving the encrypted random challenge information sent by NFC in the case that the vehicle does not store the digital vehicle key public key corresponding to the SIM card, the method further comprises:
receiving an authorization verification request sent by a target vehicle through NFC;
and sending the signature information of the SIM card matched with the vehicle to the target vehicle through NFC according to the authorization verification request, so that the target vehicle decrypts the signature information by using the digital vehicle key public key of the SIM card matched with the vehicle to obtain and store the digital vehicle key public key corresponding to the SIM card.
7. A processing method of a digital car key is executed by a target vehicle, and is characterized in that an NFC card reading module is preset in the target vehicle, and the method comprises the following steps:
negotiating with an SIM card to determine a first shared key and establish a security channel based on an NFC card reading module;
and encrypting and decrypting the digital vehicle key related information transmitted between the SIM card and the target vehicle through the first shared key.
8. The method of claim 7, wherein negotiating with the SIM card to determine the first shared key based on the NFC card reading module comprises:
receiving a first temporary public key sent by the SIM card based on NFC; the SIM card generates a first temporary public key and a first temporary private key according to a first elliptic encryption curve;
generating a second temporary public key and a second temporary private key according to the first elliptic encryption curve;
determining the first shared key according to the first temporary public key and the second temporary private key;
sending the second temporary public key to the SIM card based on NFC; to determine the first shared key by the SIM card from the first ephemeral private key and the second ephemeral public key.
9. The method of claim 8, further comprising:
the target vehicle sends a first shared key negotiation success message to the SIM card after determining the first shared key; or receiving a first shared key negotiation success message sent by the SIM card to the target vehicle after the first shared key is determined;
and determining that the establishment of the secure channel is successful according to the first shared key negotiation success message.
10. The method of claim 7, wherein encrypting and decrypting the digital car key related information transmitted between the SIM card and the target vehicle by the first shared key comprises:
receiving an encrypted digital car key public key sent by the SIM card through NFC;
decrypting the encrypted digital vehicle key public key by using the first shared key;
under the condition that the digital vehicle key public key of the SIM card is obtained through successful decryption, storing the digital vehicle key public key and sending a pairing result to the SIM card, wherein the pairing result is successful; otherwise, sending the pairing result of the pairing failure to the SIM card.
11. The method of claim 7, wherein in a case where the vehicle stores a digital vehicle key public key corresponding to the SIM card, the first shared key is used to encrypt and decrypt digital vehicle key related information transmitted between the SIM card and the target vehicle, further comprising:
receiving the encrypted identity sent by the SIM card through NFC;
decrypting and verifying the encrypted identity by using the first shared key, and sending encrypted random challenge information to the SIM card through NFC; the random challenge information is encrypted by the first shared key;
receiving first ciphertext information sent by NFC after the SIM card decrypts the random challenge information by using the first shared key; the first ciphertext information is obtained by the SIM card signing the random challenge information by using a digital car key private key;
verifying the first ciphertext information by using the digital vehicle key public key, and sending an execution result to the SIM card; under the condition that the verification is passed, opening the vehicle door or locking the vehicle door, wherein the execution result is that the vehicle door is opened or locked; otherwise, the execution result is that the vehicle door is failed to open or the vehicle door is failed to lock.
12. The method of claim 11, wherein before sending the encrypted random challenge information to the SIM card via NFC in the event that the vehicle does not store the digital vehicle key public key corresponding to the SIM card, the method further comprises:
sending an authorization verification request to the SIM card through NFC;
receiving signature information of the SIM card which is sent by the SIM card according to the authorization verification request and is paired with the vehicle; the signature information of the SIM card matched with the vehicle is generated by the SIM card matched with the vehicle according to the corresponding digital vehicle key private key to sign the digital vehicle key public key of the SIM card;
and verifying the signature information according to the digital vehicle key public key corresponding to the SIM card matched with the vehicle, and storing the digital vehicle key public key corresponding to the SIM card if the signature information passes the verification.
13. A digital car key sharing method is executed by a first SIM card, and the degree of a digital car key is preset in the first SIM card; the first digital car key private key and the first digital car key public key of the first SIM card are successfully paired with the target vehicle; characterized in that the method comprises:
establishing an NFC connection with a second SIM card based on NFC; wherein, the second SIM card is respectively preset with a digital car key program;
receiving a first request sent by NFC connection after a second SIM card generates a second digital car key public key and a second digital car key private key; the first request carries the public key of the second digital car key;
signing the second digital car key public key by using a first digital car key private key of the first SIM card to generate signature information, and sending the signature information to the second SIM card through NFC connection;
and receiving a receiving result fed back by the second SIM card after receiving the signature information, wherein the receiving result is used for indicating the second SIM card to successfully receive the signature information.
14. The method of claim 13, further comprising:
the first SIM card and the second SIM card determine a second shared key based on NFC negotiation and establish NFC connection;
and encrypting and decrypting the information transmitted between the first SIM card and the second SIM card by the second shared key.
15. A digital car key sharing method performed by a second SIM card, the method further comprising:
establishing NFC connection with a first SIM card based on NFC, wherein digital car key programs are respectively preset in the first SIM card and a second SIM card; the first digital car key private key and the first digital car key public key of the first SIM card are successfully paired with the target vehicle;
generating a second digital car key public key and a second digital car key private key, and sending a first request to the first SIM card through NFC; the first request carries the public key of the second digital car key;
receiving a signature information generated by a first SIM card signing the second digital car key public key by using a first digital car key private key of the first SIM card;
and sending a receiving result to the first SIM card, wherein the receiving result is used for indicating the second SIM card to successfully receive the signature information.
16. The method of claim 15, further comprising:
the second SIM card and the first SIM card determine a second shared key based on NFC negotiation and establish NFC connection;
and encrypting and decrypting the information transmitted between the second SIM card and the first SIM card by the second shared key.
17. The method of claim 15, wherein if the target vehicle stores the second digital vehicle key public key; the method further comprises the following steps:
sending an identity to a target vehicle through NFC;
receiving random challenge information sent by the target vehicle through NFC after the identity of the second SIM card is verified;
signing the random challenge information by using a second digital vehicle key private key to generate second ciphertext information, and sending the second ciphertext information to a target vehicle through NFC;
receiving an execution result fed back by the target vehicle through NFC; under the condition that the target vehicle passes the verification of the second ciphertext information according to the second digital vehicle key public key, the execution result is that the vehicle door is opened or locked; otherwise, the execution result is that the vehicle door is failed to open or the vehicle door is failed to lock.
18. The method of claim 17, wherein prior to receiving the random challenge information sent via NFC in the event that the vehicle does not store the second digital vehicle key public key, the method further comprises:
receiving an authorization verification request sent by a target vehicle through NFC;
and sending the signature information of the first SIM card to the target vehicle through NFC according to the authorization verification request, so that the target vehicle decrypts the signature information by using the first digital vehicle key public key of the first SIM card to obtain and store a second digital vehicle key public key of the second SIM card.
19. A processing unit of the digital car key, apply to the SIM card of subscriber identity module, characterized by, preset the digital car key procedure in the SIM card; the device comprises:
the first establishing module is used for negotiating with a target vehicle to determine a first shared key and establishing a secure channel based on Near Field Communication (NFC);
and the first processing module is used for encrypting and decrypting the digital vehicle key related information transmitted between the SIM card and the target vehicle through the first shared key.
20. A SIM card comprising a processor and a transceiver, the transceiver receiving and transmitting data under control of the processor, characterized in that the processor is adapted to:
negotiating with a target vehicle to determine a first shared key and establish a secure channel based on Near Field Communication (NFC);
and encrypting and decrypting the digital vehicle key related information transmitted between the SIM card and the target vehicle through the first shared key.
21. A processing device of a digital car key is applied to a target vehicle, and is characterized in that an NFC card reading module is preset in the target vehicle, and the device comprises:
the second establishing module is used for negotiating with the SIM card to determine a first shared key and establishing a security channel based on the NFC card reading module;
and the second processing module is used for encrypting and decrypting the digital vehicle key related information transmitted between the SIM card and the target vehicle through the first shared key.
22. A target vehicle comprising a processor and a transceiver, the transceiver receiving and transmitting data under control of the processor, characterized in that the processor is configured to:
negotiating with an SIM card to determine a first shared key and establish a secure channel based on an NFC card reading module;
and encrypting and decrypting the digital vehicle key related information transmitted between the SIM card and the target vehicle through the first shared key.
23. A digital car key sharing device is applied to a first SIM card, and the degree of a digital car key is preset in the first SIM card; the first digital car key private key and the first digital car key public key of the first SIM card are successfully paired with the target vehicle; the device comprises:
the first connection module is used for establishing NFC connection with the second SIM card based on NFC; wherein, the second SIM card is respectively preset with a digital car key program;
the first request receiving module is used for receiving a first request sent by the NFC connection after the second SIM card generates a second digital car key public key and a second digital car key private key; the first request carries the public key of the second digital car key;
the signature sending module is used for signing the second digital car key public key by using a first digital car key private key of the first SIM card to generate signature information and sending the signature information to the second SIM card through NFC connection;
and the result receiving module is used for receiving a receiving result fed back by the second SIM card after receiving the signature information, and the receiving result is used for indicating the second SIM card to successfully receive the signature information.
24. A kind of SIM card, the said SIM card is the first SIM card, preset the degree of digital car key in the first SIM card; the first digital car key private key and the first digital car key public key of the first SIM card are successfully paired with the target vehicle; the SIM card further comprises a processor and a transceiver, the transceiver receiving and transmitting data under control of the processor, characterized in that the processor is configured to:
establishing an NFC connection with a second SIM card based on NFC; wherein, the second SIM card is respectively preset with a digital car key program;
receiving a first request sent by NFC connection after a second SIM card generates a second digital car key public key and a second digital car key private key; the first request carries the public key of the second digital car key;
signing the second digital vehicle key public key by using a first digital vehicle key private key of the first SIM card to generate signature information, and sending the signature information to a second SIM card through NFC connection;
and receiving a receiving result fed back by the second SIM card after receiving the signature information, wherein the receiving result is used for indicating the second SIM card to successfully receive the signature information.
25. A digital car key sharing device applied to a second SIM card, the device comprising:
the second connection module is used for establishing NFC connection with the first SIM card based on NFC, wherein digital car key programs are respectively preset in the first SIM card and the second SIM card; the first digital car key private key and the first digital car key public key of the first SIM card are successfully paired with the target vehicle;
the first request sending module is used for generating a second digital car key public key and a second digital car key private key and sending a first request to the first SIM card through NFC; the first request carries the public key of the second digital car key;
the signature receiving module is used for receiving the signature information generated by the first SIM card by utilizing a first digital car key private key of the first SIM card to sign the second digital car key public key;
and the result sending module is used for sending a receiving result to the first SIM card, wherein the receiving result is used for indicating the second SIM card to successfully receive the signature information.
26. A SIM card, the SIM card being a second SIM card, the SIM card further comprising a processor and a transceiver, the transceiver receiving and transmitting data under control of the processor, wherein the processor is configured to:
establishing NFC connection with a first SIM card based on NFC, wherein digital car key programs are respectively preset in the first SIM card and a second SIM card; the first digital car key private key and the first digital car key public key of the first SIM card are successfully paired with the target vehicle;
generating a second digital car key public key and a second digital car key private key, and sending a first request to the first SIM card through NFC; the first request carries the public key of the second digital car key;
receiving a signature information generated by a first SIM card signing the second digital car key public key by using a first digital car key private key of the first SIM card;
and sending a receiving result to the first SIM card, wherein the receiving result is used for indicating the second SIM card to successfully receive the signature information.
27. A communication device comprising a memory, a processor, and a program stored on the memory and executable on the processor; the digital car key processing method is characterized in that the processor implements the digital car key processing method according to any one of claims 1 to 6 when executing the program; or, the processor implements the processing method of the digital car key according to any one of claims 7 to 12 when executing the program; or, the processor implements the digital car key sharing method according to claim 13 or 14 when executing the program; alternatively, the processor implements the digital car key sharing method according to any one of claims 15 to 18 when executing the program.
28. A computer-readable storage medium on which a computer program is stored, the program realizing the steps in the processing method of the digital car key according to any one of claims 1 to 6 when executed by a processor; or, the program is executed by a processor to realize the steps in the processing method of the digital car key according to any one of claims 7 to 12; or the program is executed by a processor to implement the steps in the digital car key sharing method according to claim 13 or 14; alternatively, the program realizes the steps in the digital car key sharing method according to any one of claims 15 to 18 when executed by a processor.
CN202011471071.1A 2020-12-14 2020-12-14 Digital car key processing method, sharing method, device, SIM card and vehicle Active CN114697898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011471071.1A CN114697898B (en) 2020-12-14 2020-12-14 Digital car key processing method, sharing method, device, SIM card and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011471071.1A CN114697898B (en) 2020-12-14 2020-12-14 Digital car key processing method, sharing method, device, SIM card and vehicle

Publications (2)

Publication Number Publication Date
CN114697898A true CN114697898A (en) 2022-07-01
CN114697898B CN114697898B (en) 2025-05-16

Family

ID=82130746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011471071.1A Active CN114697898B (en) 2020-12-14 2020-12-14 Digital car key processing method, sharing method, device, SIM card and vehicle

Country Status (1)

Country Link
CN (1) CN114697898B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344849A (en) * 2022-08-22 2022-11-15 辽宁科大物联科技有限公司 Digital key configuration method, system, electronic device and storage medium
CN115426197A (en) * 2022-11-01 2022-12-02 上海银基信息安全技术股份有限公司 Escrow-based digital key sharing method, device, equipment and medium
CN115700857A (en) * 2022-11-28 2023-02-07 广州万协通信息技术有限公司 Vehicle key sharing method of security chip and security chip device
CN115866570A (en) * 2022-11-03 2023-03-28 芜湖雄狮汽车科技有限公司 Offline binding method and device for vehicle-mounted NFC card key, vehicle and medium
CN116346978A (en) * 2023-03-24 2023-06-27 小米汽车科技有限公司 Terminal device and data processing method of terminal device
CN116506830A (en) * 2023-06-28 2023-07-28 小米汽车科技有限公司 Control method, device and system for digital car key and storage medium
WO2024040564A1 (en) * 2022-08-26 2024-02-29 北京小米移动软件有限公司 Key sharing methods and apparatus, terminal, and computer readable storage medium
WO2024125263A1 (en) * 2022-12-12 2024-06-20 蔚来移动科技有限公司 Vehicle unlocking method and apparatus, computer device, and storage medium
CN118828504A (en) * 2024-09-11 2024-10-22 上海银基信息安全技术股份有限公司 Authentication method and device, digital key system, terminal device and storage medium
WO2025010591A1 (en) * 2023-07-10 2025-01-16 Oppo广东移动通信有限公司 Method and apparatus for establishing interoperability channel, chip, and storage medium
CN119339467A (en) * 2024-12-20 2025-01-21 杭州涂鸦信息技术有限公司 Access control method and system for smart door lock

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104393999A (en) * 2014-12-10 2015-03-04 暨南大学 Slave device authentication method and system for master device
CN109410406A (en) * 2018-11-14 2019-03-01 北京华大智宝电子系统有限公司 A kind of authorization method, device and system
US20190253249A1 (en) * 2016-10-26 2019-08-15 Alibaba Group Holding Limited Data transmission method, apparatus and system
US20190305940A1 (en) * 2018-03-28 2019-10-03 Ca, Inc. Group shareable credentials
CN111923863A (en) * 2020-08-25 2020-11-13 东信和平科技股份有限公司 Vehicle control method based on digital vehicle key

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104393999A (en) * 2014-12-10 2015-03-04 暨南大学 Slave device authentication method and system for master device
US20190253249A1 (en) * 2016-10-26 2019-08-15 Alibaba Group Holding Limited Data transmission method, apparatus and system
US20190305940A1 (en) * 2018-03-28 2019-10-03 Ca, Inc. Group shareable credentials
CN109410406A (en) * 2018-11-14 2019-03-01 北京华大智宝电子系统有限公司 A kind of authorization method, device and system
CN111923863A (en) * 2020-08-25 2020-11-13 东信和平科技股份有限公司 Vehicle control method based on digital vehicle key

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344849A (en) * 2022-08-22 2022-11-15 辽宁科大物联科技有限公司 Digital key configuration method, system, electronic device and storage medium
WO2024040564A1 (en) * 2022-08-26 2024-02-29 北京小米移动软件有限公司 Key sharing methods and apparatus, terminal, and computer readable storage medium
CN115426197A (en) * 2022-11-01 2022-12-02 上海银基信息安全技术股份有限公司 Escrow-based digital key sharing method, device, equipment and medium
CN115426197B (en) * 2022-11-01 2023-01-10 上海银基信息安全技术股份有限公司 Escrow-based digital key sharing method, device, equipment and medium
CN115866570A (en) * 2022-11-03 2023-03-28 芜湖雄狮汽车科技有限公司 Offline binding method and device for vehicle-mounted NFC card key, vehicle and medium
CN115700857A (en) * 2022-11-28 2023-02-07 广州万协通信息技术有限公司 Vehicle key sharing method of security chip and security chip device
CN115700857B (en) * 2022-11-28 2023-11-24 广州万协通信息技术有限公司 Vehicle key sharing method of security chip and security chip device
WO2024125263A1 (en) * 2022-12-12 2024-06-20 蔚来移动科技有限公司 Vehicle unlocking method and apparatus, computer device, and storage medium
CN116346978B (en) * 2023-03-24 2024-04-09 小米汽车科技有限公司 Terminal device and data processing method of terminal device
CN116346978A (en) * 2023-03-24 2023-06-27 小米汽车科技有限公司 Terminal device and data processing method of terminal device
CN116506830A (en) * 2023-06-28 2023-07-28 小米汽车科技有限公司 Control method, device and system for digital car key and storage medium
WO2025010591A1 (en) * 2023-07-10 2025-01-16 Oppo广东移动通信有限公司 Method and apparatus for establishing interoperability channel, chip, and storage medium
CN118828504A (en) * 2024-09-11 2024-10-22 上海银基信息安全技术股份有限公司 Authentication method and device, digital key system, terminal device and storage medium
CN119339467A (en) * 2024-12-20 2025-01-21 杭州涂鸦信息技术有限公司 Access control method and system for smart door lock

Also Published As

Publication number Publication date
CN114697898B (en) 2025-05-16

Similar Documents

Publication Publication Date Title
CN114697898B (en) Digital car key processing method, sharing method, device, SIM card and vehicle
US10595201B2 (en) Secure short message service (SMS) communications
KR101730689B1 (en) Apparatus and methods for storing electronic access clients
EP2320621B1 (en) Method for establishing cryptographic communications between a remote device and a medical device and system for carrying out the method
US9282085B2 (en) System and method for digital user authentication
EP3723399A1 (en) Identity verification method and apparatus
EP1976322A1 (en) An authentication method
EP1835688A1 (en) SIM based authentication
CN109075973B (en) Method for carrying out unified authentication on network and service by using ID-based cryptography
KR101706117B1 (en) Apparatus and method for other portable terminal authentication in portable terminal
CN113015159A (en) Initial security configuration method, security module and terminal
EP3624394B1 (en) Establishing a protected communication channel through a ttp
CN110493177B (en) Method and system for quantum communication service station AKA key negotiation based on asymmetric key pool pair and serial number
CN113613227B (en) Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN101964805B (en) Method, equipment and system for safely sending and receiving data
JP2008535427A (en) Secure communication between data processing device and security module
CN110912686A (en) Secure channel key negotiation method and system
CN113556710A (en) Vehicle Bluetooth key method and device and vehicle
KR100749846B1 (en) Device for realizing security function in mac of portable internet system and authentication method using the device
WO2005091149A1 (en) Backup device, backed-up device, backup intermediation device, backup system, backup method, data restoration method, program, and recording medium
EP3550765B1 (en) Service provisioning
JPH10242957A (en) User authentication method, system therefor and storage medium for user authentication
CN114765544B (en) Trusted execution environment data offline migration method and device
KR101172876B1 (en) System and method for performing mutual authentication between user terminal and server
CN116668035A (en) Intelligent door lock safety authentication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant