大家看看这段c++程序给个评价!
[code=C/C++][/code]
#ifndef MAIN_H
#define MAIN_H
//#include "windows.h"
typedef bool BOOL;
typedef int BYTE;
typedef int CHAR;
typedef int SHORT;
typedef int USHORT;
typedef int LONG;
typedef int ULONG;
typedef int UINT;
typedef int WORD;
typedef int DWORD;
typedef int FLAGS;
typedef char* LPSTR;
typedef void* HANDLE;
typedef HANDLE DEVHANDLE;
typedef HANDLE HAPPLICATION;
typedef HANDLE HCONTAINER;
typedef struct RSAPUBLICKEYBLOB{
ULONG AlgID;
ULONG BitLen;
BYTE Modulus[256];
BYTE PublicExponent[32];
}RSAPUBLICKEYBLOB,*PRSAPUBLICKEYBLOB;//RSA公钥数据结构
typedef struct Struct_RSAPRIVATEKEYBLOB{
ULONG AlgID;
ULONG BitLen;
BYTE Modulus[4];
BYTE PublicExponent[4];
BYTE PrivateExponent[4];
BYTE Prime1[2];
BYTE Prime2[2];
BYTE Prime1Exponent[2];
BYTE Prime2Exponent[2];
BYTE Coefficient[2];
}RSAPRIVATEKEYBLOB, *PRSAPRIVATEKEYBLOB;//RSA私钥数据结构
typedef struct Struct_BLOCKCIPHERPARAM{
BYTE IV[32];
ULONG IVLen;
ULONG PaddingType;
ULONG FeedBitLen;
} BLOCKCIPHERPARAM, *PBLOCKCIPHERPARAM;//分组密码参数
#endif
[解决办法]
typedef int BYTE;
typedef int CHAR;
typedef int SHORT;
typedef int USHORT;
typedef int LONG;
typedef int ULONG;
typedef int UINT;
typedef int WORD;
typedef int DWORD;
typedef int FLAGS;
直接开除
[解决办法]
typedef int BYTE;
typedef int CHAR;
typedef int SHORT;
typedef int USHORT;
typedef int LONG;
typedef int ULONG;
神奇。。。。。。。。。。。。。。。。
[解决办法]
ULONG SKF_ExportPublicKey(HCONTAINER hContainer,BOOL bSignFlag,BYTE* pbBlob,ULONG* pulBlobLen){if(hContainer!=NULL) return 1;return 0;}ULONG SKF_RSAExportSessionKey(HCONTAINER phContainer,ULONG ulAlgId,RSAPUBLICKEYBLOB *pPubKey,BYTE *pbData,ULONG *pulDataLen,HANDLE *phSessionKey){if(phContainer!=NULL) return 1;return 0;}
[解决办法]
@14楼。不是测试用例。这个可能是U盾驱动提供的API,具体加密操作是硬件实现的。
[解决办法]
头晕了
------解决方案--------------------