📄 rsa.h
字号:
#include<iostream>
#include<fstream>
#include<cstdlib>
#include<cmath>
#include<ctime>
#include<string>
using namespace std;
#define LENGTH 8 // p,q长度
void GenerateRSAKey( ) ;
void RSAEncrypt( unsigned int key , unsigned int n ,string filename) ;
void RSADecrypt( unsigned int key , unsigned int n ,string filename) ;
/////******/////*****/////****
unsigned int GetPrim( unsigned int a);
unsigned int GetOdd( unsigned int a);
bool SolovayStrassen( unsigned int n, unsigned int count) ;
template <class T>
T Jacobi(T n, T a) ;
unsigned int gcd( unsigned int a, unsigned int b);
unsigned int Inverse( unsigned int a, unsigned int b);
unsigned int SquareAndMultiply( unsigned int BaseNum, unsigned int exponent, unsigned int ModN);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -