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

📄 big.h

📁 RSA算法
💻 H
字号:
#ifndef BIG_H
#define BIG_H
#include <vector>

using namespace std;

class Big
{	
	public:
		void Output();
		void Clean();
		void odd_generator(int);
		void Push_back(const long n);
		void ChangeNegative(){ negative = !negative;}
		bool operator > (const Big& b2);
		Big operator -- ();
		Big (const long n);
		Big (){ negative = true,length = 0;}
		~Big (){ length = 0; }
		Big operator << (const int times);
		Big operator >> (const int times);
		Big operator + (const Big& bx);
		Big operator += (const Big& bx);
		Big operator - (const Big& bx);
		Big operator * (const Big& bx);
		Big operator % (const Big& bx);
		Big operator / (const Big& bx);
//		friend Big Modular(int b1,Big times, const Big& b2);
		friend Big Modular(Big &b1,Big times, const Big& b2);
		friend int Judge(const Big &b1,const Big& b2);
		friend Big Gcd(Big &b1,Big& b2);
		friend bool prime_tester(Big & big);
		friend bool prime_tester_small(Big & big);
		friend int fit_next_steps_to_choose_e(Big & big);
		friend bool fit_next_steps_to_choose_e(Big & big,int);


//		vector < unsigned long > numbers;
		unsigned long numbers[140];
		int length;
		bool negative;
};

#endif

⌨️ 快捷键说明

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