USB flash disk identity authentication method and device, equipment, storage medium and product

By detecting the vehicle operation mode and obtaining the USB disk signature information for identity matching, the problem of high U disk identity authentication cost in intelligent connected vehicles is solved, and efficient and reliable identity authentication of USB disks is achieved under the condition of controlling costs, ensuring that The security of USB drive service.

CN119249383AInactive Publication Date: 2025-01-03DONGFENG MOTOR GRP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411166811.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In smart connected cars, failure to perform valid identity authentication on USB flash drives may lead to data leakage and malware intrusion, and the cost of encrypting USB flash drives is high. How to achieve efficient and reliable USB flash drive identity authentication under the conditions of cost control It is a problem that needs to be solved urgently.

Method used

By detecting the vehicle operation mode, obtaining the signature information in the USB flash drive and decrypting the public key, using the first identity information in the configuration mode to match the second identity information, realizing the identity authentication of the USB flash drive, avoiding the USB flash drive hardware Direct modification reduces costs.

Benefits of technology

In the service where the vehicle-side controller interacts with the USB flash drive, identity authentication is used to ensure the security of the USB flash drive, while controlling costs, and improving the security and reliability of related business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119249383A_ABST
    Figure CN119249383A_ABST
Patent Text Reader

Abstract

The invention discloses a USB flash disk identity authentication method and device, equipment, a storage medium and a product, and relates to the technical field of information security and encryption, and the method comprises the steps: detecting a vehicle operation mode, detecting whether a USB flash disk is accessed when the current operation mode of a vehicle is a configuration mode, and obtaining signature information in the USB flash disk when the USB flash disk is detected to be accessed, the signature information is second identity information encrypted through a private key, decrypting the signature information through a public key to obtain the second identity information, and performing information matching on the first identity information in the configuration mode and the second identity information to obtain an identity authentication result. On the basis, in the interaction (executing upgrade package flashing, data copying and the like) service of the vehicle-end controller and the U disk, identity authentication is carried out on the U disk by using signature and signature verification principles without changing the hardware of the U disk, so that the cost is controlled, and the safety of the U disk in a related U disk service use scene is ensured at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security and encryption technology, and in particular to a USB flash drive identity authentication method, device, equipment, storage medium and product. Background Art

[0002] With the popularization of intelligent networked vehicles, the issue of vehicle information security has become increasingly prominent and has become the focus of industry attention. At present, in intelligent networked vehicles, the use of USB (Universal Serial Bus) devices for secure flashing of vehicle software packages and copying of vehicle-side data has become a common business scenario. If USB devices (such as USB flash drives) are not effectively authenticated, they may face security risks such as data leakage and malware intrusion. The current technology is to use an encrypted USB flash drive with an authentication password, but the cost of hardware encrypted USB flash drives is high.

[0003] Therefore, how to achieve efficient and reliable identity authentication for USB flash drives while controlling costs is an urgent problem that needs to be solved in the intelligent connected vehicle industry. Summary of the invention

[0004] The main purpose of this application is to provide a USB flash drive identity authentication method, device, equipment, storage medium and product, aiming to solve the technical problem of how to achieve efficient and reliable identity authentication of USB flash drives under the condition of controlling costs.

[0005] To achieve the above purpose, the present application proposes a USB flash drive identity authentication method, the method comprising:

[0006] Detect the vehicle operation mode. When the vehicle is currently in configuration mode, detect whether a USB flash drive is connected.

[0007] When the USB flash drive is detected to be connected, the signature information in the USB flash drive is obtained, where the signature information is the second identity information encrypted by the private key;

[0008] Decrypting the signature information using a public key to obtain the second identity information;

[0009] The identity authentication result is obtained by matching the first identity information in the configuration mode with the second identity information.

[0010] In one embodiment, after the step of detecting the vehicle operation mode, the method further comprises:

[0011] When the vehicle's current operating mode is not the configuration mode, initialize the serial port device;

[0012] When the serial port device is initialized, receiving and storing the configuration information output by the host computer;

[0013] The vehicle operation mode is controlled to switch to the configuration mode according to the configuration information.

[0014] In one embodiment, the step of obtaining the signature information in the USB flash drive includes:

[0015] Get the U disk configuration information;

[0016] Allocating a preset address to the USB flash drive based on the USB flash drive configuration information;

