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:
19
sop-sdk/sdk-c++/common/RSASign.h
Normal file
19
sop-sdk/sdk-c++/common/RSASign.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#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;
|
||||
|
||||
#define PUBLIC_KEY_FILE_EX "publicEx.pem" //公钥文件
|
||||
#define PRIVATE_KEY_FILE_EX "privateEx.pem" //私钥文件
|
||||
|
||||
RSA* GetPublicKeyEx(char* szPath);
|
||||
RSA* GetPrivateKeyEx(char* szPath);
|
||||
|
||||
bool RSASignAction(const string& strEnData,char *privateKeyFilePath, string &strSigned);
|
||||
bool RSAVerifyAction(string strEnData, string &strSigned);
|
Reference in New Issue
Block a user