briefmng.h

来自「实现证书的生成和验证」· C头文件 代码 · 共 20 行

H
20
字号
#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 + =
减小字号Ctrl + -
显示快捷键?