[0017] Establish communication with the corresponding U disk according to the preset address, and obtain the signature information in the corresponding U disk.

[0018] In one embodiment, the step of detecting whether a USB flash drive is connected includes:

[0019] When the USB flash drive is not detected, restart the vehicle-side controller through the analog switch;

[0020] When the vehicle-side controller is restarted, return to the step of detecting whether a USB flash drive is connected.

[0021] In one embodiment, the step of obtaining an identity authentication result by matching the first identity information in the configuration mode with the second identity information includes:

[0022] Comparing the first identity information and the second identity information in the configuration mode, and determining whether the first identity information and the second identity information match according to the comparison result;

[0023] If the match is successful, the identity authentication result is sent to the host computer through the analog switch so that the USB flash drive can be flashed through the host computer.

[0024] In one embodiment, after the step of determining whether the first identity information and the second identity information match according to the comparison result, the method further includes:

[0025] If the matching fails, return to the step of restarting the vehicle-side controller through the analog switch.

[0026] In addition, to achieve the above purpose, the present application also proposes a USB flash drive identity authentication device, the USB flash drive identity authentication device comprising:

[0027] The mode detection module is used to detect the vehicle operation mode. When the vehicle's current operation mode is configuration mode, it detects whether a USB flash drive is connected.

[0028] A signature acquisition module, used to acquire signature information in the USB flash drive when the USB flash drive is detected to be connected, wherein the signature information is the second identity information encrypted by a private key;

[0029] An information decryption module, used to decrypt the signature information using a public key to obtain the second identity information;

[0030] The identity authentication module is used to obtain an identity authentication result by matching the first identity information in the configuration mode with the second identity information.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a USB flash drive identity authentication device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the USB flash drive identity authentication method described above.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the USB flash drive authentication method described above are implemented.

[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the USB flash drive identity authentication method as described above.

[0034] One or more technical solutions proposed in this application have at least the following technical effects:

[0035] Detect the vehicle operation mode. When the vehicle's current operation mode is configuration mode, detect whether a USB flash drive is connected. When the USB flash drive is detected, obtain the signature information in the USB flash drive. The signature information is the second identity information encrypted by the private key. Decrypt the signature information with the public key to obtain the second identity information. Match the first identity information in the configuration mode with the second identity information to obtain the identity authentication result. Based on this, it is realized that in the business of interaction between the vehicle-side controller and the USB flash drive (execution of upgrade package flashing and data copying, etc.), the USB flash drive is authenticated by the signature and verification principle without changing the hardware of the USB flash drive. While controlling the cost, it ensures the security of the USB flash drive in the relevant USB flash drive business usage scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 This is a flowchart of the first embodiment of the USB flash drive identity authentication method of this application;

[0039] Figure 2 This is a flow chart of the second embodiment of the USB flash drive identity authentication method of this application;

[0040] Figure 3 This is a flowchart of the third embodiment of the USB flash drive identity authentication method of this application;

[0041] Figure 4 This is a schematic diagram of the logic flow of USB flash drive identity authentication judgment in the embodiment of the present application;

[0042] Figure 5 This is a schematic diagram of the module structure of the USB flash drive identity authentication device according to an embodiment of the present application;

[0043] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the USB flash drive identity authentication method in the embodiment of the present application.

[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0046] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0047] In smart connected cars, the use of USB (Universal Serial Bus) devices for secure flashing of onboard software packages and copying of vehicle-side data has become a common business scenario. If USB devices (such as USB flash drives) are not effectively authenticated, they may face security risks such as data leakage and malware intrusion. The current technology is to use encrypted USB flash drives with authentication passwords, but hardware encrypted USB flash drives are expensive.

[0048] Taking the cost factor into consideration, the present application provides a solution to detect the vehicle operation mode. When the current operation mode of the vehicle is the configuration mode, it detects whether a USB flash drive is connected. When the USB flash drive is detected, the signature information in the USB flash drive is obtained. The signature information is the second identity information encrypted by the private key. The signature information is decrypted by the public key to obtain the second identity information. The first identity information in the configuration mode and the second identity information are matched to obtain the identity authentication result. Through the above scheme, the USB flash drive can be authenticated by using the signature and verification principle without changing the hardware of the USB flash drive in the business of interacting between the vehicle-side controller and the USB flash drive (executing upgrade package flashing and data copying, etc.). While controlling costs, the security of the USB flash drive in related USB flash drive business usage scenarios is also guaranteed.

