AbstractSM3 algorithm is a hash algorithm independently developed inChina.This paper will analyze the encryption principle and each processof Sm3 algorithm,and use java language to design programs to realizeSM3 algorithm,and implement each process of Sm3 algorithm throughJava functions,including data filling,grouping and iterative compression.In this process,through the different Java data types used to store data inthe SM3 encryption process,two different SM3 algorithm javaimplementations are designed:SM3 string mode and SM3 BigIntegermode.The advantages and disadvantages of the two methods areanalyzed.Finally,the SM3 encryption program designed is comparedwith other hash algorithms (MD5,SHA-256)of Java language,and theirrunning efficiency is compared.[Key words]hash algorithm;national key SM3;Java programming;
暂无评论内容