Efficiently factor N when e and d become known to you.
来源:互联网 发布:java jsonobject jar 编辑:程序博客网 时间:2024/06/06 01:58
The problem is:
In the RSA cryptosystem, Alice’s public key (N, e) is available to everyone. Suppose that her private key d is compromised and becomes known to Eve. Show that if e = 3 (a common choice) then Eve can efficiently factor N .
We need to find the two primes p and q, and
N = p * q
M = (p - 1) * (q - 1)
e * d mod M = 1
Steps:
1. because d < M < N, 2 <= N / M <= e;
2. e * d = k * M + 1, so k = 2 or k = 3( but it is impossible), so M = (e * d - 1) / 2;
3. so we get such a equation group:
N = p *q
M = p * q - p - q + 1 => p + q - 1 = N - M
4. solve the equation group.
0 0
- Efficiently factor N when e and d become known to you.
- what should you be as a programmer?To be the last one and become experienced!
- Things you need to remember to become a successful developer
- UVa - 11175 - From D to E and Back
- UVa 11175:From D to E and back(图论)
- The basic notation that when you learn the C++, you shoud known.
- How to create .lib file when you have .dll and .h files onle
- Use iterators and [] rather than at() when you want to optimize speed;
- 面试题:What will happen when you attempt to compile and run the following code
- How to resolve Time_Wait issue when you use TcpListener and TcpClient
- How to create .lib file when you only have .dll and .h files
- How to Read the Newspaper Quickly and Efficiently
- Using tar and ssh to efficiently copy files preserving permissions
- ADB not responding. If you'd like to retry, then please manually kill "adb.e
- When You And I Were Young, Seven7
- When and How to Micromanage
- How to Become a Great Manager and Leader
- Things you need to remember to become a successful developer (By Andriy Buday)
- poj 1185 炮兵阵地 状压DP
- Party All the Time
- JSON-lib框架,转换JSON、XML不再困难
- runInstaller-- you do not have sufficient permissions to access the inventory
- javaBean为什么要实现Serializable接口?
- Efficiently factor N when e and d become known to you.
- 数据结构5:线性表中把属于la中而不属于lb中的元素放到la中
- 使用typedef定义函数指针
- xStream完美转换XML、JSON
- poj系统训练计划
- MySQL学习笔记(七)查找记录
- matlab中各种线型-颜色-标记点
- c/c++变量内存分配区域
- 回溯法解决阿里面试题之12人排队