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

📄 briefmng.h

📁 实现证书的生成和验证
💻 H
字号:
#ifndef __BRIEFMNG_INCLUDE
#define __BRIEFMNG_INCLUDE

class CBrief
{
public:
	CBrief ();
	int Encript_brief(conv_tool::OPERATORS_MAP mapOpts,	xmlChar ** ppszXML, int * pnLen );
	int Decript_brief(conv_tool::OPERATORS_MAP mapOpts, xmlChar **ppszXML, int * pnLen );
	int Verify_brief(const char * cmp1, const char * cmp2);
private:
	static int pass_callback(char * buf, int bufsiz, int verify, void * pVoid );
	std::string Gen_brief( const char * src );
	std::string Encript(const char * src, EVP_PKEY * pkey);
	std::string Decript(const char * src, EVP_PKEY * pkey);
	std::string Change_bin2x( const char * p, int len);
	void Change_x2bin ( const char * src, char * buf, int *pnlen);
	std::string spass;
};
#endif

⌨️ 快捷键说明

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