RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s
标签: person_key RSA 算法
上传时间: 2013-12-14
上传用户:zhuyibin
手机文件浏览器 Here are the sources to SMan v1.2c 1.2 is a major jump from v1.1. You will see this from the way the code has been restructured into multiple files. It also supports flip closed. However, to my chagrin, I made the mistake of assuming there will only be one flip closed view. :( That s changed in v1.3 :) 1.3 supports multiple flip closed views that can be easily added into SMan.
上传时间: 2015-03-31
上传用户:彭玖华
基于MEGA128的多功能仪器,提供以下9种功能: 1. 2路0-10 VDC 电压表 2. 1路0-30V DC 电压表,带有一个10X跳针,可以测试0-300VDC 3. 0 – 3 安电流表 4. 4 通道逻辑分析仪 5. 频率发生器,50%占空比方波,0-5VDC,1HZ到8MHZ. 6. 波形发生器,正弦波、三角波、方波,1HZ 到 20+MHZ? 7. 频率计 8. +5 VDC ,200 mA 供电输出 9. -5 VDC , 300 mA 供电输出
上传时间: 2014-01-08
上传用户:爱死爱死
基于AT90S1200芯片 (16MHz),源代码为汇编语言。 用户界面软件 LOLA.EXE 用途逻辑分析仪。PGEN.EXE用作脉冲发生器。均使用 delphi 编程。 提供了16位版本(LoLA16.EXE, PGen16.EXE),适用Windows 3.1/3.11. 32位版本(LoLA32.EXE, PGen32.EXE)适用于 Windows 9x.
上传时间: 2015-04-11
上传用户:wendy15
经统计,某机器14条指令的使用频度分别为:0.01,0.15,0.12,0.03,0.02,0.04,0.02,0.04,0.01,0.13,0.15,0.14,0.11,0.03。分别求出用等长码、Huffman码、只有两种码长的扩展操作码3种编码方式的操作码平均码长。 解: 等长操作码的平均码长=4位 Huffman编码的平均码长=3.38位 只有两种码长的扩展操作码的平均码长=3.4位。 9.若某机要求:三地址指令4条,单地址指令255条,零地址指令16条。设指令字长为12位.每个 地址码长为3位。问能否以扩展操作码为其编码?如果其中单地址指令为254条呢?说明其理由。 答:①不能用扩展码为其编码。 ∵指令字长12位,每个地址码占3位; ∴三地址指令最多是2^(12-3-3-3)=8条, 现三地址指令需4条, ∴可有4条编码作为扩展码, ∴单地址指令最多为4×2^3×2^3=2^8=256条, 现要求单地址指令255条,∴可有一条编码作扩展码 ∴零地址指令最多为1×2^3=8条 不满足题目要求 ∴不可能以扩展码为其编码。 ②若单地址指令254条,可以用扩展码为其编码。 ∵依据①中推导,单地址指令中可用2条编码作为扩展码 ∴零地址指令为2×2^3=16条,满足题目要求
标签:
上传时间: 2015-04-30
上传用户:zhangyigenius
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99
44B0的音频实验,经本人修改,可以录音和返3阴3,用ADS编译。
上传时间: 2014-01-15
上传用户:秦莞尔w
The libosip library is known to compile on various platform: * GNU/Linux * MacOSX (Darwin) * OpenBsd 3.1/3.2 // (FreeBSD&NetBSD should also work) * Windows NT/95/2000 (VC++6.0 or cygwin) * Solaris * HP-Unix. * VxWorks. * Some embedded systems with linux. * WinCE (report to be possible)
标签: platform libosip compile library
上传时间: 2015-07-16
上传用户:skfreeman
%File: c9_estimatepi.m %有5个pi的估计,每一个都是基于500次重复随机试验,所得的pi的五个估计值用以下向量表示 %pi的估计值=[3.0960 3.0720 2.9920 3.1600 3.0480] %如果对5个结果进平均,则pi的估计值=3.0736,这样的结果等价于2500次的试验结果。
标签: estimatepi File
上传时间: 2014-09-10
上传用户:zjf3110
给予arm926e的mx21处理器的1wire总线驱动程序源代码,里面有现成的makefile,在嵌入式开发环境下直接make就可以,我的armgcc是3.2.3版本的
上传时间: 2015-09-02
上传用户:kernaling