wiener.h

来自「C++ implementaion for RSA together with 」· C头文件 代码 · 共 32 行

H
32
字号
#pragma once
#include "RSACryptoSystem.h"

#include <iostream>
class Wiener
{
public:
	typedef struct _param
	{
		NTL::ZZ D;
		NTL::ZZ PhiN;
		NTL::ZZ Q;
		NTL::ZZ P;
		bool Succeded;
	} WienerResult;
private:
	RSACryptoSystem::PublicKey m_rsaKey;
	
	long m_nK;
	WienerResult m_result;

private:
	void Calculate();
	bool Criterion(const NTL::ZZ& L, const NTL::ZZ& D);
public:
	Wiener();
	~Wiener(void);
public:
	WienerResult Atack(const RSACryptoSystem::PublicKey& key);
	void PrintAtackResults() const;
};

⌨️ 快捷键说明

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