mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
- 新增ISV用户平台
- 新增门户网站(portal) - 新增`C++`,`Rust`语言SDK
This commit is contained in:
30
sop-sdk/sdk-c++/common/sign.h
Normal file
30
sop-sdk/sdk-c++/common/sign.h
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
|
||||
#ifndef SDK_CXX_SIGN_H
|
||||
#define SDK_CXX_SIGN_H
|
||||
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/rsa.h>
|
||||
#include <openssl/pem.h>
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/err.h>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace signutil {
|
||||
|
||||
string createSign(map<string, string> params, const string& privateKeyFilepath, const string& signType);
|
||||
|
||||
string sign(const string& content, const string& privateKeyFilepath, const string& hash);
|
||||
|
||||
string getSignContent(map<string, string> params);
|
||||
|
||||
void ERR(const string &msg);
|
||||
}
|
||||
|
||||
|
||||
#endif //SDK_CXX_SIGN_H
|
Reference in New Issue
Block a user