?? rsaoperation.h
字號:
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the RSA_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// RSA_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifdef RSAOPERATION_EXPORTS
#define RSA_API __declspec(dllexport)
#else
#define RSA_API __declspec(dllimport)
#endif
// Encrypts the block of data using the previousely loaded key
// in -> rsaExponentFile = rsa exponent filename
// in -> rsaModulusFile = rsa modulus filename
// in -> dataToEncrypt = block of data to encrypt
// in/out-> dataLenght = lenght of block of data to be encrypted and return the encrypted data length
// out-> encryptedData = encrypted block of data
RSA_API bool RSAEncrypt(char *rsaExponentFile, char *rsaModulusFile, unsigned char dataToEncrypt[], int *dataLength, unsigned char encryptedData[]);
// Decrypts the block of data using the previousely loaded key
// in -> rsaExponentFile = rsa exponent filename
// in -> rsaModulusFile = rsa modulus filename
// in-> dataToDecrypt = block of data to be decrypted
// out-> decryptedData = decrypted block of data
// in-> decryptedDataLenght = lenght of supplied decryptedData length
// in/out-> decryptedDataLenght = length of encrypted data and return length of decryptedData length
RSA_API bool RSADecrypt(char *rsaExponentFile, char *rsaModulusFile, unsigned char dataToDecrypt[], unsigned char decryptedData[], int *dataLength);
//RSA_API bool RSAEncryptEx(char *rsaExponentFile, char *rsaModulusFile, unsigned char dataToEncrypt[], int *dataLength, unsigned char encryptedData[]);
//RSA_API bool RSADecryptEx(char *rsaExponentFile, char *rsaModulusFile, unsigned char dataToDecrypt[], unsigned char decryptedData[], int *dataLength);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -