WO2016008447A1 - 实现智能密钥设备模式间切换的方法和装置 - Google Patents

实现智能密钥设备模式间切换的方法和装置 Download PDF

Info

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
Application number
PCT/CN2015/084316
Other languages
English (en)
French (fr)
Inventor
李东声
Original Assignee
天地融科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 天地融科技股份有限公司 filed Critical 天地融科技股份有限公司
Priority to SG11201700220QA priority Critical patent/SG11201700220QA/en
Priority to AU2015291536A priority patent/AU2015291536A1/en
Publication of WO2016008447A1 publication Critical patent/WO2016008447A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting 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/74Protecting 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

一种实现智能密钥设备模式间切换的方法和装置。其中,实现智能密钥设备模式间切换的方法包括:确定智能密钥设备通过第一接口与终端设备建立连接后,若智能密钥设备接收第一按键发送的切换指令,则智能密钥设备从当前所处的第一模式切换为第二模式(S305),第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,第二模式为KEY模式和OTP模式中的另一个模式;确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,智能密钥设备从当前所处的模式切换为KEY模式(S306),当前所处的模式至少包括OTP模式。

Description

实现智能密钥设备模式间切换的方法和装置 技术领域
本发明涉及计算机技术领域,尤其涉及一种实现智能密钥设备模式间切换的方法和装置。
背景技术
KEY(电子签名工具)是一种安全设备,它内置单片机或智能卡芯片,有一定的存储空间,可以存储用户的私钥以及数字证书,利用内置的公钥算法实现对用户身份的认证、数据加密等。当应用于金融业务时,主要用于存放用户证书及对交易信息进行签名,实现用户在网银交易时的身份认证,确保交易的不可抵赖性。
OTP(One-time Password,动态口令)是根据专门的算法生成一个不可预测的随机数字组合,该动态口令一次有效,主要应用于网上银行等领域,可以对用户的交易和登录进行保护。OTP可以应用到手机、平板电脑等终端设备上,也可以应用在专门的硬件设备上。
目前,可将KEY功能和OTP功能同时融入到一个硬件设备中。以上两种功能虽然在同一载体上,但功能是相互独立的,且两者之间不能方便地进行切换。
发明内容
本发明实施例旨在至少在一定程度上解决上述技术问题。
为此,本发明的第一个目的在于提出一种实现智能密钥设备模式间切换的方法,该方法能够方便和可靠地实现KEY模式和OTP模式间的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
本发明的第二个目的在于提出另一种实现智能密钥设备模式间切换的方法。
本发明的第三个目的在于提出又一种实现智能密钥设备模式间切换的方法。
本发明的第四个目的在于提出一种实现智能密钥设备模式间切换的装置。
本发明的第五个目的在于提出另一种实现智能密钥设备模式间切换的装置。
本发明的第六个目的在于提出又一种实现智能密钥设备模式间切换的装置。
为达上述目的,根据本发明第一方面实施例提出了一种实现智能密钥设备模式间切换的方法,包括:确定所述智能密钥设备通过所述第一接口与终端设备建立连接后,若所述智能密钥设备接收所述第一按键发送的切换指令,则所述智能密钥设备从当前所处的第一模式切换为第二模式,其中,所述第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,所述第二模式为所述KEY模式和所述OTP模式中的另一个模式。
本发明实施例的实现智能密钥设备模式间切换的方法,通过确定智能密钥设备通过第一接口与终端设备建立连接后,接收第一按键发送的切换指令从当前所处的第一模式切换为第二模式,方便和可靠地实现KEY模式和OTP模式之间的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
为达上述目的,根据本发明第二方面实施例提出了另一种实现智能密钥设备模式间切换的方法,包括:确定所述智能密钥设备检测到所述第一接口和所述终端设备之间从未建立连接状态转换为建立连接状态时,所述智能密钥设备从当前所处的模式切换为所述KEY模式,所述当前所处的模式至少包括所述OTP模式。
本发明实施例的实现智能密钥设备模式间切换的方法,通过确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态后,智能密钥设备从当前所处的模式切换为KEY模式,使智能密钥设备模式间切换更加简单、方便,为用户提供了便利。
为达上述目的,根据本发明第三方面实施例提出了又一种实现智能密钥设备模式间切换的方法,包括:确定智能密钥设备通过第一接口与终端设备建立连接后,若智能密钥设备接收第一按键发送的切换指令,则智能密钥设备从当前所处的第一模式切换为第二模式,其中,第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,第二模式为KEY模式和OTP模式中的另一个模式;确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,智能密钥设备从当前所处的模式切换为KEY模式,当前所处的模式至少包括OTP模式。
本发明实施例的实现智能密钥设备模式间切换的方法,通过在智能密钥设备中的信息结构体来保存两种模式的状态信息等,使模式间的切换更加方便,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
为达上述目的,根据本发明第四方面实施例提出了一种实现智能密钥设备模式间切换的装置,包括:第一切换模块。第一切换模块用于确定智能密钥设备通过第一接口与终端设备建立连接后,接收第一按键发送的切换指令,将智能密钥设备从当前所处的第一模式切换为第二模式,其中,第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,第二模式为KEY模式和OTP模式中的另一个模式。
在本发明的实施例中,第一切换模块可接收第一按键发送的切换指令,并将智能密钥设备从当前所处的第一模式切换为第二模式。当智能密钥设备处于KEY模式时,在第一切换模块接收到第一按键发送的切换指令后,可切换至OTP模式。当然,当智能密钥设备处于OTP模式时,在第一切换模块接收到第一按键发送的切换指令后,可切换至KEY模式。
本发明实施例的实现智能密钥设备模式间切换的装置,通过确定智能密钥设备通过第一接口与终端设备建立连接后,接收第一按键发送的切换指令从当前所处的第一模式切换为第 二模式,方便和可靠地实现KEY模式和OTP模式之间的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
为达上述目的,根据本发明第五方面实施例提出了一种实现智能密钥设备模式间切换的装置,包括:第二切换模块。第二切换模块可用于确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,将智能密钥设备从当前所处的模式切换为KEY模式,当前所处的模式至少包括OTP模式。
当智能密钥设备的第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,第二切换模块可从当前处于的模式切换为KEY模式。举例来说,当智能密钥设备为USBKEY且处于OTP第二子模式时,只需通过USB接口与电脑主机连接,即可自动切换为KEY模式。
本发明实施例的实现智能密钥设备模式间切换的装置,通过确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,智能密钥设备从当前所处的模式切换为KEY模式,使智能密钥设备模式间切换更加简单、方便,为用户提供了便利。
为达上述目的,根据本发明第六方面实施例提出了一种实现智能密钥设备模式间切换的装置,包括:第一切换模块,用于确定所述智能密钥设备通过所述第一接口与终端设备建立连接后,当所述智能密钥设备接收所述第一按键发送的切换指令时,所述智能密钥设备从当前所处的第一模式切换为第二模式,其中,所述第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,所述第二模式为所述KEY模式和所述OTP模式中的另一个模式;第二切换模块,用于确定所述智能密钥设备检测到所述第一接口和所述终端设备之间从未建立连接状态转换为建立连接状态时,所述智能密钥设备从当前所处的模式切换为所述KEY模式,所述当前所处的模式至少包括所述OTP模式。
本发明实施例的实现智能密钥设备模式间切换的装置,能够方便和可靠地实现KEY模式和OTP模式间的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
图1为根据本发明一个实施例的实现智能密钥设备模式间切换的方法的流程图。
图2为根据本发明另一个实施例的实现智能密钥设备模式间切换的方法的流程图。
图3为根据本发明又一个实施例的实现智能密钥设备模式间切换的方法的流程图。
图4为根据本发明一个实施例的智能密钥设备从当前所处的第一模式切换为第二模式 的具体流程图。
图5为根据本发明一个具体实施例的实现智能密钥设备模式间切换的方法的流程图。
图6为根据本发明一个实施例的实现智能密钥设备模式间切换的装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
下面参考附图描述本发明实施例的实现智能密钥设备模式间切换的方法和装置。
图1为根据本发明一个实施例的实现智能密钥设备模式间切换的方法的流程图,在该实施例中,智能密钥设备可以包括第一模式和第二模式。
如图1所示,该实现智能密钥设备模式间切换的方法包括:
S101,确定智能密钥设备通过第一接口与终端设备建立连接。
在本发明的实施例中,智能密钥设备可通过第一接口与终端设备建立连接。其中,第一接口可包括有线接口或无线接口,有线接口可包括USB接口或音频接口,无线接口可包括蓝牙接口、红外接口、NFC接口或WIFI接口等。
智能密钥设备可以是USBKEY、音频KEY、蓝牙KEY、红外KEY、NFCKEY或WIFIKEY。当智能密钥设备是USBKEY时,可通过USB接口与终端建立连接;当智能密钥设备是音频KEY时,可通过音频接口与终端建立连接;当智能密钥设备是蓝牙KEY时,可开启终端设备的蓝牙模块,通过蓝牙接口与终端建立连接;当智能密钥设备是红外KEY时,可开启终端设备的红外模块,通过红外接口与终端建立连接;当智能密钥设备是NFCKEY时,可开启终端设备的NFC模块,通过NFC接口与终端建立连接;当智能密钥设备是WIFIKEY时,可开启终端设备的WIFI模块,通过WIFI接口与终端建立连接。
S102,智能密钥设备接收第一按键发送的切换指令。
在本发明的实施例中,智能密钥设备可具有第一按键,第一按键可为导航按键。智能密钥设备可在确定智能密钥设备通过第一接口与终端设备建立连接后,接收第一按键发送的切换指令,以使智能密钥设备从当前所处的第一模式切换为第二模式。
S103,智能密钥设备从当前所处的第一模式切换为第二模式。
在本发明的实施例中,智能密钥设备可具有两种模式,即KEY模式和OTP模式。
具体地,当智能密钥设备处于KEY模式时,在接收到第一按键发送的切换指令后,可切换至OTP模式。当然,当智能密钥设备处于OTP模式时,在接收到第一按键发送的切换指令后,可切换至KEY模式。
应当理解的是,智能密钥设备通过第一接口与终端设备连接且处于OTP模式时,该OTP模式为OTP第一子模式。
此外,智能密钥设备可包括休眠状态和唤醒状态。智能密钥设备处于第一模式或第二模式时,为唤醒状态。
当智能密钥设备通过第一接口与终端设备连接,且智能密钥设备的模式处于OTP第一子模式时,若检测到第一接口与终端设备断开连接,则智能密钥设备进入休眠状态。
本发明实施例的实现智能密钥设备模式间切换的方法,通过确定智能密钥设备通过第一接口与终端设备建立连接后,接收第一按键发送的切换指令从当前所处的第一模式切换为第二模式,方便和可靠地实现KEY模式和OTP模式之间的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
图2为根据本发明另一个实施例的实现智能密钥设备模式间切换的方法的流程图。
如图2所示,该实现智能密钥设备模式间切换的方法包括:
S201,确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态。
在本发明的实施例中,智能密钥设备可处于休眠状态,且智能密钥设备可从休眠状态进入唤醒状态。
具体地,智能密钥设备接收唤醒指令。其中,唤醒指令可来自第一接口或者第二按键,第二按键可为开机按键。
在接收到唤醒指令后,智能密钥设备可判断唤醒指令是否来自第一接口,如果唤醒指令不是来自第一接口,则确定智能密钥设备没有通过第一接口与终端设备建立连接,并判断唤醒指令是否来自第二按键,如果唤醒指令来自第二按键,则进入OTP模式。
应当理解的是,智能密钥设备没有通过第一接口与终端设备连接且处于OTP模式时,该OTP模式为OTP第二子模式。
S202,智能密钥设备从当前所处的模式切换为KEY模式。
在本发明的实施例中,当智能密钥设备的第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,智能密钥设备可从当前处于的OTP第二子模式切换为KEY模式。举例来说,当智能密钥设备为USBKEY并处于OTP第二子模式时,只需要通过USB接口与电脑主机连接,即可自动切换为KEY模式。
当智能密钥设备的模式处于KEY模式时,若检测到第一接口与终端设备断开连接,则智能密钥设备进入休眠状态。
当智能密钥设备的模式处于OTP第二子模式时,若检测到第二按键的触发指令,则智能密钥设备进入休眠状态。
本发明实施例的实现智能密钥设备模式间切换的方法,通过确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,智能密钥设备从当前所处的模式切换为KEY模式,使智能密钥设备模式间切换更加简单、方便,为用户提供了便利。
图3为根据本发明又一个实施例的实现智能密钥设备模式间切换的方法的流程图。
如图3所示,该实现智能密钥设备模式间切换的方法包括:
S301,接收唤醒指令。
在本发明的实施例中,智能密钥设备可处于休眠状态,且智能密钥设备可从休眠状态进入唤醒状态。
S302,从休眠状态进入唤醒状态,判断唤醒指令是否来自第一接口,如果唤醒指令来自第一接口,则跳转至步骤S303;如果唤醒指令不是来自第一接口,则跳转至步骤S304。
S303,确定智能密钥设备通过第一接口与终端设备建立连接,进入KEY模式。
在接收到唤醒指令后,智能密钥设备可判断唤醒指令是否来自第一接口。如果唤醒指令来自第一接口,则确定智能密钥设备通过第一接口与终端设备建立连接,进入KEY模式。进入KEY模式后,可跳转至步骤S305完成模式间的切换。
S304,确定智能密钥设备没有通过第一接口与终端设备建立连接,并判断唤醒指令是否来自第二按键,如果唤醒指令来自第二按键,则进入OTP模式。
如果唤醒指令不是来自第一接口,则确定智能密钥设备没有通过第一接口与终端设备建立连接,并判断唤醒指令是否来自第二按键,如果唤醒指令来自第二按键,则进入OTP模式。在进入OTP模式后,可跳转至步骤S306完成模式间的切换。
其中,第一接口可包括有线接口或无线接口,有线接口可包括USB接口或音频接口,无线接口可包括蓝牙接口、红外接口、NFC接口或WIFI接口等。智能密钥设备可以是USBKEY、音频KEY、蓝牙KEY、红外KEY、NFCKEY或WIFIKEY。当智能密钥设备是USBKEY时,可通过USB接口与终端建立连接;当智能密钥设备是音频KEY时,可通过音频接口与终端建立连接;当智能密钥设备是蓝牙KEY时,可开启终端设备的蓝牙模块,通过蓝牙接口与终端建立连接;当智能密钥设备是红外KEY时,可开启终端设备的红外模块,通过红外接口与终端建立连接;当智能密钥设备是NFCKEY时,可开启终端设备的NFC模块,通过NFC接口与终端建立连接;当智能密钥设备是WIFIKEY时,可开启终端设备的WIFI模块,通过WIFI接口与终端建立连接。智能密钥设备还可包括第二按键,第二按键可为开机按键。
应当理解的是,智能密钥设备没有通过第一接口与终端设备连接时,智能密钥设备的模式可处于OTP第二子模式,也可处于休眠状态。
S305,确定智能密钥设备通过第一接口与终端设备建立连接后,若智能密钥设备接收到 第一按键发送的切换指令,则智能密钥设备从当前所处的第一模式切换为第二模式,其中,第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,第二模式为KEY模式和OTP模式中的另一个模式。
在本发明的实施例中,在智能密钥设备进入KEY模式后,可接收第一按键发送的切换指令,然后切换至OTP模式。
当然,在智能密钥设备处于OTP模式时,在接收到第一按键发送的切换指令后,也可切换至KEY模式。
应当理解的是,智能密钥设备通过第一接口与终端设备连接且处于OTP模式时,该OTP模式为OTP第一子模式。
在本发明的实施例中,当智能密钥设备通过第一接口与终端设备连接,且智能密钥设备的模式处于OTP第一子模式时,若检测到第一接口与终端设备断开连接,则智能密钥设备进入休眠状态。
S306,确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,智能密钥设备从当前所处的模式切换为KEY模式,当前所处的模式至少包括OTP模式。
当确定智能密钥设备的第一接口和终端设备从未建立连接状态转换为建立连接状态时,智能密钥设备可从当前处于的模式切换为KEY模式。举例来说,当智能密钥设备为USBKEY且处于OTP第二子模式时,只需通过USB接口与电脑主机连接,即可自动切换为KEY模式。当智能密钥设备的模式处于KEY模式时,若检测到第一接口与终端设备断开连接,则智能密钥设备进入休眠状态。当智能密钥设备的模式处于OTP第二子模式时,若检测到第二按键的触发指令,则智能密钥设备进入休眠状态。
在本发明的实施例中,在确定智能密钥设备通过第一接口与终端设备建立连接后,可执行步骤S305,以完成智能密钥设备从当前所处的第一模式切换为第二模式。如图4所示,具体步骤如下:
S3051,智能密钥设备接收第一按键发送的切换指令。
其中,第一按键可为导航按键。
S3052,智能密钥设备读取信息结构体中的第一状态信息和第一校验信息。
S3053,智能密钥设备对第一状态信息进行CRC(循环冗余校验码)运算,获得第一校验值。
S3054,智能密钥设备比对第一校验值与第一校验信息,若第一校验值与第一校验信息相同,则执行步骤S3055。
S3055,智能密钥设备对第二状态信息进行CRC运算,获得第二校验信息,第二状态信 息为智能密钥设备当前工作模式下的状态信息。
其中,智能密钥设备可将第二状态信息与第二校验信息保存至信息结构体中,并将第二状态信息设为第一状态信息,将第二校验信息设为第一校验信息。
S3056,智能密钥设备执行切换操作,从当前所处的第一模式切换为第二模式。
具体地,可通过跳转或软复位方式执行切换操作。其中,跳转指的是程序跳转到某个指定的位置执行代码。软复位指的是通过指令对CPU(中央处理器)进行复位。
由此可见,OTP第一子模式与KEY模式之间进行切换时,由用户的菜单操作引起,需要通过信息结构体保存智能密钥设备的信息,从而完成模式切换。而从OTP第二子模式切换至KEY模式时,由硬件信号的变化引起,无需信息结构体即可完成模式切换。
本发明实施例通过在智能密钥设备中保存信息结构体,一方面,能够实现智能密钥设备在状态切换后,通过读取信息结构体中保存的信息,设备可以继续上次切换前的操作,而不必对切换前的数据重新进行处理;另一方面,由于信息结构体保存的数据可能会因为外部工作环境发生改变而造成数据错误,通过校验信息结构体中信息是否正确,能够避免设备对读取到的错误数据进行处理,从而使模式间的切换更加可靠。
本发明实施例的实现智能密钥设备模式间切换的方法,通过在智能密钥设备中的信息结构体来保存两种模式的状态信息等,使模式间的切换更加方便,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
图5为根据本发明一个具体实施例的实现智能密钥设备模式间切换的方法的流程图,本实施例以智能密钥设备为USBKEY,第一接口为USB接口,终端为PC(电脑主机)为例进行描述。
如图5所示,该实现智能密钥设备模式间切换的方法包括:
S501,智能密钥设备处于初始状态。
具体地,初始状态可为低功耗的休眠状态,可通过外部信号进行唤醒。
S502,判断USB接口是否接入终端设备,如果已接入,则跳转至步骤S503,即智能密钥设备进入KEY模式;如果未接入,则跳转至步骤S504,即判断是否通过开机按键进行唤醒。
S503,智能密钥设备进入KEY模式;通过导航按键可以转向S506。
S504,判断是否为开机按键唤醒,如果通过开机按键唤醒,则跳转至步骤S505;如果未通过开机按键唤醒,则跳转至步骤S501,即智能密钥设备回到初始状态。
S505,智能密钥设备进入OTP第二子模式。
在智能密钥设备进入OTP第二子模式后,可通过关机按键跳转至步骤S501,即回到初始状态;也可通过USB接口接入终端设备,则跳转至步骤S503,即智能密钥设备进入KEY 模式,在智能密钥设备进入KEY模式时,可通过USB接口提供工作电流。如果智能密钥设备处于缺电状态,则可通过USB接口进行充电。
在智能密钥设备进入KEY模式后,断开与终端设备的连接,则跳转至步骤S501,即智能密钥设备回到初始状态。
S506,智能密钥设备进入OTP第一子模式。
在智能密钥设备进入KEY模式后,可通过导航按键,选择切换至OTP第一子模式。在智能密钥设备进入OTP第一子模式时,可通过USB接口提供工作电流。如果智能密钥设备处于缺电状态,则可通过USB接口进行充电。同样地,通过导航按键也可切换回S503,即KEY模式。
当智能密钥设备处于KEY模式时,用户可按下导航按键,此时智能密钥设备可在显示界面提供导航信息,用户可根据导航信息选择进入OTP模式,并进行确认。智能密钥设备在接收到确认进入OTP模式的触发请求后,可切换至OTP模式。在此种情况下,为KEY模式切换到OTP第一子模式。
具体地,智能密钥设备中保存有信息结构体,该信息结构体用于保存KEY模式或OTP模式的状态信息和校验信息。当通过导航按键进行两种模式之间的切换时,可更新信息结构体。具体地,从信息结构体中获取当前模式的状态信息,对状态信息进行CRC运算,获得校验值,然后将获得的校验值和保存的校验信息进行比对,若二者一致,则执行切换操作。在状态切换后,通过读取信息结构体中保存的信息,智能密钥设备可以继续切换前的操作,而不必对切换前的数据重新进行处理。
另外,信息结构体中保存的信息可能会因为外部工作环境发生改变而造成信息错误,通过校验信息结构体中信息是否正确,能够避免设备对读取到的错误信息进行处理的情况发生。当通过导航按键从KEY模式切换至OTP第一子模式时,首先保存KEY模式的状态信息,然后可通过跳转或软复位方式执行切换操作。其中,跳转指的是程序跳转到某个指定的位置执行代码。软复位指的是通过指令对CPU(中央处理器)进行复位。
当然,在智能密钥设备进入OTP第一子模式后,还可通过导航按键,选择切换回KEY模式。
在智能密钥设备进入OTP第一子模式后,断开与终端设备的连接,则智能密钥设备切换至初始状态。
由此可见,通过开机按键可进入OTP第二子模式,当检测到USB接口插入终端设备,可以由OTP第二子模式切换至KEY模式;而OTP第一子模式是由KEY模式通过菜单选择进入的,然后,又可以通过菜单选择回到KEY模式。
所以,前者由硬件信号的变化引起,后者由用户的菜单操作引起。并且,后者在USB 接口接入PC时,可以进入OTP第一子模式,而前者在USB接口接入PC时,将无法进入OTP模式(即只能进入KEY模式)。
本发明实施例的实现智能密钥设备模式间切换的方法,能够方便和可靠地实现KEY模式和OTP模式的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。另外,智能密钥设备中保存有信息结构体,通过保存两种模式的状态信息等,使模式间的切换更加方便。
为了实现上述实施例,本发明还提出一种实现智能密钥设备模式间切换的装置。
本发明一个实施例的实现智能密钥设备模式间切换的装置的结构图未示出,该实现智能密钥设备模式间切换的装置包括:第一切换模块。
第一切换模块用于确定智能密钥设备通过第一接口与终端设备建立连接后,接收第一按键发送的切换指令,将智能密钥设备从当前所处的第一模式切换为第二模式,其中,第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,第二模式为KEY模式和OTP模式中的另一个模式。
智能密钥设备可以是USBKEY、音频KEY、蓝牙KEY、红外KEY、NFCKEY或WIFIKEY。当智能密钥设备是USBKEY时,可通过USB接口与终端建立连接;当智能密钥设备是音频KEY时,可通过音频接口与终端建立连接;当智能密钥设备是蓝牙KEY时,可开启终端设备的蓝牙模块,通过蓝牙接口与终端建立连接;当智能密钥设备是红外KEY时,可开启终端设备的红外模块,通过红外接口与终端建立连接;当智能密钥设备是NFCKEY时,可开启终端设备的NFC模块,通过NFC接口与终端建立连接;当智能密钥设备是WIFIKEY时,可开启终端设备的WIFI模块,通过WIFI接口与终端建立连接。
在本发明的实施例中,第一切换模块可接收第一按键发送的切换指令,并将智能密钥设备从当前所处的第一模式切换为第二模式。
当智能密钥设备处于KEY模式时,在第一切换模块接收到第一按键发送的切换指令后,可切换至OTP模式。当然,当智能密钥设备处于OTP模式时,在第一切换模块接收到第一按键发送的切换指令后,可切换至KEY模式。
本发明实施例的实现智能密钥设备模式间切换的装置,能够方便和可靠地实现KEY模式和OTP模式的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
本发明另一个实施例的实现智能密钥设备模式间切换的装置结构图未示出,该实现智能密钥设备模式间切换的装置包括:第二切换模块。
第二切换模块可用于确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,将智能密钥设备从当前所处的模式切换为KEY模式,当前所处的模式至少包括OTP模式。
智能密钥设备可以是USBKEY、音频KEY、蓝牙KEY、红外KEY、NFCKEY或WIFIKEY。当智能密钥设备是USBKEY时,可通过USB接口与终端建立连接;当智能密钥设备是音频KEY时,可通过音频接口与终端建立连接;当智能密钥设备是蓝牙KEY时,可开启终端设备的蓝牙模块,通过蓝牙接口与终端建立连接;当智能密钥设备是红外KEY时,可开启终端设备的红外模块,通过红外接口与终端建立连接;当智能密钥设备是NFCKEY时,可开启终端设备的NFC模块,通过NFC接口与终端建立连接;当智能密钥设备是WIFIKEY时,可开启终端设备的WIFI模块,通过WIFI接口与终端建立连接。
当智能密钥设备的第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,第二切换模块可从当前处于的模式切换为KEY模式。举例来说,当智能密钥设备为USBKEY且处于OTP第二子模式时,只需通过USB接口与电脑主机连接,即可自动切换为KEY模式。
本发明实施例的实现智能密钥设备模式间切换的装置,能够方便和可靠地实现KEY模式和OTP模式的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
图6为根据本发明另一个实施例的实现智能密钥设备模式间切换的装置的结构示意图。
如图6所示,该实现智能密钥设备模式间切换的装置包括:第一切换模块61和第二切换模块62。
第一切换模块61用于确定智能密钥设备通过第一接口与终端设备建立连接后,接收第一按键发送的切换指令,将智能密钥设备从当前所处的第一模式切换为第二模式,其中,第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,第二模式为KEY模式和OTP模式中的另一个模式。
在本发明的实施例中,第一切换模块61可接收第一按键发送的切换指令,并将智能密钥设备从当前所处的第一模式切换为第二模式。具体地,第一切换模块61接收到第一按键的切换指令,读取信息结构体中的第一状态信息和第一校验信息,对第一状态信息进行CRC(循环冗余校验码)运算,获得第一校验值,比对第一校验值与第一校验信息,若第一校验值与第一校验信息相同,则对第二状态信息进行CRC运算,获得第二校验信息,第二状态信息为智能密钥设备当前工作模式下的状态信息,然后可通过跳转或软复位方式执行切换操作,从当前所处的第一模式切换为第二模式。其中,智能密钥设备可将第二状态信息与第二校验信息保存至信息结构体中,并将第二状态信息设为第一状态信息,将第二校验信息设为第一校验信息。
当智能密钥设备处于KEY模式时,在第一切换模块61接收到第一按键发送的切换指令后,可切换至OTP模式。当然,当智能密钥设备处于OTP模式时,在第一切换模块61接收到第一按键发送的切换指令后,可切换至KEY模式。
第二切换模块62可用于确定智能密钥设备检测到第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,将智能密钥设备从当前所处的模式切换为KEY模式,当前所处的模式至少包括OTP模式。
当智能密钥设备的第一接口和终端设备之间从未建立连接状态转换为建立连接状态时,第二切换模块62可从当前处于的模式切换为KEY模式。举例来说,当智能密钥设备为USBKEY且处于OTP第二子模式时,只需通过USB接口与电脑主机连接,即可自动切换为KEY模式。
此外,实现智能密钥设备模式间切换的装置还可包括处理模块63。
处理模块63用于接收唤醒指令,并从休眠状态进入唤醒状态。然后判断唤醒指令是否来自第一接口,如果唤醒指令来自第一接口,则确定智能密钥设备通过第一接口与终端设备建立连接,进入KEY模式;如果唤醒指令不是来自第一接口,则确定智能密钥设备没有通过第一接口与终端设备建立连接,并判断唤醒指令是否来自第二按键,如果唤醒指令来自第二按键,则进入OTP模式。
进一步地,实现智能密钥设备模式间切换的装置还可包括休眠模块64。
休眠模块64用于确定智能密钥设备通过第一接口与终端设备连接之后,确定智能密钥设备通过第一接口与终端设备连接,且智能密钥设备当前所处的模式为OTP模式后,检测到第一接口与终端设备断开连接时,使智能密钥设备进入休眠状态。休眠模块64还用于确定智能密钥设备通过第一接口与终端设备连接之后,确定智能密钥设备通过第一接口与终端设备连接,且智能密钥设备当前所处的模式为KEY模式后,检测到第一接口与终端设备断开连接时,使智能密钥设备进入休眠状态。休眠模块64还用于接收第二按键的触发指令,确定智能密钥设备没有通过第一接口与终端设备连接之后,确定智能密钥设备当前所处的模式为OTP模式后,检测到第二按键的触发指令后,使智能密钥设备进入休眠状态。
具体实现智能密钥设备模式间切换的过程,可参见图1至图4的方法实施例,此处不赘述。
本发明实施例的实现智能密钥设备模式间切换的装置,能够方便和可靠地实现KEY模式和OTP模式的切换,实现了两者功能和物理上的融合,节省了成本,为用户提供了便利。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以 采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (15)

  1. 一种实现智能密钥设备模式间切换的方法,其特征在于,所述智能密钥设备具有第一按键和第一接口;所述方法包括:
    确定所述智能密钥设备通过所述第一接口与终端设备建立连接后,若所述智能密钥设备接收到所述第一按键发送的切换指令,则所述智能密钥设备从当前所处的第一模式切换为第二模式,其中,所述第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,所述第二模式为所述KEY模式和所述OTP模式中的另一个模式;
    确定所述智能密钥设备检测到所述第一接口和所述终端设备之间从未建立连接状态转换为建立连接状态时,所述智能密钥设备从当前所处的模式切换为所述KEY模式,所述当前所处的模式至少包括所述OTP模式。
  2. 根据权利要求1所述的方法,其特征在于,所述第一接口包括:有线接口或无线接口,所述有线接口包括通用串行总线USB接口或音频接口,所述无线接口包括蓝牙接口、红外接口、近距离无线通讯NFC接口或无线保真WIFI接口。
  3. 根据权利要求1或2所述的方法,其特征在于,所述智能密钥设备还包括第二按键,所述方法还包括:
    所述智能密钥设备接收唤醒指令;
    所述智能密钥设备从休眠状态进入唤醒状态,并判断所述唤醒指令是否来自所述第一接口;
    如果所述唤醒指令来自所述第一接口,则确定智能密钥设备通过所述第一接口与所述终端设备建立连接,进入所述KEY模式;
    如果所述唤醒指令不是来自所述第一接口,则确定智能密钥设备没有通过所述第一接口与所述终端设备建立连接,并判断所述唤醒指令是否来自所述第二按键,如果所述唤醒指令来自所述第二按键,则进入所述OTP模式。
  4. 根据权利要求1或2所述的方法,其特征在于,还包括:
    确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备当前所处的模式为所述OTP模式后,在检测到所述第一接口与所述终端设备断开连接时,则所述智能密钥设备进入休眠状态。
  5. 根据权利要求1或2所述的方法,其特征在于,所述智能密钥设备接收所述第一按键发送的所述切换指令,并将所述智能密钥设备从当前所处的所述第一模式切换为所述第二模式,具体包括步骤:
    A.所述智能密钥设备接收所述第一按键发送的所述切换指令;
    B.所述智能密钥设备读取信息结构体中的第一状态信息和第一校验信息;
    C.所述智能密钥设备对所述第一状态信息进行循环冗余校验码CRC运算,获得第一校验值;
    D.所述智能密钥设备比对所述第一校验值与所述第一校验信息,若所述第一校验值与所述第一校验信息相同,则执行步骤E;
    E.所述智能密钥设备对第二状态信息进行循环冗余校验码CRC运算,获得第二校验信息,所述第二状态信息为所述智能密钥设备当前工作模式下的状态信息;所述智能密钥设备将所述第二状态信息与所述第二校验信息保存至所述信息结构体中,并将所述第二状态信息设为所述第一状态信息,将所述第二校验信息设为所述第一校验信息;
    F.所述智能密钥设备执行切换操作,从当前所处的所述第一模式切换为所述第二模式。
  6. 根据权利要求5所述的方法,其特征在于,所述切换操作具体为:跳转切换操作,或软复位切换操作。
  7. 根据权利要求1、2或6任一项所述的方法,其特征在于,所述OTP模式包括OTP第一子模式和OTP第二子模式,
    在确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第一子模式;
    在确定所述智能密钥设备没有通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第二子模式。
  8. 一种实现智能密钥设备模式间切换的装置,其特征在于,所述智能密钥设备具有第一按键和第一接口;所述装置包括:
    第一切换模块,用于确定所述智能密钥设备通过所述第一接口与终端设备建立连接后,当所述智能密钥设备接收所述第一按键发送的切换指令时,所述智能密钥设备从当前所处的第一模式切换为第二模式,其中,所述第一模式为电子签名工具KEY模式和动态令牌OTP模式中的一个模式,所述第二模式为所述KEY模式和所述OTP模式中的另一个模式;
    第二切换模块,用于确定所述智能密钥设备检测到所述第一接口和所述终端设备之间从未建立连接状态转换为建立连接状态时,所述智能密钥设备从当前所处的模式切换为所述KEY模式,所述当前所处的模式至少包括所述OTP模式。
  9. 根据权利要求8所述的装置,其特征在于,所述第一接口包括:有线接口或无线接口,所述有线接口包括通用串行总线USB接口或音频接口,所述无线接口包括蓝牙接口、红外接口、近距离无线通讯NFC接口或无线保真WIFI接口。
  10. 根据权利要求8或9所述的装置,其特征在于,所述智能密钥设备还包括第二按键,所述装置还包括:
    处理模块,用于接收唤醒指令,并从休眠状态进入唤醒状态,以及判断所述唤醒指令是否来自所述第一接口,如果所述唤醒指令来自所述第一接口,则确定智能密钥设备通过所述第一接口与所述终端设备建立连接,进入所述KEY模式;如果所述唤醒指令不是来自所述第一接口,则确定智能密钥设备没有通过所述第一接口与所述终端设备建立连接,并判断所述唤醒指令是否来自所述第二按键,如果所述唤醒指令来自所述第二按键,则进入所述OTP模式。
  11. 根据权利要求8或9所述的装置,其特征在于,所述装置还包括:
    休眠模块,用于确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备当前所处的模式为所述OTP模式后,在检测到所述第一接口与所述终端设备断开连接时,则所述智能密钥设备进入休眠状态。
  12. 根据权利要求8或9所述的装置,其特征在于,所述第一切换模块,具体用于:
    接收到所述第一按键发送的所述切换指令;
    读取信息结构体中的第一状态信息和第一校验信息;
    对所述第一状态信息进行循环冗余校验码CRC运算,获得第一校验值;
    比对所述第一校验值与所述第一校验信息,若所述第一校验值与所述第一校验信息相同,则对第二状态信息进行循环冗余校验码CRC运算,获得第二校验信息,所述第二状态信息为所述智能密钥设备当前工作模式下的状态信息;将所述第二状态信息与所述第二校验信息保存至所述信息结构体中,并将所述第二状态信息设为所述第一状态信息,将所述第二校验信息设为所述第一校验信息;
    执行切换操作,从当前所处的所述第一模式切换为所述第二模式。
  13. 根据权利要求12所述的装置,其特征在于,所述切换操作具体为:跳转切换操作,或软复位切换操作。
  14. 根据权利要求8、9或13任一项所述的装置,其特征在于,所述OTP模式包括OTP第一子模式和OTP第二子模式,
    在确定所述智能密钥设备通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第一子模式;
    在确定所述智能密钥设备没有通过所述第一接口与所述终端设备连接,且所述智能密钥设备的模式处于所述OTP模式时,则所述OTP模式具体为所述OTP第二子模式。
  15. 一种计算机可读存储介质,包括计算机指令,当所述计算机指令被执行时,使得执行权利要求1-7中任一项所述的实现智能密钥设备模式间切换的方法。
PCT/CN2015/084316 2014-07-17 2015-07-17 实现智能密钥设备模式间切换的方法和装置 WO2016008447A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 天地融科技股份有限公司 智能密钥设备和智能密钥设备的信息管理方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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