发明名称 METHOD AND DEVICE FOR GENERATING DIGITAL SIGNATURE
摘要 Disclosed are a method and device for generating a digital signature. The method comprises: a device generating a digital signature parameter r that meets an effective determining condition; generating a digital signature parameter s according to the following formula s=((1+dA)-1·(r+k)-r)mod n, by using a private key dA, a random number k, r, and an elliptic curve parameter n, a value range of k being [1, n-1]; determining if the generated s is 0; if s is 0, regenerating r that meets the effective determining condition, and regenerating s by using dA, the regenerated k with the value range of [1, n-1] and the regenerated r and n, until s is not 0; converting data types of r and s that is not 0 into byte strings, to obtain a digital signature (r, s). According to the technical solutions provided by embodiments of this application, a digital signature parameter s is obtained by using a simplified calculation formula, and the number of times that big integers are calculated can be reduced, so that the calculation efficiency of generating a digital signature based on an SM2 digital signature generation algorithm is improved.
申请公布号 WO2015021934(A1) 申请公布日期 2015.02.19
申请号 WO2014CN84380 申请日期 2014.08.14
申请人 CHINA IWNCOMM CO., LTD. 发明人 LI, ZHIYONG;WAN, HONGTAO;YAN, XIANG
分类号 H04L9/32 主分类号 H04L9/32
代理机构 代理人
主权项
地址