[0049] Based on this, the present application embodiment provides a USB flash drive identity authentication method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the USB flash drive identity authentication method of the present application.

[0050] In this embodiment, the USB flash drive identity authentication method includes steps S10 to S40:

[0051] Step S10, detecting the vehicle operation mode, when the vehicle current operation mode is the configuration mode, detecting whether a USB flash drive is connected.

[0052] It should be noted that the vehicle operation mode can be the current operating or working state of the vehicle. For example, normal driving mode, configuration mode, maintenance mode, etc. Exemplarily, the configuration mode may allow users or technicians to make various settings and adjustments to the vehicle, while the normal driving mode focuses on the safe and efficient operation of the vehicle. The configuration mode can be a specific state in the vehicle operation mode, allowing users or technicians to configure and set the vehicle in detail. Exemplarily, in the configuration mode, the vehicle will provide a series of configuration options, such as adjusting vehicle performance parameters, updating software, configuring vehicle safety settings, etc. USB access refers to inserting a USB flash drive (U disk) into a USB port inside or outside the vehicle. U disk is commonly used for data transmission and storage. In vehicle systems, it can be used to transfer configuration files, software updates, or identity authentication information.

[0053] It should be noted that after the step of detecting the vehicle operation mode, the following steps are included: when the current operation mode of the vehicle is not the configuration mode, initializing the serial port device; when the serial port device initialization is completed, receiving and storing the configuration information output by the host computer; and controlling the vehicle operation mode to switch to the configuration mode according to the configuration information.

[0054] It should be noted that the non-configuration mode can be a state where the vehicle is not currently in the configuration mode, such as normal driving mode, standby mode, maintenance mode, etc. The serial port device is an interface for serial communication between a computer and an external device. In the vehicle system, the serial port device is used to communicate with the host computer (such as a computer, server, etc.) to receive configuration information, software updates or other data. Initializing the serial port device means configuring and preparing the serial port interface to ensure that it can transmit data normally. The host computer is used to configure the vehicle system computer or server, which can interact with the vehicle system through a serial port or other communication interface. Configuration information refers to data used to set or adjust vehicle system parameters. The configuration information includes a public key and an encrypted file. The public key is used to decrypt the encrypted file.

[0055] Step S20, when it is detected that the USB flash drive is connected, the signature information in the USB flash drive is obtained.

[0056] It should be noted that the signature information is the second identity information encrypted by the private key, and the second identity information can be understood as the identity information stored in the USB flash drive. Exemplarily, the second identity information can be a set of random numbers, which are encrypted by the private key, and the encrypted random numbers obtained are the signature information. It can be understood that the signature information can be preset in the USB flash drive.

[0057] Step S30: decrypt the signature information using the public key to obtain the second identity information.

[0058] It should be noted that the public key can be built into the vehicle-side controller. For example, the public key can be configured in the vehicle-side software code by hard coding, or the public key can be burned into the vehicle-side controller on the production line.

[0059] Step S40, obtaining an identity authentication result by matching the first identity information and the second identity information in the configuration mode.

[0060] It should be noted that the first identity information may be identity authentication information pre-stored in the vehicle-side controller, and illustratively, the first identity information may be a set of random numbers. The identity authentication result may be the output of the information matching process, indicating whether the identity of the user or device has been verified.

[0061] In this embodiment, the vehicle operation mode is detected. When the current operation mode of the vehicle is the configuration mode, it is detected whether there is a U disk access. When the U disk access is detected, the signature information in the U disk is obtained. The signature information is the second identity information encrypted by the private key. The signature information is decrypted by the public key to obtain the second identity information. The first identity information in the configuration mode and the second identity information are matched to obtain the identity authentication result. Based on this, in the business of interaction between the vehicle-side controller and the U disk (execution of upgrade package flashing and data copying, etc.), the U disk is authenticated by using the signature and signature verification principle without changing the hardware of the U disk, which controls the cost while ensuring the security of the U disk in the relevant U disk business usage scenarios.

