ElGamal-数字签名-修改版教学文稿
- 格式:doc
- 大小:390.00 KB
- 文档页数:22
基于改进的ELGamal签名的双向认证方案左为平2,1王彩芬2( 1 天水师范学院 数理与信息科学学院 甘肃 天水 741000 )( 2 西北师范大学 数学与信息科学学院, 甘肃 兰州 730070 )摘要: 本文在改进的ElGamal数字签名方案的基础上,结合零知识证明的思想,提出了一种基于身份的双向认证方案,用户不必暴露自己的秘密信息就可以实现身份认证。
该方案在保证较高安全性的同时, 还具有较高的效率。
关键词: 身份认证 ElGamal 零知识证明 数字签名 离散对数中图分类号: TP309 文献标识码: AA Two-Way Identification Scheme Based on The Improved ElGamal Digital SignatureZUO Wei-ping2,1 WANG Cai-fen2( 1 College of Mathematics,Physics and Information Science, Tianshui Normal College , Gansu Tianshui 741000, China )( 2 College of Mathematics and Information Science, Northwest Normal University, Gansu Lanzhou 730070, China )Abstract : Based on the improved ElGamal digital signature and Zero-knowledge , a two-way identification scheme was presented in this paper ,which enable a identification system to validate a user’s identity without exposing the user’s secret information. The scheme has not only higner security ,but also higner efficeny.Keywords: Identification ElGamal Zero-knowledge Digital-signature Discrete- logarithm1 引言在计算机网络中,身份认证,也称为身份鉴别, 主要用于证实用户所声称的身份是否真实,具体是指,在确保被认证方没有泄露自己身份信息的前提下,能够以某种方式来证明自己的身份。
摘要随着网络的发展,人们之间的各种交流变得越来越来方便,但同时也对信息传递的安全提出了新的要求,数字签名随之广泛的深入到了人们的日常生活中。
ELGamal作为目前应用比较广泛的数字签名算法,其信息安全性,以及可实现程度,在很大程度上决定了它的应用范围。
本文主要对ELGamal数字签名体制中的签名和认证过程中所需的模块,以及用户如何由离散对数难题保证了签名的正确性进行了必要的描述。
接下来对ELGamal数字签名安全性以及他在基于身份认证中的应用做了一定介绍。
论文重点是对密码算法前提的大整数运算算法做了进一步研究,对大素数的生成,其中包括素性测试和随机数生成算法原理做了一定介绍,然后介绍了乘法群的生成元的生成原理,论文最后将系统介绍签名过程。
关键词:ELGamal数字签名验证大整数运算大素数生成元ABSTRACTWith the development of network, the communions between people become more and more convenient, but also it brings forward the new security requirements of in-formation transfer. Digital Signature goes into the people's daily life along with these processes.As one of the most widely used Digital Signature, the application of the ELGamal Signature is largely depend on his information security and the operation process. In this paper, we will discuss the process of the ELGamal Signature and the attestation. One can check his authorization of the sign which rely on the problem of the discrete logarithm. And then we will analyze the security of the signature. The application the ELGamal signature in the ID-BASE system will also be discussed. The key part of this paper is to introduce the concept the large integer. The arithmetic of the large in-teger is crucial in most cryptosystems.As to the construction of a large prime inte-ger,we will discuss the method to construct a Random Number and the primality test.Then the high-order-cycle generator method for the formation of the foundation will introduced too.In the last part of the paper,we will go through the process of the ELGamal Signature.keywords: ELGamal Digital Signature authorization large Integer large Prime Number generator目录错误!未定义书签。
《密码学》课程设计实验报告实验序号:06 实验项目名称:数字签名RSA签名RSA签名核心代码说明由于在实验报告5中已经对RSA的相关代码进行了分析,这里主要给出签名和验签的代码。
在对某个二进制文件进行签名之前,我们首先需要计算其数据摘要,这里我们采用md5哈希算法,其对应的代码如下md5哈希算法在RSA的签名中,其实就是用私钥进行解密的过程,其对应的代码如下RSA签名其中解密对应的代码如下,pow函数提供了快速幂的功能RSA解密在RSA验签的过程中,其实就是用公钥进行加密的过程,其对应的代码如下RSA验签其中加密对应的算法如下RSA加密RSA签名实验结果演示首先是计算待签名文件的md5值md5结果对得到的md5值进行签名,可以得到如下的结果RSA签名结果对签名进行验签,可以发现成功验证签名验证签名ECC签名代码整体说明相关文件(ecc.py)由于在前面的ECC加解密(实验报告5)中已经对ECC的相关接口进行了介绍,这里我们不再重复。
这里主要给出签名和验签的主要流程签名的主要流程如下1.选择一个随机数k,k∈{1,2,⋯,n−1}2.计算点R(x R,y R)=kG,并记r=x R3.利用保密的解密钥d计算s=(Hasℎ(m)−dr)k−1 (mod n)4.以<r,s>作为消息m的签名,并以<m,r,s>的形式传输或者存储验签的主要流程如下1.计算s−1 (mod n)2.利用公开的加密钥Q计算U(x U,y U)=s−1(Hasℎ(m)G−rQ)3.如果x U=r,则<r,s>是用户A对m的签名ECC签名核心代码说明由于在实验报告5中已经对ECC的相关代码进行了分析,这里主要给出签名和验签的代码。
进行签名的代码主要如下,可以发现和我们上面提到的签名步骤是一一对应的ECC签名进行验签的代码如下,和上述我们提到的验签步骤也是一一对应的ECC验签ECC签名实验结果演示同RSA签名一样,我们首先需要计算文件对应的数据摘要,这里我们使用md5哈希算法md5数据摘要接着对数据摘要进行签名,得到如下的签名结果ECC签名结果对得到的签名进行验签,可以发现成功验证ECC验签五、分析与讨论1)与ECC的签名相比,RSA的签名和验签显得更为优雅,即解密对应签名,加密对应验签2)和RSA签名相比,ECC引入了随机数k,使得即使对同一个数据进行签名,产生的结果也可能不一样,这在一定程度上增加了ECC签名的安全性3)与传统的分组密码相比,使用公钥密码实现数字签名非常方便且更加安全。
ELGamal数字签名技术的研究摘要计算机网络的产生把我们带进了一个信息化的社会。
当前,计算机网络的安全问题日益突出,网络给我们带来便利的同时,网络安全的形式不容乐观,已严重威胁到人们正常的生活,甚至威胁到国家安全。
网络安全的实质是信息安全,信息安全技术的核心之一是数字签名技术。
如何在信息传输的过程中保证信息的安全性和真实性,这是数字签名技术所要研究的重要问题。
数字签名可以解决否认、伪造、篡改、冒充问题。
使用数字签名技术使得发送者发送的时候不能否认发送的报文签名,接受者不能伪造发送者的报文签名,即网络中的某一用户不能冒充另一用户。
ELGamal数字签名作为一种重要的签名手段与一般公钥密码体制签名方法的不同之处,是具有高安全性和实用性。
本文介绍了ELGamal技术的基础知识以及它的推广并与RSA算法做一对比,得出ELGamal有着很大的优越性。
最后阐述了基于ELGamal体制盲签名、代理签名以及多重数字签名。
关键词密码学,信息安全,RSA, ELGamalABSTRACTComputer network produces have brought us into a information society. At present, the computer network security problem increasingly, network brings us convenient at the same time, network security is not optimistic, and the form of already a serious threat to people's normal life and even threaten national security. Network security is the essence of information security, information security technology is one of the core password techniques. How in the process of information transmission assurance information security and authenticity, this is digital signature technology to research the important problem. Digital signature can be solve deny, forgery, falsify or pretend to be problems. Using digital signature technology makes the sender can deny that send message when recipients can't forged signatures, and the sender's message signatures, namely a network of users don't pretend to be another user.ELGamal digital signature method and general public key cryptosystems signature method, is the differences with high safety and practicality. This paper introduces the basic knowledge of ELGamal technology and its promotion and comparison with RSA algorithms, it is concluded that the ELGamal has great advantages. Finally lists the ELGamal signature technique based on other signature scheme.Key Words:Cryptograph, Information Security, RSA, ELGamal目录1. 绪论 (1)1.1研究背景及意义 (1)1.1.1信息安全的重要地位 (1)1.1.2密码理论在信息安全中的重要作用 (2)1.2数字签名技术的作用 (3)1.3 数字签名原理 (4)1.4 数字签名的功能 (6)1.5 数字签名技术的应用 (7)2.基本概念 (8)2.1 数论 (8)2.1.1因子 (8)2.1.2.素数 (8)2.1.3.模运算 (8)2.1.4本原元 (9)2.2 复杂度理论 (9)2.2.1.问题的复杂性 (9)2.2.2算法的复杂性 (10)3.基于ElGamal 算法的数字签名方案 (11)3.1数字签名定义 (11)3.1.1 形式化定义 (11)3.1.2 数字签名的安全性 (12)3.1.3数字签名的攻击 (13)3.2 离散对数签名方案 (13)3.2.1有限域(p)GF (13)3.2.2离散对数问题 (14)3.3 ELGamal数字签名 (14)3.3.1 ELGamal签名方案 (14)3.3.2 ELGamal签名方案的变形 (15)3.3.3.ELGamal签名体制与其变形的比较 (18)3.4 ELGamal算法与RSA算法的性能比较 (20)4.基于ELGamal数字签名体制的其它签名方案 (22)4.1基于ELGamal体制的盲签名方案 (22)4.1.1过程 (22)4.1.2.性能分析 (23)4.2基于ELGamal体制的代理签名方案 (24)4.2.1 签名过程 (25)4.3基于ELGamal体制的多重数字签名方案 (26)4.3.1基于ELGamal体制的广播多重数字签名 (26)4.3.2基于ELGamal体制的有序多重数字签名 (28)5.总结 (31)参考文献 (33)答谢 (34)1. 绪论1.1研究背景及意义信息在社会中的地位越来越重要,已成为社会发展的重要战略资源。
Vol. 36 No. 4Apr. 2019第36卷第4期2019年4月计算机应用与软件 Computer Applications and Software对一种改进的ElGamal 数字签名方案的攻击与改进周克元(宿迁学院文理学院 江苏宿迁223800)摘 要 针对无Hash 函数的ElGamal 离散对数数字签名问题,对其各类改进方案进行分析研究,对最新的改 进方案进行伪造签名攻击。
给出4种伪造签名方法,证明其不具有安全性。
针对其方案的缺点提出一个新的改进方案。
证明了其正确性和安全性,可防止各种伪造攻击和同态攻击。
关键词 离散对数数字签名Hash 函数伪造攻击改进中图分类号 TP309.7 文献标识码 A D01:10.3969/j. issn. 1000-386x. 2019.04.051ATTACK AND IMPROVEMENT ONAN IMPROVED ELGAMAL DIGITAL SIGNATURE SCHEMEZhou Keyuan(School of Liberal Arts and Science , Suqian College , Suqian 223800, Jiangsu , China)Aiming at the problem of ElGamal discrete logarithmic digital signature without Hash function , we analyzedimproved schemes. In this paper , an improved ElGamal digital signature scheme was analyticalWe gave four forgery signature schemes and proved to be insecure. In view of the shortcomings of improved improved scheme we proved its correctness and security , and itHash function Forgery attack ImprovementAbstract and studied various attacked.ElGamal digital signature scheme , we proposed a new could prevent various forgery attacks and homomorphism attacks.Keywords Discrete logarithm Digital signature o 引言1976年,Diffie 和Hellman 提出数字签名概念⑴,到目前,数字签名技术得到了长足的发展和极大的应用。
E l G a m a l-数字签名-修改版ElGamal数字签名技术综述摘要当今社会是一个信息化的社会,计算机以及互联网的普及,让人们的生活越来越方便,但是,信息安全的问题却日益突出,尤其表现在计算机网络的安全问题上。
现在网络安全的形式已不容乐观,不仅严重威胁到人们正常的生活,甚至威胁到国家的安全。
因此,信息安全的重要性愈发突出,而信息安全技术的核心之一就是数字签名技术。
如何在信息传输过程中保证信息的安全性和真实性,这是数字签名技术所要研究的重要问题。
数字签名可以解决否认、伪造、篡改、冒充问题。
使用数字签名技术使得发送者发送的时候不能否认发送的报文签名,接受者不能伪造发送者的报文签名。
ElGamal数字签名方案作为目前最为重要的数字签名方案之一,极大地促进了现代密码学的发展。
ElGamal数字签名与一般公钥密码体制签名的不同之处,是具有高安全性和实用性。
本文介绍ElGamal的基础知识以及改进后的ElGamal数字签名,阐述了基于ElGamal体制盲签名和多重数字签名。
关键词信息安全数字签名技术 ElGamal 密码学ABSTRACTToday is an information society, the popularity of computers and the Internet make lives of people more and more convenient. However, the issue of information security has become increasingly prominent, espcially in the issues of the computer network security. At present, the form of the network security is not optimistic, not only a serious thread to people’s normal lives, but also even a thread to national security. Therefore, the importance of information security become more prominent, and one of the core password of information security technology is the digital signature technology. How in the process of information transmission to ensure information security and authenticy, which is a important issues the digatal signature technology to study. The digital signature can be resolved to the problem of deny, forgery, tampering, posing. Using digital signature technology makes the sender can not deny that send message when recipients can not forged signatures, and the sender’s message signatures.As currently one of the most important digital signature scheme, ElGamal digital signature scheme greatly stimulates the development of modern cryptography. The difference of ElGamal digital signature and the general public key cryptosystem signature is high safety and practicality. In this paper, we introduced the basic knowledge of ElGamaldigital signature technology and improved ElGamal digital signature, list the ElGamal signature technique based on other signature scheme.Keywords Infomation security, Digatal signature technology, ElGamal, Cryptography第一章绪论1.1研究背景及意义信息在社会中的地位越来越重要,已成为社会发展的重要战略资源,信息安全的重要性也日益突出,而信息安全技术的核心之一就是数字签名技术。
同时现代数字签名技术是解决信息安全的比较有效的方法。
因此,数字签名的研究成为当前国际上的一个研究热点。
而怎样利用数字签名来保证信息在传输过程中的安全性和真实性是当前研究的一个重要课题。
1.2信息安全的重要性信息系统安全的中心内容是保证信息在系统中的保密性、认证性和完整性。
传统的密码体制,其主要功能是信息保密,而现代密码体制还应保证信息在系统的可认证性和完整性,这样可以保证在公开信道上安全地传递信息。
为了防止消息被窜改、删除、重放和伪造,一种有效的方法是使发送的消息具有被验证的能力,使接收者能够识别和确认消息的真伪,实现这类功能的密码系统称为认证系统。
消息的认证性和消息的保密性不同,保密性是使截获者在不知密钥的情况下不能解读密文的内容。
而认证性是使任何不知密钥的人不可以构造出一个密文,使意定的接收者脱密成一个可理解的消息(合法的消息)。
认证理论和技术是最近20年来随着计算机通信的普遍应用而迅速发展起来,它成为保密学的一个重要的领域。
认证系统主要有以下几个方面的内容:(1)消息认证;(2)身份认证;(3)数字签名。
前两者的目的是解决在通信双方利害一致条件下,如何防止第三方伪装和破坏的问题。
而数字签名则解决了当通信双方是竟争对象时,如何远距离迅速地用电子签名代替传统的手写签名和印签的问题。
自从1949年Shannon发表了题为“保密系统的通信理论”以来,随着信息时代的来临和数字通信技术的飞速发展,特别是当今的通信与计算机网络的结合,将会逐步使用电子邮件来代替传统的书面邮件,这些要求使用这种系统的收方对发方的身份进行确证,这可用数字签名来完成。
数字签名是现代通信中实现消息认证的一种重要手段。
1.3数字签名的基本概念数字签名,就是只有信息的发送者才能产生的别人无法伪造的一段数字串,这段数字串同时也是对信息的发送者发送信息真实性的一个有效证明。
其是非对称密钥加密技术与数字摘要技术的应用。
数字签名了的文件的完整性是很容易验证的,而且数字签名具有不可抵赖性。
数字签名的流程如下所示:数字签名的目的是:(1)使收方能够确证发方的签名,但不能伪造;(2)发方发出签了名的消息给收方后,就不能否认它所签发的消息;(3)一旦收发双方就消息的内容和来源发生争执时,应能给仲裁者提供发方对所发消息签了名的数据。
1.4 数字签名的功能和应用数字签名其功能有以下几个方面:(1)完整性:数字签名与原始的文件或其摘要一起发送给接收方,一旦信息被篡改,接受者可以通过计算机摘要和验证签名来判断该文件无效。
(2)机密性:将报文信息用接收方的公钥进行解密,以保证信息的机密性。
(3)防伪造:签名密钥即私钥只有签名者自己拥有,别人不能伪造出正确的签名数据。
这就是防伪造特性。
(4)身份认证:数字签名中,公钥是其身份的标志,使用公钥签名,如果接受方或验证方用其公钥进行验证并获通过,那么可以肯定签名人就是拥有私钥的那个人。
(5)防抵赖:数字签名可作为签名者签名操作的依据,防止抵赖。
(6)防重放攻击:通常采用对签名报文的加盖时间戳或添加处理流水号等技术,可以防止重放技术。
数字签名的应用如下:数字签名技术最早应用于用户登录过程。
PKI作为电子商务、电子政务的技术平台,使得技术应用、商业价值、生产力提高成为有机的整体,得到了长足的发展。
到目前为止,全国省市几乎都建立了自己的CA认证中心,这些CA中心的数字证书及相关应用方案被广泛应用于网上报关、网上报税、网上报检、网上办公、网上招投标、网上采购、数字工商等大型电子政务和电子商务工程中。
数字签名技术还广泛应用于电子邮件、数据交换、电子交易和电子货币等领域。
安全电子交易SET是MasterCard两大信用卡公司和多家科技公司于1977年制定的一个在Internet上进行的在线交易的安全标准,SET提供了消费者、商家和银行间的认证,确保了交易数据的安全。
完整可靠和交易的不可否认,特别是保证了消费者的隐私。
SET已经成为了目前最流行通用的安全电子商务标准,他的核心技术主要有公开密钥加密、数字签名、数字证书、数字信封等。
SET协议中的数字签名技术之一是双重签名,双重签名的特性就是把发给两个不同通信实体的两个不同消息联系在一起,两个通信实体都可以验证该双重签名。
第二章 ElGamal 数字签名2.1 引言2.1.1研究进展1985年,ELGamal基于离散对数难题提出一种数字签名方案,称为ELGamal数字签名方案。
1994年,Harn等人对ELGamal及其类似方案进行了总结,得出了18个安全可行的方案,即广义ELGamal签名方案。
同时,Horster 也独立地提出了“Mata-ELGamal 签名方案”,它是Harn的18个方案的进一步推广。
因为ELGamal型签名方案是在环或域上进行的二元运算,容易受到同态攻击和代换攻击,因此,在实际应用ELGamal型签名方案时,需要将明文m进行处理,即利用hash(m)来代替m。
1994年,Nyberg和Rueppel对ELGamal签名方案进行了攻击,提出具有消息恢复的签名方案,称为N-R数字签名方案。
Hoster, Michels和Petress利用N-S数字签名方案具有较小的签名长度和消息恢复特性设计了一种低通信消耗的签名方案,称为HMP方案。
随后相继提出很多种具有消息恢复特性的签名方案。
在签密方案中,信息签发者可以对信息进行加密和签名,信息接收者可以对接收到的信息进行解密和验证。
当消息量很大时,还可以采用消息链接的方式进行处理。
2.2 E lGamal 数字签名方案本节给出ELGamal 签名方案原形及其它的几种变形方案,并分析了这些方案在计算上的优缺点以及对方案的安全性进行了比较。