| In the era of information globalization,with the increasing demand for data security protection,the importance of password is becoming more and more prominent.As a new domestic computer,ternary optical computer has the advantages of reconfigurable processor and no carry in addition operation.Different from the development history of electronic computers and cryptography,ternary optical computers in the early stage of development have less research in the direction of cryptography.At the same time,as an important branch of cryptography,message digest algorithm is the pre security guarantee of many cryptographic algorithms.Therefore,this paper proposes the design and implementation of message digest algorithm based on ternary optical computer.This paper mainly studies from three aspects: one is that the MSD(Modified Signed Digital)number system used by ternary optical computer,as a redundant number system,needs to be transformed into binary,which is a non redundant number system,before it can be applied to the shift logic operation used in message summarization algorithm.Otherwise,the encryption result will be different from that of the computer using binary.However,there is little research on the scheme of converting MSD number into ordinary binary number.Therefore,this paper proposes two schemes to convert MSD number into ordinary binary number.It lays a foundation for the following work to optimize the design of message summarization algorithm on ternary optical computer;Secondly,the design of message summarization algorithm based on ternary optical computer can be understood from two aspects.Firstly,according to the structure of existing message summarization algorithm,the optimal implementation of message summarization algorithm on ternary optical computer is analyzed and studied.Therefore,the second work of this paper is to use the ternary optical computer to optimize the domestic message summary algorithm-guomi SM3(Shang Mi 3commercial password),so that the throughput of guomi SM3 algorithm can reach 365.714gb/s.It improves the operation efficiency of the state secret SM3 algorithm and verifies the acceleration ability of the ternary optical computer;The third item is the meaning of message summarization algorithm design based on ternary optical computer.The second aspect is to design a new message summarization algorithm using ternary optical computer.In this paper,a new message summarization algorithm(TOC_512)based on ternary optical computer is designed,and its security against birthday attack and avalanche effect are analyzed.It is proved that under the same ciphertext length,the security of message summarization function based on ternary optical computer is higher than that based on ordinary electronic computer.The main innovations of this paper are: the research on message summarization algorithm of ternary optical computer is proposed for the first time;The combination of the new domestic computer ternary optical computer and the state secret SM3 algorithm greatly improves the throughput of Sm3 algorithm,contributes to the popularization of Sm3 algorithm,and verifies the acceleration ability of ternary optical calculation;The first message summarization algorithm based on ternary optical computer(TOC_512)is designed. |