[0062] Reference Figure 2 , Figure 2 This is a flow chart of the second embodiment of the USB flash drive identity authentication method of this application. Figure 1 The first embodiment shown is a second embodiment of the USB flash drive identity authentication method of the present application.

[0063] In the second embodiment, the step S20 includes:

[0064] Step S201, when a USB flash drive is detected to be connected, obtain USB flash drive configuration information.

[0065] It should be noted that the USB configuration information may be data stored in the USB for configuring or controlling the vehicle system, and may include software update packages, private key configuration files, second identity information, and parameter settings.

[0066] It should be noted that when the USB flash drive is not detected, the vehicle-side controller is restarted through the analog switch; when the vehicle-side controller is restarted, the process returns to the step of detecting whether the USB flash drive is connected.

[0067] Exemplarily, the analog switch can be an electronic component or circuit used to control the state of the power supply or other key components of the vehicle-side controller. By restarting the vehicle-side controller through the analog switch, it is possible to attempt to restore or reset the state of the vehicle system when the USB flash drive is not detected. It is understandable that this step of restarting the vehicle-side controller through the analog switch is applied to situations where the USB flash drive cannot be detected normally, such as system freezes, configuration errors, etc.

[0068] Step S202: assigning a preset address to the USB flash drive based on the USB flash drive configuration information.

[0069] It should be noted that the preset address can be a specific communication address or identifier assigned by the vehicle system to the USB flash drive. This address is used to uniquely identify the USB flash drive in the internal network of the vehicle system so that the vehicle system can communicate and exchange data with it.

[0070] Step S203, establishing communication with the corresponding USB flash drive according to the preset address, and obtaining signature information in the corresponding USB flash drive.

[0071] Exemplarily, the vehicle system will establish a communication connection with the corresponding USB flash drive according to a preset address in order to read the signature information in the USB flash drive.

[0072] In this embodiment, when the USB flash drive is not detected, restarting the vehicle-side controller through an analog switch can effectively solve the problem of not being able to recognize the USB flash drive due to system freezes, resource conflicts or configuration errors. This automatic restart mechanism can quickly restore the normal working state of the vehicle-side controller, thereby improving the stability of the entire vehicle system. By cyclically detecting the access of the USB flash drive, and automatically obtaining its configuration information, assigning addresses and establishing communication after detecting the USB flash drive, users can achieve data transmission or software updates without manual intervention. Assigning preset addresses to USB flash drives helps the vehicle system manage USB interface resources more effectively. Through the uniqueness of the address, the vehicle system can ensure that each connected USB flash drive can be accurately identified and associated with the corresponding processing logic. This resource management method improves the operating efficiency and reliability of the vehicle system.

[0073] Reference Figure 3 , Figure 3 This is a flow chart of the third embodiment of the USB flash drive identity authentication method of this application. Figure 2 The second embodiment shown provides the third embodiment of the USB flash drive identity authentication method of the present application.

[0074] In the third embodiment, the step S40 includes:

[0075] Step S401: compare the first identity information and the second identity information in the configuration mode, and determine whether the first identity information and the second identity information match according to the comparison result.

[0076] Exemplarily, the comparison result may be a conclusion obtained by comparing the first identity information and the second identity information. If the two identity information are exactly the same or meet a certain preset matching condition, the comparison result is a successful match; otherwise, the comparison result is a failed match. Exemplarily, the first identity information in the configuration mode is compared with the data of the second identity information decrypted from the USB flash drive to verify whether the identity of the user or device is legitimate.

[0077] Step S402: If the match is successful, the identity authentication result is sent to the host computer through the analog switch so that the USB flash drive can be flashed through the host computer.

[0078] It should be noted that the host computer can be a dedicated computer or vehicle information system, which is used to receive data and instructions sent by the vehicle-side controller and perform corresponding processing or display. USB flash drive is usually used to update the software or configuration information of the vehicle-side controller in the vehicle system. Once the identity authentication is passed, the host computer can flash new software or data to the vehicle-side controller through the USB flash drive.

[0079] It should be noted that after the step of determining whether the first identity information and the second identity information match according to the comparison result, the step further includes: if the match fails, returning to the step of restarting the vehicle-side controller through the analog switch.

[0080] It should be noted that restarting the vehicle-side controller can be to reset the operating state of the vehicle-side controller to the initial state and restart its operating program. In the case of identity authentication failure, restarting the vehicle-side controller can be an effective means to restore the normal operation of the system. By restarting, possible error states or configurations can be cleared and identity authentication can be attempted again.

