⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genprime.h

📁 RSA算法的VC源码
💻 H
字号:
/*	genprime.h - C include file for generation of large primes
		used by public-key key generation routines.


	These functions are for the generation of large prime integers and
	for other functions related to factoring and key generation for
	many number-theoretic cryptographic algorithms, such as the NIST
	Digital Signature Standard.

	NOTE:  This assumes previous inclusion of "mpilib.h"
*/

int randomprime(unsigned short* p,short nbits);
/* Makes a "random" prime p with nbits significant bits of precision. */

void mp_gcd(unsigned short* result,unsigned short* a,unsigned short* n);
	/* Computes greatest common divisor via Euclid's algorithm. */

void mp_inv(unsigned short* x,unsigned short* a,unsigned short* n);
	/* Euclid's algorithm extended to compute multiplicative inverse.
	   Computes x such that a*x mod n = 1, where 0<a<n */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -