CPC H04L 9/3231 (2013.01) [G06F 21/32 (2013.01); G06F 21/45 (2013.01); H04L 9/0869 (2013.01)] | 20 Claims |
1. An authentication method, comprising the following steps:
Step 101, receiving, by an authentication device, a command from an upper host;
Step 102, parsing, by the authentication device, an option parameter in the command of the upper host;
Step 103, determining, by the authentication device, a value of a fingerprint authentication identifier in the option parameter, and based on the determining the value of the fingerprint authentication identifier is a first preset value, executing Step 104; based on the determining the value of the fingerprint authentication identifier is a second preset value, executing Step 105;
Step 104, prompting, by the authentication device, a user to input a fingerprint and verifying the fingerprint input by the user to obtain a user operation verification result, executing Step 106;
Step 105, prompting, by the authentication device, the user to press a key and verifying the key pressed by the user to obtain a user operation verification result, executing Step 106;
Step 106, determining, by the authentication device, the user operation verification result, and based on the determining the user operation verification result is success, executing Step 107; based on the determining the user operation verification result is failure, reporting an error;
Step 107, setting, by the authentication device, an authentication mode confirmation identifier according to the value of the fingerprint authentication identifier, obtaining client data from the command of the upper host, generating data to be signed according to the authentication mode confirmation identifier and the client data, performing a signature operation on the data to be signed and generating a signature result; and
Step 108, sending, by the authentication device, the signature result to the upper host.
|