[0081] In this embodiment, by comparing the first identity information in the configuration mode with the second identity information provided by the user, the system can verify whether the user's identity is legitimate. This identity authentication mechanism effectively prevents unauthorized users or devices from accessing the vehicle system, thereby enhancing the security of the system. Using an analog switch to send the identity authentication result and restart the vehicle-side controller increases the system's flexible control over hardware resources. By sending the identity authentication result to the host computer through the analog switch, so that the USB flash drive can be flashed through the host computer, it is ensured that only authorized users can update the software or data of the vehicle system, thereby improving the reliability of the operation.

[0082] In one implementation, in order to make the entire solution more complete, based on the above embodiments, a specific implementation process is proposed, such as Figure 4 As shown, Figure 4The following is a logic flow chart for the vehicle-side controller to judge the USB flash drive that has been placed with the identity authentication information matching file. After the vehicle-side controller completes the initialization, it determines whether the current machine is in configuration mode. If a USB flash drive upgrade is required, the machine needs to be switched to configuration mode. When the machine is switched to configuration mode, the serial port is used to initialize the device, and the configuration information used for USB flash drive authentication is sent to the vehicle-side controller through the host computer. After the vehicle-side controller stores the configuration information, the configuration is completed, and the configuration mode is entered again to judge, and the next step of USB flash drive insertion detection is entered. If the USB flash drive does not exist, the vehicle-side controller is restarted to enter the USB flash drive insertion detection loop again. If the USB flash drive device is detected, the pre-made signature information is obtained from the USB flash drive to complete the signature verification of the signature information in the USB flash drive. If the information matching and comparison is successful, the authentication pass information is fed back to the host computer on the PC side, and the vehicle-side controller completes the USB flash drive identity authentication, and continues the USB flash drive software flashing or data copying business. If the information matching and comparison fails, jump to restart the vehicle-side controller again.

[0083] In this embodiment, by switching the machine to configuration mode, the system can flexibly receive and store configuration information from the host computer. This mechanism allows the vehicle-side controller to be customized according to different needs or scenarios, improving the flexibility and configurability of the system. By verifying the pre-made signature information in the USB flash drive, the system can confirm the legitimacy and integrity of the USB flash drive and prevent the injection of malware or data. Through the automated upgrade process, the system can quickly complete software updates and data synchronization, improving the system's maintenance efficiency and reducing maintenance costs.

[0084] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the USB flash drive identity authentication method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0085] This application also provides a USB flash drive identity authentication device, please refer to Figure 5 , the USB flash drive identity authentication device comprises:

[0086] The mode detection module 10 is used to detect the vehicle operation mode, and when the vehicle's current operation mode is the configuration mode, detect whether a USB flash drive is connected;

[0087] The signature acquisition module 20 is used to acquire the signature information in the USB flash drive when the USB flash drive is detected to be connected, wherein the signature information is the second identity information encrypted by the private key;

[0088] An information decryption module 30, configured to decrypt the signature information using a public key to obtain the second identity information;

[0089] The identity authentication module 40 is used to obtain an identity authentication result by matching the first identity information in the configuration mode with the second identity information.

[0090] The U disk identity authentication device provided by the present application adopts the U disk identity authentication method in the above embodiment, which can solve the technical problem of the technical problem. Compared with the prior art, the beneficial effects of the U disk identity authentication device provided by the present application are the same as the beneficial effects of the U disk identity authentication method provided by the above embodiment, and the other technical features in the U disk identity authentication device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0091] The present application provides a USB flash drive identity authentication device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the USB flash drive identity authentication method in the above-mentioned embodiment one.

[0092] Reference below Figure 6 , which shows a schematic diagram of the structure of a USB flash drive identity authentication device suitable for implementing the embodiment of the present application. The USB flash drive identity authentication device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The USB flash drive authentication device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0093] like Figure 6As shown, the USB flash disk authentication device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the USB flash disk authentication device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the USB flash drive authentication device to communicate with other devices wirelessly or by wire to exchange data. Figure 6 The USB flash drive authentication device with various systems is shown in the figure, but it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0094] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0095] The USB flash drive authentication device provided by the present application adopts the USB flash drive authentication method in the above embodiment, which can solve the technical problem of the technical problem. Compared with the prior art, the beneficial effects of the USB flash drive authentication device provided by the present application are the same as the beneficial effects of the USB flash drive authentication method provided by the above embodiment, and the other technical features in the USB flash drive authentication device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0096] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0097] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0098] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the USB flash drive identity authentication method in the above-mentioned embodiment.

