- JFeeChartProject_src Mapxtreme for java
- webcam (C#调用摄像头) 原创代码
- SkinSliderSrc Here is a solution for developers looking for a skin based slider control. It is different from the article Transparent Slider Control by Nic Wilson in the way that it allows you to skin the background and tick of the slider control and also allows you to have a customized cursor over the slider control. The main class for slider control is CZipSliderCtl that uses another bitmap class CZipBitmap for drawing normal and transparent images on the control. It is very easy to use and looks good (if you have good
- student_managermentSYS 学生管理系统 linux c ncurses 界面编程 实现登录
- IMGLIB TMS320C64x+ DSP Image/Video Processing Library (v2.0.1) Programmer s Guide
- Calculator java简单编程 有关计算器带括号 能优先运算 四则运算
文件名称:456
-
所属分类:
- 标签属性:
- 上传时间:2013-12-11
-
文件大小:1.61kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
RSA算法的C语言实现
1.密钥的产生
(1)选两个安全的大素数p和q。
(2)计算n=p×q,φ(n)=(p-1)(q-1),其中φ(n)是n的欧拉函数值。
(3)选一整数e,满足1<e<φ(n),且gcd(φ(n),e)=1。
(4)计算d,满足de≡1 modφ(n),即d是e在模φ(n)下的乘法逆元,因e与φ(n)互素,由模运算可知,它的乘法逆元一定存在。
(5)以{e,n}为公开钥,{d,n}为秘密钥。
2.加密
加密时首先将明文M比特串分组,使得每个分组对应的十进制数小于n,即分组的长度小于log(2)n。然后对每组明文分组,作加密运算:C=M^e(mod n)
3.解密
对密文分组的解密运算为:M=C^d(mod n)-C language implementation of the RSA algorithm 1. Generated keys (1) Select two safe primes p and large q. (2) calculate n = pq, φ (n) = (p-1) (q-1), where φ (n) is the Euler function value of n. (3) Select an integer e, meet a <e<φ(n),且gcd(φ(n),e)=1。
(4)计算d,满足de≡1 modφ(n),即d是e在模φ(n)下的乘法逆元,因e与φ(n)互素,由模运算可知,它的乘法逆元一定存在。
(5)以{e,n}为公开钥,{d,n}为秘密钥。
2.加密
加密时首先将明文M比特串分组,使得每个分组对应的十进制数小于n,即分组的长度小于log(2)n。然后对每组明文分组,作加密运算:C=M^e(mod n)
3.解密
对密文分组的解密运算为:M=C^d(mod n)
1.密钥的产生
(1)选两个安全的大素数p和q。
(2)计算n=p×q,φ(n)=(p-1)(q-1),其中φ(n)是n的欧拉函数值。
(3)选一整数e,满足1<e<φ(n),且gcd(φ(n),e)=1。
(4)计算d,满足de≡1 modφ(n),即d是e在模φ(n)下的乘法逆元,因e与φ(n)互素,由模运算可知,它的乘法逆元一定存在。
(5)以{e,n}为公开钥,{d,n}为秘密钥。
2.加密
加密时首先将明文M比特串分组,使得每个分组对应的十进制数小于n,即分组的长度小于log(2)n。然后对每组明文分组,作加密运算:C=M^e(mod n)
3.解密
对密文分组的解密运算为:M=C^d(mod n)-C language implementation of the RSA algorithm 1. Generated keys (1) Select two safe primes p and large q. (2) calculate n = pq, φ (n) = (p-1) (q-1), where φ (n) is the Euler function value of n. (3) Select an integer e, meet a <e<φ(n),且gcd(φ(n),e)=1。
(4)计算d,满足de≡1 modφ(n),即d是e在模φ(n)下的乘法逆元,因e与φ(n)互素,由模运算可知,它的乘法逆元一定存在。
(5)以{e,n}为公开钥,{d,n}为秘密钥。
2.加密
加密时首先将明文M比特串分组,使得每个分组对应的十进制数小于n,即分组的长度小于log(2)n。然后对每组明文分组,作加密运算:C=M^e(mod n)
3.解密
对密文分组的解密运算为:M=C^d(mod n)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
456.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
