Interface expansion circuit, USB-KEY and control method thereof
By introducing interface expansion circuits in USB-KEY, the master chip and slave chip are combined with the SPI interface and USB HUB chip, the analog signal is extended by another USB-KEY, solving the high hardware cost when local devices and cloud servers access USB-KEY at the same time. and manage complexity issues, real-time data synchronization and independent authentication are implemented, reducing the complexity and cost of hardware equipment management.
Patent Information
- Application Number
- CN202410926266.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-08
AI Technical Summary
When the prior art realizes that local devices and cloud servers simultaneously access USB-KEY, there are problems such as high hardware cost, difficulty in data synchronization, and high management complexity. In particular, the use of USB Server devices that support multi-session access requires additional hardware purchase. USB The redirection software cannot synchronize operational data, the specific services of cloud service providers are limited by support and maintenance, and the dual USB-KEY approach increases enterprise cost and management complexity.
By introducing interface expansion circuits in USB-KEY, the master chip and slave chip are combined with the SPI interface and USB HUB chip, the analog signal is extended to another USB-KEY, allowing local devices and cloud servers to synchronize their respective USB-KEY status and operation data in real time. , realize the expansion of USB-KEY interface and reduce the complexity and cost of hardware device management.
The synchronous operation of local devices and cloud servers accessing USB-KEY simultaneously reduces the complexity and cost of hardware device management, avoids complex management of multiple USB-KEY devices, and reduces the need to purchase other hardware devices.
Smart Images