[0099] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0100] The computer-readable storage medium may be included in the USB flash drive identity authentication device; or may exist independently without being assembled into the USB flash drive identity authentication device.

[0101] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the USB flash drive identity authentication device, the USB flash drive identity authentication device can obtain exclusive content.

[0102] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0103] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0104] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0105] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned USB flash drive identity authentication method, and can solve the technical problem of the technical problem. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the USB flash drive identity authentication method provided in the above-mentioned embodiment, and will not be repeated here.

[0106] The present application also provides a computer program product, including a computer program, which implements the steps of the USB flash drive identity authentication method as described above when executed by a processor.

[0107] The computer program product provided by this application can solve the technical problem of the technical problem. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the USB flash drive identity authentication method provided by the above embodiment, which will not be repeated here.

[0108] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A USB flash drive identity authentication method, characterized in that: The method includes: Detect the vehicle operation mode. When the vehicle is currently in configuration mode, detect whether a USB flash drive is connected. When the USB flash drive is detected to be connected, the signature information in the USB flash drive is obtained, where the signature information is the second identity information encrypted by the private key; Decrypting the signature information using a public key to obtain the second identity information; The identity authentication result is obtained by matching the first identity information in the configuration mode with the second identity information.

2. The method according to claim 1, characterized in that After the step of detecting the vehicle operation mode, the method further comprises: When the vehicle's current operating mode is not the configuration mode, initialize the serial port device; When the serial port device is initialized, receiving and storing the configuration information output by the host computer; The vehicle operation mode is controlled to switch to the configuration mode according to the configuration information.

3. The method according to claim 1, characterized in that The step of obtaining the signature information in the USB flash drive includes: Get the U disk configuration information; Allocating a preset address to the USB flash drive based on the USB flash drive configuration information; Establish communication with the corresponding U disk according to the preset address, and obtain the signature information in the corresponding U disk.

4. The method according to claim 1, characterized in that The step of detecting whether a USB flash drive is connected comprises: When the USB flash drive is not detected, restart the vehicle-side controller through the analog switch; When the vehicle-side controller is restarted, return to the step of detecting whether a USB flash drive is connected.

5. The method according to claim 1, characterized in that The step of obtaining an identity authentication result by matching the first identity information in the configuration mode with the second identity information comprises: Comparing the first identity information and the second identity information in the configuration mode, and determining whether the first identity information and the second identity information match according to the comparison result; If the match is successful, the identity authentication result is sent to the host computer through the analog switch so that the USB flash drive can be flashed through the host computer.

6. The method according to claim 5, characterized in that After the step of determining whether the first identity information and the second identity information match according to the comparison result, the method further includes: If the matching fails, return to the step of restarting the vehicle-side controller through the analog switch.

7. A USB flash drive identity authentication device, characterized in that: The device comprises: The mode detection module is used to detect the vehicle operation mode. When the vehicle's current operation mode is configuration mode, it detects whether a USB flash drive is connected. A signature acquisition module, used to acquire signature information in the USB flash drive when the USB flash drive is detected to be connected, wherein the signature information is the second identity information encrypted by a private key; An information decryption module, used to decrypt the signature information using a public key to obtain the second identity information; The identity authentication module is used to obtain an identity authentication result by matching the first identity information in the configuration mode with the second identity information.

8. A USB flash drive identity authentication device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the USB flash drive identity authentication method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the USB flash drive identity authentication method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the USB flash drive identity authentication method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Vehicle electronic control unit data flushing method, vehicle electronic control unit data flushing system and memory medium

    CN104133696A

  • External equipment management method and device, electronic equipment and storage medium

    CN111506893A

  • Real-time authentication method of encrypted USB flash disk

    CN112491800A

  • USB peripheral authentication method, embedded system and storage medium

    CN116028905A

  • Zero-trust-based vehicle identity authentication method and related equipment

    CN116094722A