A kind of public security certificate printer
Technical field
The utility model relates to a kind of dedicated printer being applicable to print driver's license, driver's trip ticket.
Background technology
Existing printer is not also suitable for printing driver's license, driver's trip ticket, and driver's license, driver's trip ticket are national legal identity documents, and in print procedure, consider for information security, the data of transmission and order need encryption.Especially need to preserve print record, be convenient to review afterwards.
The key of common AES is kept on computer terminal, by the key on acquisition computer terminal for deciphering the data of intercepting, can realize stealing of data.And rivest, shamir, adelman needs two keys: public-key cryptography and private cipher key.Public-key cryptography and private cipher key are a pair, if be encrypted data with public-key cryptography, only had and could decipher with corresponding private cipher key; If be encrypted data with private cipher key, so only had and could decipher with corresponding public-key cryptography.
The deciphering module of asymmetric arithmetic is often used in Web system checking, as High Security Level file on-line normalization, and chat encryption etc.But fail to apply on a printer.
Summary of the invention
The utility model object is, provides a kind of printer being applicable to print driver's license, driver's trip ticket has data rivest, shamir, adelman function, especially has the printer of asymmetric arithmetic deciphering module.
The technical solution of the utility model is: a kind of public security certificate printer, it is characterized in that: comprise communication interface, asymmetric arithmetic deciphering module, printing drive module and printer body, control to connect printing drive module again after the terminal computer of printer connects authentication module, asymmetric arithmetic deciphering module successively by communication interface, the print data of deciphering is connected to printing drive module by asymmetric arithmetic deciphering module.Sent to the asymmetric arithmetic deciphering module of printer by communication interface together with signal code after needing the public key encryption of the data asymmetric arithmetic printed, asymmetric arithmetic deciphering module receives signal code and mates, to the decrypt data of asymmetric encryption after the match is successful, new signal code is sent it back terminal computer simultaneously.
Further, described communication interface is USB both-way communication interface.
Further, also comprise memory module, described memory module is connected with communication interface, authentication module respectively, and the enciphered data source-information received is sent to memory module by authentication module, and terminal computer is connected with memory module by communication interface.
The beneficial effects of the utility model are:
(1) by asymmetric arithmetic deciphering module, print data is decrypted.Printer communication interface supports USB both-way communication, by strict mutual in case leakage of data.The critical data printed will based on rivest, shamir, adelman;
(2) use dynamic encryption algorithm, due to the mutual employing dynamic cipher verification by asymmetric arithmetic deciphering module between terminal computer and printer, the possibility obtaining data clear text is minimum;
(3) increase the write of print record, read control, can be used for reviewing in the future.
Accompanying drawing illustrates:
Fig. 1 is composition frame chart of the present utility model.
Detailed description of the invention
A kind of public security certificate printer, comprise communication interface, asymmetric arithmetic deciphering module, printing drive module and printer body, the terminal computer controlling printer connects authentication module successively by communication interface, printing drive module is connected again after asymmetric arithmetic deciphering module, sent to the asymmetric arithmetic deciphering module of printer by communication interface together with signal code after the public key encryption of the data asymmetric arithmetic printed by needs, asymmetric arithmetic deciphering module receives signal code and mates, to the decrypt data of asymmetric encryption after the match is successful, new signal code is sent it back terminal computer simultaneously, the print data of deciphering is sent to printing drive module by asymmetric arithmetic deciphering module.Described communication interface is USB both-way communication interface; Also comprise memory module, described memory module is connected with communication interface, authentication module respectively, and the enciphered data source-information received is sent to memory module by authentication module, and terminal computer is connected with memory module by communication interface.
The terminal computer controlling printer is encrypted to special certificate printer transmission signal code and the PKI of data in rivest, shamir, adelman, after asymmetric arithmetic deciphering module receives signal code and enciphered data, the coupling of advanced row signal code, signal code mates with the front signal code once sent out after being deciphered by the private key of encrypting module, the private key pair encryption decrypt data of the rivest, shamir, adelman stored in asymmetric arithmetic deciphering module is utilized after the match is successful, the new signal code of random generation utilizes encrypted private key to send it back terminal computer simultaneously, as data interaction password next time, the data of deciphering are sent to printing drive module by asymmetric arithmetic deciphering module, and printer prints immediately, and the source-information of asymmetric arithmetic deciphering module data decryption is sent to memory module, generate and preserve Vehicle Certificate print record.
As the signal code of asymmetric arithmetic deciphering module, it fails to match, and asymmetric arithmetic deciphering module abandons deciphering, and derived data is sent to memory module and preserves.
Rivest, shamir, adelman is prior art, and it needs two keys: PKI and private key.PKI and private key are a pair, if be encrypted data with PKI, only had and could decipher with corresponding private key; If be encrypted data with private key, so only had and could decipher with corresponding PKI.
The terminal computer controlling printer can suffer the attack of the personnel such as hacker, key is easily obtained by people, by intercepting the data communication between terminal computer and printer, can oppositely decipher to obtain data message, and use rivest, shamir, adelman, even if the PKI in terminal computer is intercepted, also cannot carry out oppositely deciphering by PKI and obtain data message.
Asymmetric arithmetic deciphering module needs to comprise key storage chip and process chip, process chip will be encrypted data, decipher and the operation such as coupling, rivest, shamir, adelman algorithm intensity is complicated, but security depends on algorithm with key due to its algorithm complexity, and the speed making encrypting and decrypting speed not have symmetric cryptography to decipher is fast, corresponding processor requirement can promote.
It should be pointed out that for those skilled in the art, under the prerequisite not departing from the utility model principle, can also make some improvements and modifications, these improvements and modifications also should be considered as protection domain of the present utility model.The all available prior art of each part not clear and definite in the present embodiment is realized.