WO2016008447A1 - 实现智能密钥设备模式间切换的方法和装置 - Google Patents
实现智能密钥设备模式间切换的方法和装置 Download PDFInfo
- Publication number
- WO2016008447A1 WO2016008447A1 PCT/CN2015/084316 CN2015084316W WO2016008447A1 WO 2016008447 A1 WO2016008447 A1 WO 2016008447A1 CN 2015084316 W CN2015084316 W CN 2015084316W WO 2016008447 A1 WO2016008447 A1 WO 2016008447A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mode
- smart key
- interface
- key device
- otp
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/74—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information operating in dual or compartmented mode, i.e. at least one secure mode
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a method and apparatus for implementing mode switching between smart key devices.
- KEY Electronic Signature Tool
- KEY Electronic Signature Tool
- It has built-in single-chip or smart card chip, has a certain storage space, can store the user's private key and digital certificate, and uses the built-in public key algorithm to realize user identity authentication and data encryption. Wait.
- it is mainly used to store user certificates and sign transaction information, to achieve user identity authentication during online banking transactions, and to ensure non-repudiation of transactions.
- OTP One-time Password
- OTP is based on a special algorithm to generate an unpredictable random number combination.
- the dynamic password is valid once and is mainly used in online banking and other fields to protect users' transactions and logins.
- OTP can be applied to terminal devices such as mobile phones and tablet computers, and can also be applied to specialized hardware devices.
- the KEY function and the OTP function can be simultaneously integrated into one hardware device.
- the above two functions are on the same carrier, the functions are independent of each other, and the two cannot be easily switched.
- the embodiments of the present invention aim to solve the above technical problems at least to some extent.
- the first object of the present invention is to provide a method for implementing mode switching between smart key devices, which can conveniently and reliably implement switching between KEY mode and OTP mode, and realizes both functions and physical functions.
- the integration saves costs and provides convenience for users.
- a second object of the present invention is to provide another method of implementing mode switching between smart key devices.
- a third object of the present invention is to provide another method of implementing mode switching between smart key devices.
- a fourth object of the present invention is to provide an apparatus for implementing switching between modes of a smart key device.
- a fifth object of the present invention is to provide another apparatus for implementing mode switching between smart key devices.
- a sixth object of the present invention is to provide another apparatus for implementing switching between modes of a smart key device.
- a method for implementing mode switching between smart key devices includes: determining that the smart key device establishes a connection with the terminal device through the first interface, And if the smart key device receives the switching instruction sent by the first button, the smart key device switches from the first mode currently in the mode to the second mode, where the first mode is an electronic signature tool One of a KEY mode and a dynamic token OTP mode, the second mode being another one of the KEY mode and the OTP mode.
- the method for implementing the mode switching between the smart key devices in the embodiment of the present invention after determining that the smart key device establishes a connection with the terminal device through the first interface, receiving the switching instruction sent by the first button to switch from the first mode currently in operation
- the switching between the KEY mode and the OTP mode is conveniently and reliably implemented, and the functions and physical integrations of the two are realized, which saves cost and provides convenience for the user.
- another method for implementing mode switching between smart key devices includes: determining that the smart key device detects the first interface and the terminal device When the connection state is never established to establish a connection state, the smart key device switches from the current mode to the KEY mode, and the current mode is at least the OTP mode.
- the method for implementing the mode switching between the smart key devices in the embodiment of the present invention after determining that the smart key device detects that the connection state between the first interface and the terminal device is changed from the established connection state to the establishment of the connection state, the smart key device is from the current The mode is switched to the KEY mode, which makes the switching between the smart key device modes simpler and more convenient, and provides convenience for the user.
- a method for implementing mode switching between smart key devices which includes: determining that the smart key device establishes a connection with the terminal device through the first interface, The key device receives the switching instruction sent by the first button, and the smart key device switches from the first mode currently in the mode to the second mode, wherein the first mode is one of an electronic signature tool KEY mode and a dynamic token OTP mode.
- the second mode is another mode of the KEY mode and the OTP mode; determining that the smart key device detects that the first interface and the terminal device are switched from the unestablished connection state to the established connection state, the smart key device is from the current The mode in which it is placed is switched to the KEY mode, and the mode currently in operation includes at least the OTP mode.
- the method for implementing the mode switching between the smart key devices in the embodiment of the present invention saves the state information of the two modes by using the information structure in the smart key device, thereby facilitating the switching between the modes and realizing the functions of the two modes. And physical integration, saving costs and providing convenience for users.
- an apparatus for implementing mode switching between smart key devices includes: a first switching module.
- the first switching module is configured to: after the smart key device establishes a connection with the terminal device by using the first interface, receive a switching instruction sent by the first button, and switch the smart key device from the first mode to the second mode.
- the first mode is one of an electronic signature tool KEY mode and a dynamic token OTP mode
- the second mode is another mode of the KEY mode and the OTP mode.
- the first switching module may receive the switching instruction sent by the first button, and switch the smart key device from the first mode currently in the mode to the second mode.
- the smart key device is in the KEY mode
- the first switching module receives the switching instruction sent by the first button, it can switch to the OTP mode.
- the smart key device is in the OTP mode
- the first switching module receives the switching instruction sent by the first button, it can switch to the KEY mode.
- the apparatus for implementing the mode switching between the smart key devices in the embodiment of the present invention after determining that the smart key device establishes a connection with the terminal device through the first interface, receiving the switching instruction sent by the first button from the first mode currently in the mode For the first
- the second mode conveniently and reliably implements the switching between the KEY mode and the OTP mode, realizes the integration of the functions and the physical, saves the cost, and provides convenience for the user.
- an apparatus for implementing mode switching between smart key devices includes: a second switching module.
- the second switching module is configured to determine that the smart key device switches from the current mode to the KEY mode when the smart key device detects that the first interface and the terminal device are switched from the unestablished connection state to the established connection state, and the current The mode in which it is located includes at least the OTP mode.
- the second switching module can switch from the currently-on mode to the KEY mode.
- the smart key device is USBKEY and is in the second sub-mode of OTP, it can be automatically switched to KEY mode by simply connecting to the host computer through the USB interface.
- the device for implementing the mode switching between the smart key devices determines that the smart key device is from the current when the smart key device detects that the connection state between the first interface and the terminal device is changed from the established state to the established connection state.
- the mode is switched to the KEY mode, which makes the switching between the smart key device modes simpler and more convenient, and provides convenience for the user.
- an apparatus for implementing mode switching between smart key devices including: a first switching module, configured to determine that the smart key device passes the first interface After establishing the connection with the terminal device, when the smart key device receives the switching instruction sent by the first button, the smart key device switches from the first mode in which it is currently located to the second mode, where the The first mode is one of an electronic signature tool KEY mode and a dynamic token OTP mode, the second mode is another one of the KEY mode and the OTP mode; and the second switching module is configured to determine When the smart key device detects that the connection state between the first interface and the terminal device is changed to the establishment of the connection state, the smart key device switches from the current mode to the KEY mode.
- the mode currently in operation includes at least the OTP mode.
- the device for implementing the mode switching between the smart key devices in the embodiment of the present invention can conveniently and reliably implement the switching between the KEY mode and the OTP mode, realizes the integration of the functions and the physical, saves the cost, and provides the user with the convenient.
- FIG. 1 is a flow chart of a method of implementing inter-mode handover of a smart key device in accordance with one embodiment of the present invention.
- FIG. 2 is a flow chart of a method for implementing inter-mode handover of a smart key device in accordance with another embodiment of the present invention.
- FIG. 3 is a flowchart of a method for implementing inter-mode handover of a smart key device according to still another embodiment of the present invention.
- FIG. 4 is a diagram of a smart key device switching from a first mode to a second mode currently in accordance with an embodiment of the present invention. The specific flow chart.
- FIG. 5 is a flow chart of a method for implementing inter-mode handover of a smart key device according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of an apparatus for implementing inter-mode handover of a smart key device according to an embodiment of the present invention.
- FIG. 1 is a flow chart of a method for implementing inter-mode handover of a smart key device, in which the smart key device may include a first mode and a second mode, in accordance with an embodiment of the present invention.
- the method for implementing mode switching between smart key devices includes:
- the smart key device can establish a connection with the terminal device through the first interface.
- the first interface may include a wired interface or a wireless interface
- the wired interface may include a USB interface or an audio interface
- the wireless interface may include a Bluetooth interface, an infrared interface, an NFC interface, or a WIFI interface.
- the smart key device can be USBKEY, audio KEY, Bluetooth KEY, infrared KEY, NFCKEY or WIFIKEY.
- a connection can be established with the terminal through the USB interface;
- the smart key device is an audio KEY, a connection can be established with the terminal through the audio interface;
- the smart key device is a Bluetooth KEY, the terminal can be opened.
- the Bluetooth module of the device establishes a connection with the terminal through the Bluetooth interface; when the smart key device is an infrared KEY, the infrared module of the terminal device can be activated to establish a connection with the terminal through the infrared interface;
- the smart key device is NFCKEY, the device can be turned on.
- the NFC module of the terminal device establishes a connection with the terminal through the NFC interface.
- the WIFIKEY the WIFI module of the terminal device can be opened, and the terminal is established through the WIFI interface.
- the smart key device receives a switching instruction sent by the first button.
- the smart key device may have a first button, and the first button may be a navigation button. After determining that the smart key device establishes a connection with the terminal device through the first interface, the smart key device may receive a switching instruction sent by the first button, so that the smart key device switches from the first mode to the second mode. .
- the smart key device switches from the first mode currently in the mode to the second mode.
- the smart key device may have two modes, a KEY mode and an OTP mode.
- the mode when the smart key device is in the KEY mode, after receiving the switching instruction sent by the first button, the mode can be switched to the OTP mode.
- the smart key device when the smart key device is in the OTP mode, after receiving the switching instruction sent by the first button, it can switch to the KEY mode.
- the OTP mode is the OTP first sub mode.
- the smart key device may include a sleep state and an awake state. When the smart key device is in the first mode or the second mode, it is in an awake state.
- the smart key device When the smart key device is connected to the terminal device through the first interface, and the mode of the smart key device is in the first sub-mode of the OTP, if the first interface is disconnected from the terminal device, the smart key device enters a sleep state. .
- the method for implementing the mode switching between the smart key devices in the embodiment of the present invention after determining that the smart key device establishes a connection with the terminal device through the first interface, receiving the switching instruction sent by the first button to switch from the first mode currently in operation
- the switching between the KEY mode and the OTP mode is conveniently and reliably implemented, and the functions and physical integrations of the two are realized, which saves cost and provides convenience for the user.
- FIG. 2 is a flow chart of a method for implementing inter-mode handover of a smart key device in accordance with another embodiment of the present invention.
- the method for implementing mode switching between smart key devices includes:
- the smart key device may be in a sleep state and the smart key device may enter a wake state from a sleep state.
- the smart key device receives the wake-up instruction.
- the wake-up command may be from the first interface or the second button, and the second button may be a power-on button.
- the smart key device may determine whether the wake-up instruction is from the first interface, and if the wake-up instruction is not from the first interface, determining that the smart key device does not establish a connection with the terminal device through the first interface, and determining to wake up Whether the command comes from the second button, if the wake-up command comes from the second button, enters the OTP mode.
- the OTP mode is the OTP second sub mode.
- the smart key device switches from the current mode to the KEY mode.
- the smart key device when the first connection between the first interface of the smart key device and the terminal device is changed to the established connection state, the smart key device may switch from the second sub mode of the currently in OTP to KEY mode.
- the smart key device when the smart key device is USBKEY and is in the second sub-mode of OTP, it only needs to be connected to the host computer through the USB interface, and can automatically switch to the KEY mode.
- the smart key device When the mode of the smart key device is in the KEY mode, if it is detected that the first interface is disconnected from the terminal device, the smart key device enters a sleep state.
- the smart key device When the mode of the smart key device is in the second sub mode of the OTP, if the trigger command of the second button is detected, the smart key device enters a sleep state.
- the method for implementing the mode switching between the smart key devices in the embodiment of the present invention when the smart key device detects that the first interface and the terminal device are not connected to establish a connection state, the smart key device is from the current The mode is switched to the KEY mode, which makes the switching between the smart key device modes simpler and more convenient, and provides convenience for the user.
- FIG. 3 is a flowchart of a method for implementing inter-mode handover of a smart key device according to still another embodiment of the present invention.
- the method for implementing mode switching between smart key devices includes:
- the smart key device may be in a sleep state and the smart key device may enter a wake state from a sleep state.
- step S302. Enter a wake-up state from the sleep state, determine whether the wake-up instruction is from the first interface, if the wake-up instruction is from the first interface, go to step S303; if the wake-up instruction is not from the first interface, go to step S304.
- the smart key device After receiving the wake-up instruction, the smart key device can determine whether the wake-up instruction is from the first interface. If the wake-up instruction is from the first interface, it is determined that the smart key device establishes a connection with the terminal device through the first interface, and enters the KEY mode. After entering the KEY mode, the process may jump to step S305 to complete the mode switching.
- S304 Determine that the smart key device does not establish a connection with the terminal device through the first interface, and determine whether the wake-up instruction is from the second button. If the wake-up command is from the second button, enter the OTP mode.
- the wake-up instruction is not from the first interface, it is determined that the smart key device does not establish a connection with the terminal device through the first interface, and determines whether the wake-up command is from the second button, and if the wake-up command is from the second button, enters the OTP mode. After entering the OTP mode, it is possible to jump to step S306 to complete the switching between modes.
- the first interface may include a wired interface or a wireless interface
- the wired interface may include a USB interface or an audio interface
- the wireless interface may include a Bluetooth interface, an infrared interface, an NFC interface, or a WIFI interface.
- the smart key device can be USBKEY, audio KEY, Bluetooth KEY, infrared KEY, NFCKEY or WIFIKEY.
- a connection can be established with the terminal through the USB interface
- the smart key device is an audio KEY
- a connection can be established with the terminal through the audio interface
- the smart key device is a Bluetooth KEY
- the terminal can be opened.
- the Bluetooth module of the device establishes a connection with the terminal through the Bluetooth interface; when the smart key device is an infrared KEY, the infrared module of the terminal device can be activated to establish a connection with the terminal through the infrared interface; when the smart key device is NFCKEY, the device can be turned on.
- the NFC module of the terminal device establishes a connection with the terminal through the NFC interface.
- the WIFIKEY the WIFI module of the terminal device can be opened, and the terminal is established through the WIFI interface.
- the smart key device may further include a second button, and the second button may be a power button.
- the mode of the smart key device may be in the second sub mode of the OTP, or may be in a sleep state.
- the smart key device After determining that the smart key device establishes a connection with the terminal device through the first interface, if the smart key device receives the The first key is switched from the first mode to the second mode, where the first mode is a mode of the electronic signature tool KEY mode and the dynamic token OTP mode.
- the second mode is another mode in the KEY mode and the OTP mode.
- the switching instruction sent by the first button may be received, and then switched to the OTP mode.
- the smart key device when it is in the OTP mode, it can also switch to the KEY mode after receiving the switching command sent by the first button.
- the OTP mode is the OTP first sub mode.
- the smart key device when the smart key device is connected to the terminal device through the first interface, and the mode of the smart key device is in the first sub-mode of the OTP, if the first interface is detected to be disconnected from the terminal device, Then the smart key device enters a sleep state.
- the smart key device When it is determined that the smart key device detects that the connection state between the first interface and the terminal device is changed to the establishment of the connection state, the smart key device switches from the current mode to the KEY mode, and the current mode is at least Includes OTP mode.
- the smart key device can switch from the currently-on mode to the KEY mode. For example, when the smart key device is USBKEY and is in the second sub-mode of OTP, it can be automatically switched to KEY mode by simply connecting to the host computer through the USB interface.
- the mode of the smart key device is in the KEY mode, if it is detected that the first interface is disconnected from the terminal device, the smart key device enters a sleep state.
- the mode of the smart key device is in the second sub mode of the OTP, if the trigger command of the second button is detected, the smart key device enters a sleep state.
- step S305 may be performed to complete the switching of the smart key device from the first mode currently in the mode to the second mode.
- the specific steps are as follows:
- the smart key device receives a switching instruction sent by the first button.
- the first button can be a navigation button.
- the smart key device reads the first state information and the first check information in the information structure.
- the smart key device performs a CRC (Cyclic Redundancy Check Code) operation on the first state information to obtain a first check value.
- CRC Cyclic Redundancy Check Code
- step S3054 The smart key device compares the first check value with the first check information. If the first check value is the same as the first check information, step S3055 is performed.
- the smart key device performs a CRC operation on the second state information to obtain a second verification information, and the second state information
- the information is the status information of the current working mode of the smart key device.
- the smart key device may save the second state information and the second check information into the information structure, and set the second state information to the first state information, and set the second check information to the first check. information.
- the smart key device performs a switching operation, and switches from the first mode currently in the mode to the second mode.
- the switching operation can be performed by a jump or soft reset.
- the jump refers to the program jump to a specified location to execute the code.
- Soft reset refers to resetting the CPU (central processing unit) by instructions.
- the information structure is saved in the smart key device.
- the smart key device can read the information saved in the information structure, and the device can continue the operation before the last switch. Without reprocessing the data before switching; on the other hand, because the data stored in the information structure may cause data errors due to changes in the external working environment, the device can be avoided by verifying that the information in the information structure is correct. The read error data is processed to make the switching between modes more reliable.
- the method for implementing the mode switching between the smart key devices in the embodiment of the present invention saves the state information of the two modes by using the information structure in the smart key device, thereby facilitating the switching between the modes and realizing the functions of the two modes. And physical integration, saving costs and providing convenience for users.
- FIG. 5 is a flowchart of a method for implementing mode switching between smart key devices according to an embodiment of the present invention.
- the smart key device is USBKEY
- the first interface is a USB interface
- the terminal is a PC (computer host). For an example, describe it.
- the method for implementing mode switching between smart key devices includes:
- the smart key device is in an initial state.
- the initial state may be a low power sleep state, and may be awakened by an external signal.
- step S502 Determine whether the USB interface is connected to the terminal device. If yes, go to step S503, that is, the smart key device enters the KEY mode; if not, go to step S504 to determine whether the power button is pressed. Wake up.
- S503 The smart key device enters the KEY mode; the navigation button can be turned to S506.
- step S504 determining whether the power-on button is awake, if the wake-up by the power-on button, the process goes to step S505; if the power-on button is not awake, the process goes to step S501, that is, the smart key device returns to the initial state.
- the smart key device enters the second sub mode of the OTP.
- the shutdown button may be used to jump to step S501 to return to the initial state; or the terminal device may be accessed through the USB interface, then the process proceeds to step S503, that is, the smart key.
- Device enters KEY Mode, when the smart key device enters KEY mode, the working current can be supplied through the USB interface. If the smart key device is in a power outage state, it can be charged via the USB interface.
- step S501 that is, the smart key device returns to the initial state.
- the smart key device enters the first sub mode of the OTP.
- the navigation button can be used to switch to the first sub mode of the OTP.
- the operating current can be supplied through the USB interface. If the smart key device is in a power outage state, it can be charged via the USB interface. Similarly, the navigation button can also be switched back to S503, which is the KEY mode.
- the smart key device When the smart key device is in the KEY mode, the user can press the navigation button. At this time, the smart key device can provide navigation information on the display interface, and the user can select to enter the OTP mode according to the navigation information, and confirm. After receiving the trigger request to confirm the entry into the OTP mode, the smart key device can switch to the OTP mode. In this case, the KEY mode is switched to the first sub mode of the OTP.
- the smart key device stores an information structure for storing state information and verification information of the KEY mode or the OTP mode.
- the information structure can be updated when switching between the two modes is performed by the navigation buttons. Specifically, the state information of the current mode is obtained from the information structure, the CRC operation is performed on the state information, the check value is obtained, and then the obtained check value is compared with the saved check information, if the two are consistent, Perform a switch operation. After the state switching, by reading the information held in the information structure, the smart key device can continue the operation before the switching without having to re-process the data before the switching.
- the information stored in the information structure may cause information errors due to changes in the external working environment. By verifying whether the information in the information structure is correct, it is possible to prevent the device from processing the read error information.
- the navigation key is switched from the KEY mode to the OTP first sub mode, the state information of the KEY mode is first saved, and then the switching operation can be performed by a jump or soft reset mode.
- the jump refers to the program jump to a specified location to execute the code.
- Soft reset refers to resetting the CPU (central processing unit) by instructions.
- the navigation key can also be used to switch back to the KEY mode.
- the connection with the terminal device is disconnected, and the smart key device switches to the initial state.
- the power-on button can enter the second sub-mode of the OTP.
- the second sub-mode of the OTP can be switched to the KEY mode; and the first sub-mode of the OTP is selected by the KEY mode through the menu. Then, you can choose to go back to KEY mode through the menu.
- the former is caused by a change in the hardware signal, and the latter is caused by the user's menu operation. And the latter on USB
- the first sub-mode of the OTP can be entered.
- the user cannot enter the OTP mode (ie, can only enter the KEY mode).
- the method for implementing the mode switching between the smart key devices in the embodiment of the present invention can conveniently and reliably implement the switching between the KEY mode and the OTP mode, realizes the integration of the functions and the physical, saves the cost, and provides convenience for the user. .
- the information structure is stored in the smart key device, and the mode information between the two modes is saved to facilitate switching between modes.
- the present invention also proposes an apparatus for implementing mode switching between smart key devices.
- the apparatus for implementing inter-mode handover of a smart key device includes: a first switching module.
- the first switching module is configured to: after the smart key device establishes a connection with the terminal device by using the first interface, receive a switching instruction sent by the first button, and switch the smart key device from the first mode to the second mode.
- the first mode is one of an electronic signature tool KEY mode and a dynamic token OTP mode
- the second mode is another mode of the KEY mode and the OTP mode.
- the smart key device can be USBKEY, audio KEY, Bluetooth KEY, infrared KEY, NFCKEY or WIFIKEY.
- a connection can be established with the terminal through the USB interface;
- the smart key device is an audio KEY, a connection can be established with the terminal through the audio interface;
- the smart key device is a Bluetooth KEY, the terminal can be opened.
- the Bluetooth module of the device establishes a connection with the terminal through the Bluetooth interface; when the smart key device is an infrared KEY, the infrared module of the terminal device can be activated to establish a connection with the terminal through the infrared interface;
- the smart key device is NFCKEY, the device can be turned on.
- the NFC module of the terminal device establishes a connection with the terminal through the NFC interface.
- the WIFIKEY the WIFI module of the terminal device can be opened, and the terminal is established through the WIFI interface.
- the first switching module may receive the switching instruction sent by the first button, and switch the smart key device from the first mode currently in the mode to the second mode.
- the smart key device When the smart key device is in the KEY mode, after the first switching module receives the switching instruction sent by the first button, it can switch to the OTP mode. Certainly, when the smart key device is in the OTP mode, after the first switching module receives the switching instruction sent by the first button, it can switch to the KEY mode.
- the device for implementing the mode switching between the smart key devices in the embodiment of the present invention can conveniently and reliably implement the switching between the KEY mode and the OTP mode, realizes the integration of the functions and the physical, saves the cost, and provides convenience for the user. .
- the apparatus for implementing inter-mode handover of a smart key device includes: a second handover module.
- the second switching module is configured to determine that the smart key device switches from the current mode to the KEY mode when the smart key device detects that the first interface and the terminal device are switched from the unestablished connection state to the established connection state, and the current The mode in which it is located includes at least the OTP mode.
- the smart key device can be USBKEY, audio KEY, Bluetooth KEY, infrared KEY, NFCKEY or WIFIKEY.
- a connection can be established with the terminal through the USB interface;
- the smart key device is an audio KEY, a connection can be established with the terminal through the audio interface;
- the smart key device is a Bluetooth KEY, the terminal can be opened.
- the Bluetooth module of the device establishes a connection with the terminal through the Bluetooth interface; when the smart key device is an infrared KEY, the infrared module of the terminal device can be activated to establish a connection with the terminal through the infrared interface;
- the smart key device is NFCKEY, the device can be turned on.
- the NFC module of the terminal device establishes a connection with the terminal through the NFC interface.
- the WIFIKEY the WIFI module of the terminal device can be opened, and the terminal is established through the WIFI interface.
- the second switching module can switch from the currently-on mode to the KEY mode.
- the smart key device is USBKEY and is in the second sub-mode of OTP, it can be automatically switched to KEY mode by simply connecting to the host computer through the USB interface.
- the device for implementing the mode switching between the smart key devices in the embodiment of the present invention can conveniently and reliably implement the switching between the KEY mode and the OTP mode, realizes the integration of the functions and the physical, saves the cost, and provides convenience for the user. .
- FIG. 6 is a schematic structural diagram of an apparatus for implementing mode switching between smart key devices according to another embodiment of the present invention.
- the apparatus for implementing mode switching between smart key devices includes: a first switching module 61 and a second switching module 62.
- the first switching module 61 is configured to: after the smart key device establishes a connection with the terminal device by using the first interface, receive a switching instruction sent by the first button, and switch the smart key device from the first mode to the second mode.
- the first mode is one of an electronic signature tool KEY mode and a dynamic token OTP mode
- the second mode is another mode of the KEY mode and the OTP mode.
- the first switching module 61 may receive the switching instruction sent by the first button and switch the smart key device from the first mode currently in the mode to the second mode. Specifically, the first switching module 61 receives the switching instruction of the first button, reads the first state information and the first verification information in the information structure, and performs CRC (Cyclic Redundancy Check Code) on the first state information.
- CRC Cyclic Redundancy Check Code
- the smart key device may save the second state information and the second check information into the information structure, and set the second state information to the first state information, and set the second check information to the first check. information.
- the smart key device When the smart key device is in the KEY mode, after the first switching module 61 receives the switching instruction sent by the first button, it can switch to the OTP mode. Certainly, when the smart key device is in the OTP mode, after the first switching module 61 receives the switching instruction sent by the first button, it can switch to the KEY mode.
- the second switching module 62 is configured to determine that the smart key device switches the smart key device from the current mode to the KEY mode when detecting that the first interface and the terminal device are switched from the unestablished connection state to the established connection state.
- the current mode is at least including the OTP mode.
- the second switching module 62 can switch from the currently-on mode to the KEY mode.
- the smart key device is USBKEY and is in the second sub-mode of OTP, it can be automatically switched to KEY mode by simply connecting to the host computer through the USB interface.
- the means for effecting switching between smart key device modes may also include a processing module 63.
- the processing module 63 is configured to receive the wake-up instruction and enter the awake state from the sleep state. Then determining whether the wake-up instruction is from the first interface, if the wake-up instruction is from the first interface, determining that the smart key device establishes a connection with the terminal device through the first interface, entering the KEY mode; if the wake-up instruction is not from the first interface, determining the smart The key device does not establish a connection with the terminal device through the first interface, and determines whether the wake-up command is from the second button, and if the wake-up command is from the second button, enters the OTP mode.
- the means for implementing smart key device mode switching may further include a hibernation module 64.
- the hibernation module 64 is configured to determine that the smart key device is connected to the terminal device after the smart key device is connected to the terminal device by using the first interface, and the smart key device is connected to the terminal device by using the first interface, and the smart key device is currently in the OTP mode, and the detection is performed. When the first interface is disconnected from the terminal device, the smart key device is put into a sleep state.
- the hibernation module 64 is further configured to: after determining that the smart key device is connected to the terminal device by using the first interface, determining that the smart key device is connected to the terminal device by using the first interface, and the smart key device is currently in the KEY mode. When detecting that the first interface is disconnected from the terminal device, the smart key device is put into a sleep state.
- the hibernation module 64 is further configured to receive a trigger command of the second button, determine that the smart key device is not connected to the terminal device through the first interface, and determine that the mode in which the smart key device is currently in the OTP mode, and detecting the second button After the trigger command, the smart key device is put into a sleep state.
- the device for implementing the mode switching between the smart key devices in the embodiment of the present invention can conveniently and reliably implement the switching between the KEY mode and the OTP mode, realizes the integration of the functions and the physical, saves the cost, and provides convenience for the user. .
- first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
- features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
- the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
- computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
- each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be used It can be implemented in the form of hardware or in the form of software function modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
- the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Claims (15)
- 一种实现智能密钥设备模式间切换的方法,其特征在于,所述智能密钥设备具有第一按键和第一接口;所述方法包括:确定所述智能密钥设备通过所述第一接口与终端设备建立连接后,若所述智能密钥设备接收到所述第一按键发送的切换指令,则所述智能密钥设备从当前所处的第一模式切换为第二模式,其中,所述第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,所述第二模式为所述KEY模式和所述OTP模式中的另一个模式;确定所述智能密钥设备检测到所述第一接口和所述终端设备之间从未建立连接状态转换为建立连接状态时,所述智能密钥设备从当前所处的模式切换为所述KEY模式,所述当前所处的模式至少包括所述OTP模式。
- 根据权利要求1所述的方法,其特征在于,所述第一接口包括:有线接口或无线接口,所述有线接口包括通用串行总线USB接口或音频接口,所述无线接口包括蓝牙接口、红外接口、近距离无线通讯NFC接口或无线保真WIFI接口。
- 根据权利要求1或2所述的方法,其特征在于,所述智能密钥设备还包括第二按键,所述方法还包括:所述智能密钥设备接收唤醒指令;所述智能密钥设备从休眠状态进入唤醒状态,并判断所述唤醒指令是否来自所述第一接口;如果所述唤醒指令来自所述第一接口,则确定智能密钥设备通过所述第一接口与所述终端设备建立连接,进入所述KEY模式;如果所述唤醒指令不是来自所述第一接口,则确定智能密钥设备没有通过所述第一接口与所述终端设备建立连接,并判断所述唤醒指令是否来自所述第二按键,如果所述唤醒指令来自所述第二按键,则进入所述OTP模式。
- 根据权利要求1或2所述的方法,其特征在于,还包括:确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备当前所处的模式为所述OTP模式后,在检测到所述第一接口与所述终端设备断开连接时,则所述智能密钥设备进入休眠状态。
- 根据权利要求1或2所述的方法,其特征在于,所述智能密钥设备接收所述第一按键发送的所述切换指令,并将所述智能密钥设备从当前所处的所述第一模式切换为所述第二模式,具体包括步骤:A.所述智能密钥设备接收所述第一按键发送的所述切换指令;B.所述智能密钥设备读取信息结构体中的第一状态信息和第一校验信息;C.所述智能密钥设备对所述第一状态信息进行循环冗余校验码CRC运算,获得第一校验值;D.所述智能密钥设备比对所述第一校验值与所述第一校验信息,若所述第一校验值与所述第一校验信息相同,则执行步骤E;E.所述智能密钥设备对第二状态信息进行循环冗余校验码CRC运算,获得第二校验信息,所述第二状态信息为所述智能密钥设备当前工作模式下的状态信息;所述智能密钥设备将所述第二状态信息与所述第二校验信息保存至所述信息结构体中,并将所述第二状态信息设为所述第一状态信息,将所述第二校验信息设为所述第一校验信息;F.所述智能密钥设备执行切换操作,从当前所处的所述第一模式切换为所述第二模式。
- 根据权利要求5所述的方法,其特征在于,所述切换操作具体为:跳转切换操作,或软复位切换操作。
- 根据权利要求1、2或6任一项所述的方法,其特征在于,所述OTP模式包括OTP第一子模式和OTP第二子模式,在确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第一子模式;在确定所述智能密钥设备没有通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第二子模式。
- 一种实现智能密钥设备模式间切换的装置,其特征在于,所述智能密钥设备具有第一按键和第一接口;所述装置包括:第一切换模块,用于确定所述智能密钥设备通过所述第一接口与终端设备建立连接后,当所述智能密钥设备接收所述第一按键发送的切换指令时,所述智能密钥设备从当前所处的第一模式切换为第二模式,其中,所述第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,所述第二模式为所述KEY模式和所述OTP模式中的另一个模式;第二切换模块,用于确定所述智能密钥设备检测到所述第一接口和所述终端设备之间从未建立连接状态转换为建立连接状态时,所述智能密钥设备从当前所处的模式切换为所述KEY模式,所述当前所处的模式至少包括所述OTP模式。
- 根据权利要求8所述的装置,其特征在于,所述第一接口包括:有线接口或无线接口,所述有线接口包括通用串行总线USB接口或音频接口,所述无线接口包括蓝牙接口、红外接口、近距离无线通讯NFC接口或无线保真WIFI接口。
- 根据权利要求8或9所述的装置,其特征在于,所述智能密钥设备还包括第二按键,所述装置还包括:处理模块,用于接收唤醒指令,并从休眠状态进入唤醒状态,以及判断所述唤醒指令是否来自所述第一接口,如果所述唤醒指令来自所述第一接口,则确定智能密钥设备通过所述第一接口与所述终端设备建立连接,进入所述KEY模式;如果所述唤醒指令不是来自所述第一接口,则确定智能密钥设备没有通过所述第一接口与所述终端设备建立连接,并判断所述唤醒指令是否来自所述第二按键,如果所述唤醒指令来自所述第二按键,则进入所述OTP模式。
- 根据权利要求8或9所述的装置,其特征在于,所述装置还包括:休眠模块,用于确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备当前所处的模式为所述OTP模式后,在检测到所述第一接口与所述终端设备断开连接时,则所述智能密钥设备进入休眠状态。
- 根据权利要求8或9所述的装置,其特征在于,所述第一切换模块,具体用于:接收到所述第一按键发送的所述切换指令;读取信息结构体中的第一状态信息和第一校验信息;对所述第一状态信息进行循环冗余校验码CRC运算,获得第一校验值;比对所述第一校验值与所述第一校验信息,若所述第一校验值与所述第一校验信息相同,则对第二状态信息进行循环冗余校验码CRC运算,获得第二校验信息,所述第二状态信息为所述智能密钥设备当前工作模式下的状态信息;将所述第二状态信息与所述第二校验信息保存至所述信息结构体中,并将所述第二状态信息设为所述第一状态信息,将所述第二校验信息设为所述第一校验信息;执行切换操作,从当前所处的所述第一模式切换为所述第二模式。
- 根据权利要求12所述的装置,其特征在于,所述切换操作具体为:跳转切换操作,或软复位切换操作。
- 根据权利要求8、9或13任一项所述的装置,其特征在于,所述OTP模式包括OTP第一子模式和OTP第二子模式,在确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第一子模式;在确定所述智能密钥设备没有通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第二子模式。
- 一种计算机可读存储介质,包括计算机指令,当所述计算机指令被执行时,使得执行权利要求1-7中任一项所述的实现智能密钥设备模式间切换的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SG11201700220QA SG11201700220QA (en) | 2014-07-17 | 2015-07-17 | Method and apparatus for realizing switching between intelligent key device modes |
AU2015291536A AU2015291536A1 (en) | 2014-07-17 | 2015-07-17 | Method and apparatus for realizing switching between intelligent key device modes |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410342308.4 | 2014-07-17 | ||
CN201410342308.4A CN104123512B (zh) | 2014-07-17 | 2014-07-17 | 实现智能密钥设备模式间切换的方法和装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016008447A1 true WO2016008447A1 (zh) | 2016-01-21 |
Family
ID=51768920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/084316 WO2016008447A1 (zh) | 2014-07-17 | 2015-07-17 | 实现智能密钥设备模式间切换的方法和装置 |
Country Status (4)
Country | Link |
---|---|
CN (2) | CN104123512B (zh) |
AU (1) | AU2015291536A1 (zh) |
SG (1) | SG11201700220QA (zh) |
WO (1) | WO2016008447A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113132113A (zh) * | 2021-04-06 | 2021-07-16 | 鼎铉商用密码测评技术(深圳)有限公司 | 验证动态令牌正确性的方法及系统、设备 |
CN115085942A (zh) * | 2022-07-28 | 2022-09-20 | 四川省数字证书认证管理中心有限公司 | 一种基于分布式UKey服务的数字签名方法及系统 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123512B (zh) * | 2014-07-17 | 2018-02-02 | 天地融科技股份有限公司 | 实现智能密钥设备模式间切换的方法和装置 |
CN106155795B (zh) * | 2016-07-25 | 2019-11-15 | 深圳市文鼎创数据科技有限公司 | 工作模式的切换方法、移动终端及蓝牙设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101432980A (zh) * | 2006-05-01 | 2009-05-13 | 未来科技株式会社 | 用于移动电话的时间同步型一次性密码生成装置和方法 |
US20090302882A1 (en) * | 2005-05-04 | 2009-12-10 | Duflot Loic | Device forming a logic gate for minimizing the differences in electrical of electro-magnetic behavior in an intergrated circuit manipulating a secret |
CN203151519U (zh) * | 2012-11-12 | 2013-08-21 | 天地融科技股份有限公司 | 动态口令显示系统 |
CN103760451A (zh) * | 2014-01-28 | 2014-04-30 | 天地融科技股份有限公司 | 一种智能密钥设备的接口接入模式检测方法及设备 |
CN104123512A (zh) * | 2014-07-17 | 2014-10-29 | 天地融科技股份有限公司 | 实现智能密钥设备模式间切换的方法和装置 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2446658B (en) * | 2007-02-19 | 2011-06-08 | Advanced Risc Mach Ltd | Hibernating a processing apparatus for processing secure data |
CN101933315B (zh) * | 2007-08-08 | 2014-03-26 | 黄金富 | 可对抗木马程式采用用完即弃一次性密钥的加密认证键盘 |
CN201425746Y (zh) * | 2009-03-20 | 2010-03-17 | 李东声 | 一种电子密码钥匙USB Key |
CN103279432A (zh) * | 2013-04-27 | 2013-09-04 | 深圳市文鼎创数据科技有限公司 | 智能密钥装置工作模式切换方法及智能密钥装置 |
CN103297243B (zh) * | 2013-06-14 | 2016-05-25 | 飞天诚信科技股份有限公司 | 一种多功能智能密钥设备的工作方法 |
CN103475479A (zh) * | 2013-09-03 | 2013-12-25 | 天地融科技股份有限公司 | 智能密钥设备、移动终端以及动态口令的输出方法和系统 |
CN103905188B (zh) * | 2014-04-02 | 2017-12-19 | 天地融科技股份有限公司 | 利用智能密钥设备生成动态口令的方法和智能密钥设备 |
CN103929306B (zh) * | 2014-04-02 | 2016-04-06 | 天地融科技股份有限公司 | 智能密钥设备和智能密钥设备的信息管理方法 |
-
2014
- 2014-07-17 CN CN201410342308.4A patent/CN104123512B/zh active Active
- 2014-07-17 CN CN201710865728.4A patent/CN107729775B/zh active Active
-
2015
- 2015-07-17 SG SG11201700220QA patent/SG11201700220QA/en unknown
- 2015-07-17 WO PCT/CN2015/084316 patent/WO2016008447A1/zh active Application Filing
- 2015-07-17 AU AU2015291536A patent/AU2015291536A1/en not_active Abandoned
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090302882A1 (en) * | 2005-05-04 | 2009-12-10 | Duflot Loic | Device forming a logic gate for minimizing the differences in electrical of electro-magnetic behavior in an intergrated circuit manipulating a secret |
CN101432980A (zh) * | 2006-05-01 | 2009-05-13 | 未来科技株式会社 | 用于移动电话的时间同步型一次性密码生成装置和方法 |
CN203151519U (zh) * | 2012-11-12 | 2013-08-21 | 天地融科技股份有限公司 | 动态口令显示系统 |
CN103760451A (zh) * | 2014-01-28 | 2014-04-30 | 天地融科技股份有限公司 | 一种智能密钥设备的接口接入模式检测方法及设备 |
CN104123512A (zh) * | 2014-07-17 | 2014-10-29 | 天地融科技股份有限公司 | 实现智能密钥设备模式间切换的方法和装置 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113132113A (zh) * | 2021-04-06 | 2021-07-16 | 鼎铉商用密码测评技术(深圳)有限公司 | 验证动态令牌正确性的方法及系统、设备 |
CN113132113B (zh) * | 2021-04-06 | 2022-07-01 | 鼎铉商用密码测评技术(深圳)有限公司 | 验证动态令牌正确性的方法及系统、设备 |
CN115085942A (zh) * | 2022-07-28 | 2022-09-20 | 四川省数字证书认证管理中心有限公司 | 一种基于分布式UKey服务的数字签名方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN104123512A (zh) | 2014-10-29 |
AU2015291536A1 (en) | 2017-02-02 |
CN104123512B (zh) | 2018-02-02 |
SG11201700220QA (en) | 2017-02-27 |
CN107729775A (zh) | 2018-02-23 |
CN107729775B (zh) | 2020-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10425409B2 (en) | Method and apparatus for connecting between electronic devices using authentication based on biometric information | |
ES2906244T3 (es) | Procedimiento y aparato para procesar información biométrica en un dispositivo electrónico | |
ES2761877T3 (es) | Procedimiento de desbloqueo y terminal móvil | |
US9967100B2 (en) | Method of controlling power supply for fingerprint sensor, fingerprint processing device, and electronic device performing the same | |
US9852277B2 (en) | Method for performing authentication using biometrics information and portable electronic device supporting the same | |
KR102231741B1 (ko) | 부속 디바이스 전력 관리 | |
EP2936887B1 (en) | Tap-to-wake and tap-to-login near field communication (nfc) device | |
CN106357599B (zh) | 电子设备、认证代理服务器和支付系统 | |
US9774599B2 (en) | Authenticating method and apparatus using electronic device | |
US9589160B2 (en) | Working method for smart card reader | |
KR20180041532A (ko) | 전자 장치들 간 연결 방법 및 장치 | |
US10242167B2 (en) | Method for user authentication and electronic device implementing the same | |
US9891969B2 (en) | Method and apparatus for device state based encryption key | |
WO2016008447A1 (zh) | 实现智能密钥设备模式间切换的方法和装置 | |
US20220005046A1 (en) | Payment method using biometric authentication and electronic device therefor | |
US20240129742A1 (en) | Method For Unlocking Terminal Device by Wearable Device and Communication System | |
US11194374B2 (en) | Systems and methods for waking an information handling system from a wireless peripheral device | |
US20170295174A1 (en) | Electronic device, server, and method for authenticating biometric information | |
US11544414B2 (en) | Secure wake-on of a computing device | |
US10372895B2 (en) | Apparatus and method for providing a security environment | |
KR102657388B1 (ko) | 암호화될 데이터의 정보량에 기반하여 암호화에 사용될 키를 선택하는 전자 장치 및 전자 장치의 동작 방법 | |
US20170344999A1 (en) | Payment method and electronic device using loop antennas | |
TW201544989A (zh) | 具有喚醒認證之電腦系統及其電腦裝置 | |
US20240094795A1 (en) | Computing system power-on using circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15822858 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2015291536 Country of ref document: AU Date of ref document: 20150717 Kind code of ref document: A |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15822858 Country of ref document: EP Kind code of ref document: A1 |