Figure CN118921172A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of USB-KEY security authentication, in particular to an interface expansion circuit, a USB-KEY and a USB-KEY control method. Background Art
[0002] USB-KEY is usually called USB security token or U shield, which is used to enhance the security of computer systems and provide users with a secure means of identity authentication and data protection. Currently, the ways to enable local devices and cloud servers to access USB-KEY at the same time include: USB Server devices, USB redirection software with virtualization technology, cloud service provider's specific interface services, and dual USB-KEY. However, the use of USB Server devices that support multi-session access requires additional hardware equipment, resulting in high costs; USB redirection software with virtualization technology shares the right to use USB-KEY by switching local devices and cloud servers, and cannot synchronize operation data; specific services of cloud service providers require customized solutions, and the availability of services is also limited by the support and maintenance of cloud service providers; the use of dual USB-KEY requires the management of two devices, which increases enterprise costs and the complexity of hardware device management. Summary of the invention
[0003] The purpose of the present invention is to provide an interface expansion circuit, a USB-KEY and a control method thereof, so as to realize the expansion of the USB-KEY interface. When a local device and a cloud server access the USB-KEY at the same time, the security chip of the USB-KEY expands another USB-KEY through an interface analog signal, so that the local device and the cloud server synchronize the status and operation data of their respective USB-KEYs in real time, thereby reducing the hardware cost and the complexity of hardware device management.
[0004] The technical solution provided by the present invention is as follows:
[0005] The present invention provides an interface expansion circuit, which is applied in a USB-KEY and includes:
[0006] The main chip, when receiving the first authentication instruction, loads the security authentication algorithm in the first memory space to perform the first identity authentication, and the main chip acts as the first USB-KEY to output the first identity authentication information; the main chip sends an interface analog signal.
[0007] The slave chip is connected to the master chip and simulates a second USB-KEY in response to an interface simulation signal sent by the master chip.
[0008] When the master chip receives the second authentication instruction from the slave chip, the master chip loads the security authentication algorithm in the second memory space to perform a second identity authentication and maps the second identity authentication information to the slave chip; the slave chip acts as a second USB-KEY and outputs the second identity authentication information.
[0009] Furthermore, it also includes: a USB HUB chip, which is connected to the master chip and the slave chip respectively, and is used to manage the USB interface; and allows the slave chip to simulate a second USB-KEY as an independent USB-KEY.
[0010] Furthermore, it also includes: a USB port power supply module connected to the main chip, for providing a stable power supply when the main chip performs identity authentication.
[0011] Furthermore, it also includes: the master chip is connected to the slave chip through the SPI interface.
[0012] Furthermore, it also includes: the master chip and the slave chip are USB-KEY chips.
[0013] The present invention also provides a USB-KEY, comprising: an interface expansion circuit as described in any one of the above steps.
[0014] The present invention also provides a USB-KEY control method, comprising:
[0015] The master chip acts as the first USB-KEY and sends an interface simulation signal to the slave chip; the slave chip simulates a second USB-KEY in response to the interface simulation signal sent by the master chip.
[0016] When the first USB-KEY receives the first authentication instruction, a security authentication algorithm is loaded into the first memory space on the main chip to perform a first identity authentication, and the first USB-KEY outputs first identity authentication information.
[0017] When the master chip receives the second authentication instruction sent by the slave chip, the master chip loads the security authentication algorithm in the second memory space to perform the second identity authentication, and maps the second identity authentication information to the slave chip; the second USB-KEY outputs the second identity authentication information.
[0018] Furthermore, after the slave chip simulates the second USB-KEY in response to the interface simulation signal sent by the master chip, it also includes: mapping one of the first USB-KEY and the second USB-KEY to the cloud server, and connecting the remaining USB-KEY to the local device; the cloud server and the local device synchronize the status and operation data of their respective USB-KEYs in real time.
[0019] Furthermore, the slave chip sends the second authentication instruction to the master chip through the SPI interface.
[0020] Furthermore, the first and second authentication instructions include security authentication and digital signature.
[0021] The present invention provides an interface expansion circuit, a USB-KEY and a control method thereof, so as to realize the expansion of the USB-KEY interface. When the cloud server accesses the USB-KEY, the USB-KEY of the local device will not be exited, and the cloud server and the local device independently complete the authentication through their respective USB-KEYs, thereby reducing the complexity of managing multiple USB-KEY devices and reducing the cost of purchasing other hardware devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The following will explain the preferred implementation mode in a clear and understandable manner with reference to the accompanying drawings, and further explain the above-mentioned characteristics, technical features, advantages and implementation methods of an interface expansion circuit, USB-KEY and USB-KEY control method.
[0023] Figure 1 is a circuit structure diagram of an embodiment of an interface expansion circuit of the present invention;
[0024] Figure 2 It is a circuit structure diagram of a USB port power supply module of an interface expansion circuit of the present invention;
[0025] Figure 3 It is a circuit structure diagram of a crystal oscillator and a reset circuit of an interface expansion circuit of the present invention;
[0026] Figure 4 It is a working principle diagram of an embodiment of a USB-KEY control method of the present invention. DETAILED DESCRIPTION
[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0028] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.
[0029] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0031] USB-KEY, also known as U shield, is a high-security tool used for electronic banking. It usually contains a built-in micro smart card processor to ensure the security of transaction data through digital certificates. U shield is connected to a computer or other device through a USB interface and is used for operations such as identity authentication, data encryption and decryption, digital signature and secure storage to ensure the security of electronic banking transactions.
[0032] For a regular U-Shield, when it is inserted into the USB port of a local device, the local device's operating system recognizes the U-Shield through a driver, and the driver establishes a communication connection with the U-Shield so that data can be sent and received after identity authentication. In some special business demand situations, such as two-factor authentication, remote access and local operations, cross-platform operations, and other scenarios, the cloud server and local devices need to access the U-Shield at the same time. However, when a cloud server accesses a regular U-Shield, for security reasons, the U-Shield will not be used in two places at the same time, which will cause the U-Shield of the local device to log out; or if USB redirection technology is used, once the U-Shield is redirected to the cloud server, the access rights of the local device may be revoked, causing the local device to be logged out.
[0033] Under the existing technology, when the USB-KEY communicates with the cloud server, the local device cannot recognize the security certificate at the same time, because at this time the USB-KEY is mapped from the local device to the cloud server, and its functions and interfaces have been transferred to the remote environment through the network connection. At this time, the local device cannot directly access the USB-KEY device as usual. In order to enable the local device and the cloud server to access the USB-KEY at the same time, the current methods are: using a USBServer device that supports multi-session access, providing a network interface for different systems to connect and use the USB-KEY; using USB redirection software with virtualization technology to share the USB-KEY connected to the physical host with the cloud server; using the specific services of the cloud service provider to connect the USB-KEY to the cloud server in a shared manner through a specific secure channel; using a dual USB-KEY method, two independent USB-KEYs are used for identity authentication and encryption operations in the local device and cloud server environment respectively.
[0034] However, when using a USB Server device that supports multi-session access, additional hardware devices need to be purchased, resulting in high costs; USB redirection software combined with virtualization technology shares the use rights of the USB-KEY by switching local devices and cloud servers, and operational data cannot be synchronized; specific services of cloud service providers require cooperation with cloud service providers to develop customized solutions, and the availability of services is also limited by the support and maintenance of cloud service providers; the use of dual USB-KEY requires the management of two devices, which increases enterprise costs and the complexity of hardware device management.
[0035] Therefore, the present invention provides a USB-KEY, and the local device and the cloud server can access the USB-KEY at the same time, and through the expansion of the interface, the cloud server and the local device can independently complete the authentication through their respective USB-KEYs. Based on the USB-KEY of the present invention, the cloud server and the local device can log in at the same time, and there is no need to adopt customized solutions, dual USB-KEYs, USB Servers, etc., which reduces the cost of purchasing hardware and the complexity of hardware device management.
[0036] The USB-KEY of the present invention realizes identity authentication by loading the digital certificate stored in the main chip, and the main chip is embedded with identity information, digital certificate, etc. The interface extended from the chip in the USB-KEY of the present invention is a communication channel, and the slave chip performs identity authentication by loading the identity information of the main chip, and its operation instructions are distributed to the main chip to realize the function of simulating the main chip. The USB-KEY of the present invention is generated based on an interface expansion circuit, which includes a main chip and a slave chip, and realizes the expansion of the USB-KEY interface, so that the local device and the cloud server can access the USB-KEY at the same time, and the cloud server and the local device can independently complete the authentication through their respective USB-KEYs.
[0037] The following is a description with reference to the accompanying drawings:
[0038] In one embodiment of the present invention, Figure 1 As shown, an interface expansion circuit includes:
[0039] When the main chip 10 receives the first authentication instruction, the main chip 10 loads the security authentication algorithm in the first memory space to perform the first identity authentication. The main chip 10 acts as the first USB-KEY, outputs the first identity authentication information, and sends an interface analog signal.
[0040] The slave chip 20 is connected to the master chip 10 ; in response to the interface simulation signal sent by the master chip 10 , the slave chip 20 simulates a second USB-KEY.
[0041] When the master chip 10 receives the second authentication instruction from the slave chip 20, the master chip 10 loads the security authentication algorithm in the second memory space to perform the second identity authentication, and maps the second identity authentication information to the slave chip 20. The slave chip 20 acts as the second USB-KEY and outputs the second identity authentication information.
[0042] Specifically, the master chip 10 and the slave chip 20 are both secure cryptographic chips, which are used to ensure that the communication channel of the USB-KEY for identity authentication is not exposed. The master chip 10, as the first USB-KEY, has complete USB-KEY functions, including security authentication, digital signature, etc. There are multiple memory spaces in the master chip, one for the identity authentication of the first USB-KEY, and the others for the identity authentication of other extended USB-KEYs.
[0043] In this embodiment, the master chip 10 and the slave chip 20 both have SPI interfaces. The SPI interface of the master chip 10 is connected to the SPI interface of the slave chip 20 through the SPI full-duplex protocol communication, so the master chip 10 and the slave chip 20 can simultaneously perform bidirectional communication and transmit data.
[0044] In this embodiment, the master chip 10 has three SPI interfaces, namely, MISO interface, MOSI interface, and SCK interface, wherein MISO interface and MOSI interface are input and output interfaces, and SCK interface is a clock interface. The slave chip 20 also has three SPI interfaces, namely, MISO interface, MOSI interface, and SCK interface, wherein MISO interface and MOSI interface are input and output interfaces, and SCK interface is a clock interface; in this embodiment, MISO interface, MOSI interface, and SCK interface are connected correspondingly. By connecting the master chip 10 with the SPI interface corresponding to the slave chip 20, the master and slave chips can use the SPI communication protocol as a communication bridge to perform data transmission and exchange of control instructions, thereby realizing fast and stable data transmission, and can also synchronize the status and operation data of both parties in real time, ensuring that the access and operation of the USB-KEY by the device end and the virtual cloud server end are consistent.
[0045] The SDA and SCL pins of the master chip 10 are connected to the SDA and SCL pins of the slave chip 20. The master chip 10 sends an interface simulation signal to the slave chip 20 through these two pins, so that a USB-KEY hardware device can simulate the behavior of multiple devices. The slave chip 20 responds to the simulation signal to simulate a second USB-KEY. When the second USB-KEY of the slave chip 20 needs to be authenticated, an authentication instruction needs to be sent to the master chip 10. After the master chip authenticates the identity of the second USB-KEY in the second memory space, it feeds back the result to the slave chip 20.
[0046] Please refer to Figure 1When implementing interface expansion, after the second USB-KEY is expanded, it needs to be independently identified. The interface expansion circuit also includes:
[0047] The USB HUB chip 30 is connected to the master chip 10 and the slave chip 20 respectively, and is mainly responsible for coordinating data transmission between the host and multiple USB devices. It can be used for data transmission management, bandwidth management, port expansion, etc. It is used to manage the USB interface and allows the slave chip 20 to simulate a second USB-KEY as an independent USB-KEY.
[0048] Specifically, in this embodiment, the USB HUB chip 30 has multiple sets of USB expansion interfaces, which are respectively connected to the DP and DM pins of the master chip 10 and the slave chip 20. The master chip 10 and the slave chip 20 can simultaneously perform independent data transmission with external devices through these two USB ports.
[0049] The USB HUB chip 30 has two upstream interfaces (DM1, DP1), and the main chip 10 has two downstream interfaces (DM1, DP1). The two downstream interfaces (DM1, DP1) of the main chip 10 are correspondingly connected to the two upstream interfaces (DM1, DP1) of the USB HUB expansion chip 30, and the signal transmitted between the main chip 10 and the USB HUB expansion chip 30 is a differential signal.
[0050] The USB HUB chip 30 has two upload interfaces (DM2, DP2), and the slave chip 20 has two downstream interfaces (DM2, DP2). The two downstream interfaces (DM2, DP2) of the slave chip 20 are correspondingly connected to the two upload interfaces (DM2, DP2) of the USB HUB expansion chip 30, and the signal transmitted between the slave chip 20 and the USB HUB expansion chip 30 is a differential signal.
[0051] Through the differential signal of the master and slave chips, the USB-KEY can be independently identified in both the physical host and the virtual machine.
[0052] Please refer to Figure 2 When the main chip 10 performs identity authentication, it is necessary to provide a stable voltage suitable for the main chip 10 to work. The interface expansion circuit also includes:
[0053] The USB port power supply module 40 is connected to the main chip 10 and is used to provide a stable power supply when the main chip 10 performs identity authentication.
[0054] Specifically, in this embodiment, the USB port power supply module 40 is connected to the positive power supply electrode (VDD33) of the main chip 10, and is used to provide a stable power supply when the main chip 10 performs identity authentication to ensure its normal operation and operation. The USB-KEY is connected to a local device, such as a computer or a laptop, through its USB interface. When the power supply module of the USB-KEY detects the USB connection and identifies the power provided by the local device, it converts the voltage provided by the local device (such as the 5V USB standard voltage) into a different voltage level suitable for the operation of the USB-KEY main chip 10, ensuring that a stable power supply is provided to the main chip.
[0055] The USB port power supply module 40 contains a circuit board of model AS2932M5-3.3, wherein the VOUT pin outputs the regulated stable voltage to the main chip 10. The capacitor and resistor components in the USB port power supply module 40 are used to filter out noise and ripples on the input power supply to provide a smoother DC power supply.
[0056] Please refer to Figure 3 In order to ensure that the main chip 10 can operate stably and safely and reliably when performing identity authentication, the interface expansion circuit also includes:
[0057] The crystal oscillator circuit 50 is connected to the EXTAL pin of the master chip 10 and the EXTAL pin of the slave chip 20 respectively, and mainly provides a stable clock signal to the master chip 10 and the slave chip 20 to ensure that the digital logic circuits inside the master chip 10 and the slave chip 20 operate synchronously to avoid data misalignment.
[0058] The crystal oscillator circuit 50 also includes an oscillator module, the VCC pin of the oscillator provides power supply voltage for the oscillator; the CLK pin outputs the clock signal generated by the oscillator; the OE pin is a control pin, when OE is set to a low level, the CLK output may be disabled, and when the high level is enabled, the CLK output is enabled.
[0059] The reset circuit 60, whose RSTOUT pin is connected to the FCEN pin of the master chip 10, and whose VDD33 pin is connected to the VDD33 pin of the slave chip 20, is used for system startup initialization and fault recovery to ensure the safety authentication of the master chip. The reset circuit 60 includes resistors and capacitors to form a delay circuit to achieve delayed release of the reset signal. A PNP transistor is also used to generate and control the reset signal to ensure that the circuit can be correctly initialized when reset.
[0060] The crystal oscillator circuit 50 and the reset circuit 60 together ensure the stable operation and reliability of the master chip 10 and the slave chip 20. The crystal oscillator circuit 50 provides the necessary clock signal, while the reset circuit 60 provides a reset mechanism when the system starts or encounters a problem.
[0061] Please refer to Figure 4 , which shows a flow chart of a USB-KEY control method provided in some embodiments of the present disclosure. The method is executed based on the interface expansion circuit described above, and includes at least the following steps:
[0062] The S100 master chip acts as the first USB-KEY and sends an interface simulation signal to the slave chip. The slave chip simulates a second USB-KEY in response to the interface simulation signal sent by the master chip.
[0063] S200 When the first USB-KEY receives the first authentication instruction, a security authentication algorithm is loaded into the first memory space on the main chip to perform a first identity authentication, and the first USB-KEY outputs first identity authentication information.
[0064] S300 When the master chip receives the second authentication instruction sent by the slave chip, the master chip loads the security authentication algorithm in the second memory space to perform the second identity authentication, and maps the second identity authentication information to the slave chip, and the second USB-KEY outputs the second identity authentication information.
[0065] Specifically, USB-KEY, also known as U-Shield, is used to enhance the security of computer systems and provide users with a secure means of identity authentication and data protection.
[0066] When the USB-KEY is inserted into the USB port of the physical host and the internal firmware is started, the USB controller of the physical host will detect the access of a new device, and the operating system will search for and load the corresponding driver. If a suitable driver already exists in the system, the driver will establish a communication connection with the USB-KEY, and the main chip will be initialized.
[0067] The master chip sends an interface activation simulation signal to the slave chip through the communication interface. After receiving the activation instruction, the slave chip responds to the simulation signal, activates the USB-KEY simulation function of the slave chip, and then simulates the second USB-KEY.
[0068] After the main chip is initialized, the authentication algorithm needs to be loaded to prepare for security authentication operations. There is usually a secure storage area in the U-Shield for storing sensitive information such as authentication algorithms and keys. The main chip will read the necessary authentication algorithms from this secure storage area. After reading the authentication algorithm, the algorithm will be loaded into the memory of the main chip for execution. These algorithms may include symmetric encryption algorithms, asymmetric encryption algorithms, hash algorithms, etc. After executing the loaded authentication algorithm, the U-Shield will establish a secure session with the computer or other host device to ensure the security of data transmission.
[0069] In one embodiment of the present application, the main chip contains two memory spaces, the first memory space is used for the identity authentication of the first USB-KEY, and the second memory space is used for the identity authentication of the second USB-KEY of the slave chip. After the main chip authenticates, the authentication result of the second USB-KEY is mapped to the slave chip.
[0070] After the slave chip simulates the second USB-KEY in response to the interface simulation signal sent by the master chip, the above step S100 may include: mapping one of the first USB-KEY and the second USB-KEY to the cloud server, and connecting the remaining USB-KEY to the local device; the cloud server and the local device independently complete authentication through their respective USB-KEYs.
[0071] Specifically, before the two USB-KEYs are mapped, the two USB-KEYs need to be identified. The USB HUB chip is an integrated circuit used to manage the connection of multiple USB devices. When managing the USB interface, it can control the local host to identify the simulated device connected to the HUB management. If the local device is connected to a U shield through the USB HUB, and the U shield signal is simulated from the chip, the USB HUB chip can correctly transmit these simulated signals from the chip to the host, so that the host can recognize the U shield simulated from the chip as an independent device.
[0072] Through the USB HUB, the USB-KEY simulated from the chip can be recognized by the physical host as an independent device, and any one of the two USB-KEYs recognized by the local device can be mapped to the virtual cloud server. On the local device, after the operating system recognizes the connected U shield, it configures the virtualization environment to select the corresponding cloud server, selects one of the USB-KEYs in the cloud server for connection, loads the corresponding driver, and connects the other USB-KEY to the local device.
[0073] On the basis that both the local device and the virtual cloud server can independently identify and manage the U-Shield, the applications in the local device and virtual machine are configured to use the connected or mapped U-Shield for operation. The local device and the virtual cloud server can operate their respective USB-KEYs at the same time.
[0074] When the slave chip sends the second authentication instruction to the master chip, the above step S300 may include: the slave chip sends the second authentication instruction to the master chip through the SPI interface.
[0075] Specifically, in the process of executing the slave chip simulating the second USB-KEY, the master chip and the slave chip establish a communication connection through the SPI interface to achieve high-speed data transmission and control signal exchange to ensure the smooth progress of the task. The slave chip sends data to the master chip through the MISO pin, and the master chip sends data to the slave chip through the MOSI pin, and then synchronizes the data transmission through the SCK pin.
[0076] When the master chip and the slave chip receive operation instructions at the same time, the master chip sends control commands or data to the slave chip through the SPI interface. These operation commands include security authentication, digital signature, etc. The master chip and the slave chip respond to the instructions of the upper application in turn, and the master chip and the slave chip synchronize data transmission through the SCK line.
[0077] When the master chip and the slave chip do not receive the operation instruction at the same time, and only the master chip receives the operation instruction, the security authentication algorithm is loaded into the first memory space of the master chip to perform identity authentication of the master chip, the processor on the master chip executes the task to be completed, stores the calculation result in the internal memory of the master chip, and transmits the calculated result to the upper-level application through the corresponding communication interface.
[0078] When the master chip and the slave chip do not receive the operation instruction at the same time, and only the slave chip receives the operation instruction, the slave chip sends the received instruction to the master chip through the MISO line. After the master chip receives the instruction from the slave chip, it loads the security authentication algorithm into the second memory space of the master chip to authenticate the slave chip, and maps the second authentication information to the slave chip through the MOSI line. The slave chip transmits the calculation result to the upper-level application through the corresponding communication interface.
[0079] Based on the interface expansion circuit of the present application, the expansion of the USB-KEY interface is achieved through the above-mentioned USB-KEY control method. When the cloud server accesses the USB-KEY, the USB-KEY of the local device will not be exited. The cloud server and the local device independently complete the authentication through their respective USB-KEYs, which reduces the complexity of managing multiple USB-KEY devices and reduces the cost of purchasing other hardware devices.
[0080] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.
Claims
1. An interface expansion circuit, used in a USB-KEY, characterized in that: include: The main chip, when receiving the first authentication instruction, loads the security authentication algorithm in the first memory space to perform the first identity authentication, and the main chip acts as the first USB-KEY to output the first identity authentication information; the main chip sends an interface analog signal; A slave chip connected to the master chip; In response to the interface simulation signal sent by the main chip, simulate a second USB-KEY; When the master chip receives the second authentication instruction from the slave chip, the master chip loads the security authentication algorithm in the second memory space to perform a second identity authentication, and maps the second identity authentication information to the slave chip; the slave chip acts as a second USB-KEY and outputs the second identity authentication information.
2. The interface expansion circuit according to claim 1, characterized in that: Also includes: A USB HUB chip, connected to the master chip and the slave chip respectively, for managing a USB interface; The slave chip is allowed to simulate a second USB-KEY as an independent USB-KEY.
3. The interface expansion circuit according to claim 1, characterized in that: Also includes: The USB port power supply module is connected to the main chip and is used to provide a stable power supply when the main chip performs identity authentication.
4. The interface expansion circuit according to claim 1, characterized in that: The master chip is connected to the slave chip via an SPI interface.
5. The interface expansion circuit according to claim 1, characterized in that: The master chip and slave chip are security password chips.
6. A USB-KEY, characterized in that: The invention comprises the interface expansion circuit described in any one of claims 1 to 5.
7. A method for controlling a USB-KEY, characterized in that: include: The master chip acts as the first USB-KEY and sends an interface analog signal to the slave chip; The slave chip simulates a second USB-KEY in response to the interface simulation signal sent by the master chip; When the first USB-KEY receives the first authentication instruction, a security authentication algorithm is loaded into the first memory space on the main chip to perform a first identity authentication, and the first USB-KEY outputs first identity authentication information; When the master chip receives the second authentication instruction sent by the slave chip, the master chip loads the security authentication algorithm in the second memory space to perform a second identity authentication, and maps the second identity authentication information to the slave chip; The second USB-KEY outputs second identity authentication information.
8. The USB-KEY control method according to claim 7, characterized in that: After the slave chip simulates the second USB-KEY in response to the interface simulation signal sent by the master chip, the method further includes: One of the first USB-KEY and the second USB-KEY is mapped to the cloud server, and the remaining USB-KEY is connected to the local device; the cloud server and the local device independently complete the authentication through their respective USB-KEYs.
9. The USB-KEY control method according to claim 7, characterized in that: The slave chip sends the second authentication instruction to the master chip through the SPI interface.
10. The USB-KEY control method according to claim 7, characterized in that: The first and second authentication instructions include security authentication and digital signature.
