RSA算法1 mod phi = 1?

发布于 2025-01-27 09:07:21 字数 309 浏览 3 评论 0原文

在此网站它指出了计算“ D”的计算您必须使用公式ed = 1 mod phi。
我不太明白,因为我相信1 mod的任何东西都会导致1(或在情况1 mod 1中为0)。
这简化了ED = 1的公式,显然与给定的测试值不正确:
e = 17,phi = 3120,d = 2753。

我感谢RSA如何计算解密密钥的一些澄清。

On this website it states for the calculation of "d" you must use the formula e.d = 1 Mod Phi.
I don't quite understand as I believed 1 Mod anything will result in 1 (or 0 in case 1 Mod 1).
This simplifies the formula to e.d = 1 which clearly is not correct with the given test values :
e = 17 , Phi = 3120 , d = 2753.

I would appreciate some clarification on how the RSA calculates the decryption key.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尛丟丟 2025-02-03 09:07:21

Wikipedia说,这是“ nofollow noreferrer”>模块化多重多重逆。该公式应读取为 e * d 等于1,当结果表示modulo phi (e * d)时%phi == 1在伪代码中。

Wikipedia says this is a Modular multiplicative inverse. The formula should be read as e * d equals 1, when the result is expressed modulo Phi, or (e*d) % Phi == 1 in pseudocode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文