For faster navigation, this Iframe is preloading the Wikiwand page for ElGamal加密算法.

ElGamal加密算法

密码学中,ElGamal加密算法是一个基于迪菲-赫尔曼密钥交换非对称加密算法。它在1985年由塔希尔·盖莫尔提出。[1]GnuPGPGP等很多密码学系统中都应用到了ElGamal算法。

ElGamal加密算法可以定义在任何循环群上。它的安全性取决于上的离散对数难题。

算法

ElGamal加密算法由三部分组成:密钥生成、加密和解密。

密钥生成

密钥生成的步骤如下:

  • Alice利用生成元产生一个阶循环群的有效描述。该循环群需要满足一定的安全性质。
  • Alice从中随机选择一个
  • Alice计算
  • Alice公开以及的描述作为其公钥,并保留作为其私钥。私钥必须保密。

加密

使用Alice的公钥向她加密一条消息的加密算法工作方式如下:

  • Bob从随机选择一个,然后计算
  • Bob计算共享秘密
  • Bob把他要发送的秘密消息映射为上的一个元素
  • Bob计算
  • Bob将密文发送给Alice。

值得注意的是,如果一个人知道了,那么它很容易就能知道的值。因此对每一条信息都产生一个新的可以提高安全性。所以也被称作临时密钥英语ephemeral key

解密

利用私钥对密文进行解密的算法工作方式如下:

  • Alice计算共享秘密
  • 然后计算,并将其映射回明文,其中在群上的逆元。(例如:如果整数模n乘法群的一个子群,那么逆元就是模逆元)。
解密算法是能够正确解密出明文的,因为

实际使用

ElGamal加密系统通常应用在混合加密系统英语hybrid cryptosystem中。例如:用对称加密体制来加密消息,然后利用ElGamal加密算法传递密钥。这是因为在同等安全等级下,ElGamal加密算法作为一种非对称密码学系统,通常比对称加密体制要慢。对称加密算法的密钥和要传递的消息相比通常要短得多,所以相比之下使用ElGamal加密密钥然后用对称加密来加密任意长度的消息,这样要更快一些。

参考文献

  1. ^ Taher ElGamal. A Public-Key Cryptosystem and a Signature Scheme Based on Discrete Logarithms (PDF). IEEE Transactions on Information Theory. 1985, 31 (4): 469–472 [2016-12-14]. doi:10.1109/TIT.1985.1057074. (原始内容存档 (PDF)于2011-08-13).  (conference version appeared in CRYPTO'84, pp. 10–18)


{{bottomLinkPreText}} {{bottomLinkText}}
ElGamal加密算法
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?