文件名称:shanks
- 所属分类:
- 加密解密
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 7.21mb
- 下载次数:
- 0次
- 提 供 者:
- vi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
求离散对数的shanks算法,要求如下:
实现计算 Zp 中计算离散对数的 Shanks 算法,基本要求如下:
1)p 是一个小素数( 小于 32 bit ),a 是一个本原元。程序的输入为(p, a, b), 输出为 logab ( mod p) (可以用 log3525 (mod 809)等作为测试);
2)采用快速模指数算法求幂(如am),采用扩展欧几里得算法求逆( 如a-i (mod p) );
3)采用一种好的排序算法对 L1、L2 排序;
4)采用概率算法(如Miller Rabin算法)自动生成素数 p,采用本原元的充要条件自动生成 a;-Discrete number of shanks on demand algorithm, the following: calculation of Zp calculated to achieve the discrete logarithm Shanks algorithm, the basic requirements are as follows: 1) p is a small prime number (less than 32 bit), a is a primitive element. Process input (p, a, b), output logab (mod p) (can use log3525 (mod 809) so as a test) 2) The fast mode index algorithm to solve the power (such as the am), using extended Euclidean Reed inverse algorithm (such as ai (mod p)) 3) use a good sorting algorithm on the L1, L2 sort 4) using probabilistic algorithms (such as the Miller Rabin algorithm) automatically primes p, using primitive element automatically generate the necessary and sufficient conditions a
实现计算 Zp 中计算离散对数的 Shanks 算法,基本要求如下:
1)p 是一个小素数( 小于 32 bit ),a 是一个本原元。程序的输入为(p, a, b), 输出为 logab ( mod p) (可以用 log3525 (mod 809)等作为测试);
2)采用快速模指数算法求幂(如am),采用扩展欧几里得算法求逆( 如a-i (mod p) );
3)采用一种好的排序算法对 L1、L2 排序;
4)采用概率算法(如Miller Rabin算法)自动生成素数 p,采用本原元的充要条件自动生成 a;-Discrete number of shanks on demand algorithm, the following: calculation of Zp calculated to achieve the discrete logarithm Shanks algorithm, the basic requirements are as follows: 1) p is a small prime number (less than 32 bit), a is a primitive element. Process input (p, a, b), output logab (mod p) (can use log3525 (mod 809) so as a test) 2) The fast mode index algorithm to solve the power (such as the am), using extended Euclidean Reed inverse algorithm (such as ai (mod p)) 3) use a good sorting algorithm on the L1, L2 sort 4) using probabilistic algorithms (such as the Miller Rabin algorithm) automatically primes p, using primitive element automatically generate the necessary and sufficient conditions a
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shanks\shanks\Debug\BuildLog.htm
......\......\.....\mt.dep
......\......\.....\shanks.exe.embed.manifest
......\......\.....\shanks.exe.embed.manifest.res
......\......\.....\shanks.exe.intermediate.manifest
......\......\.....\shanks.obj
......\......\.....\shanks.pch
......\......\.....\shanks.res
......\......\.....\shanksDlg.obj
......\......\.....\stdafx.obj
......\......\.....\vc80.idb
......\......\.....\vc80.pdb
......\......\ReadMe.txt
......\......\res\shanks.ico
......\......\...\shanks.rc2
......\......\resource.h
......\......\shanks.aps
......\......\shanks.cpp
......\......\shanks.h
......\......\shanks.rc
......\......\shanks.vcproj
......\......\shanks.vcproj.LENOVO-BD620171.Owner.user
......\......\shanksDlg.cpp
......\......\shanksDlg.h
......\......\stdafx.cpp
......\......\stdafx.h
......\shanks.ncb
......\shanks.sln
......\shanks.suo
......\......\Debug
......\......\res
......\shanks
shanks
......\......\.....\mt.dep
......\......\.....\shanks.exe.embed.manifest
......\......\.....\shanks.exe.embed.manifest.res
......\......\.....\shanks.exe.intermediate.manifest
......\......\.....\shanks.obj
......\......\.....\shanks.pch
......\......\.....\shanks.res
......\......\.....\shanksDlg.obj
......\......\.....\stdafx.obj
......\......\.....\vc80.idb
......\......\.....\vc80.pdb
......\......\ReadMe.txt
......\......\res\shanks.ico
......\......\...\shanks.rc2
......\......\resource.h
......\......\shanks.aps
......\......\shanks.cpp
......\......\shanks.h
......\......\shanks.rc
......\......\shanks.vcproj
......\......\shanks.vcproj.LENOVO-BD620171.Owner.user
......\......\shanksDlg.cpp
......\......\shanksDlg.h
......\......\stdafx.cpp
......\......\stdafx.h
......\shanks.ncb
......\shanks.sln
......\shanks.suo
......\......\Debug
......\......\res
......\shanks
shanks