ReactOS 0.4.16-dev-980-g00983aa
|
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wincrypt.h"
#include "snmp.h"
#include "wine/debug.h"
#include "wine/exception.h"
#include "crypt32_private.h"
Go to the source code of this file.
Classes | |
struct | _CryptMsgBase |
struct | _CDataEncodeMsg |
struct | _CHashEncodeMsg |
struct | _CMSG_SIGNER_ENCODE_INFO_WITH_CMS |
struct | _CMSG_SIGNED_ENCODE_INFO_WITH_CMS |
struct | _CSignerHandles |
struct | _CSignedMsgData |
struct | _CSignedEncodeMsg |
struct | _CMSG_ENVELOPED_ENCODE_INFO_WITH_CMS |
struct | _CEnvelopedEncodeMsg |
struct | _CEnvelopedDecodeMsg |
struct | _CDecodeMsg |
Macros | |
#define | NONAMELESSUNION |
Enumerations | |
enum | _CryptMsgState { MsgStateInit , MsgStateUpdated , MsgStateDataFinalized , MsgStateFinalized } |
enum | SignOrVerify { Sign , Verify } |
Variables | |
static const BYTE | empty_data_content [] = { 0x04,0x00 } |
typedef struct _CDataEncodeMsg CDataEncodeMsg |
typedef struct _CDecodeMsg CDecodeMsg |
typedef struct _CHashEncodeMsg CHashEncodeMsg |
typedef struct _CryptMsgBase CryptMsgBase |
typedef enum _CryptMsgState CryptMsgState |
typedef struct _CSignedEncodeMsg CSignedEncodeMsg |
typedef struct _CSignedMsgData CSignedMsgData |
typedef struct _CSignerHandles CSignerHandles |
Enumerator | |
---|---|
MsgStateInit | |
MsgStateUpdated | |
MsgStateDataFinalized | |
MsgStateFinalized |
Enumerator | |
---|---|
Sign | |
Verify |
|
static |
Definition at line 1681 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open().
|
static |
Definition at line 1742 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open().
Definition at line 110 of file msg.c.
Referenced by CDataEncodeMsg_Open().
|
static |
Definition at line 315 of file msg.c.
Referenced by CDataEncodeMsg_Open().
|
static |
Definition at line 351 of file msg.c.
Referenced by CryptMsgOpenToEncode().
|
static |
Definition at line 191 of file msg.c.
Referenced by CDataEncodeMsg_Open().
|
static |
Definition at line 3455 of file msg.c.
Referenced by CDecodeMsg_Control().
|
static |
Definition at line 2952 of file msg.c.
Referenced by CDecodeMsg_GetParam().
|
static |
Definition at line 2554 of file msg.c.
Referenced by CDecodeHashMsg_VerifyHash(), and CDecodeMsg_GetParam().
|
static |
Definition at line 3225 of file msg.c.
Referenced by CDecodeMsg_Control().
Definition at line 2098 of file msg.c.
Referenced by CryptMsgOpenToDecode().
|
static |
Definition at line 3493 of file msg.c.
Referenced by CryptMsgOpenToDecode().
|
static |
Definition at line 2129 of file msg.c.
Referenced by CDecodeMsg_Update().
|
static |
Definition at line 2283 of file msg.c.
Referenced by CDecodeMsg_DecodeContent(), and CDecodeMsg_Update().
|
static |
Definition at line 2152 of file msg.c.
Referenced by CDecodeMsg_DecodeContent(), and CDecodeMsg_DecodeHashedContent().
|
static |
Definition at line 2248 of file msg.c.
Referenced by CDecodeMsg_DecodeContent().
|
static |
Definition at line 2211 of file msg.c.
Referenced by CDecodeMsg_DecodeContent().
|
static |
Definition at line 2263 of file msg.c.
Referenced by CDecodeMsg_DecodeContent().
|
static |
Definition at line 2450 of file msg.c.
Referenced by CDecodeMsg_Update().
|
static |
Definition at line 2384 of file msg.c.
Referenced by CDecodeMsg_FinalizeContent().
|
static |
Definition at line 2339 of file msg.c.
Referenced by CDecodeMsg_FinalizeContent().
|
static |
Definition at line 2398 of file msg.c.
Referenced by CDecodeMsg_FinalizeContent().
|
static |
Definition at line 3181 of file msg.c.
Referenced by CryptMsgOpenToDecode().
|
static |
Definition at line 2169 of file msg.c.
Referenced by CDecodeMsg_DecodeHashedContent().
|
static |
Definition at line 2471 of file msg.c.
Referenced by CryptMsgOpenToDecode().
|
static |
Definition at line 3001 of file msg.c.
Referenced by CDecodeMsg_GetParam().
|
static |
Definition at line 3303 of file msg.c.
Referenced by CDecodeMsg_Control().
|
static |
Definition at line 3346 of file msg.c.
Referenced by CDecodeMsg_Control().
|
static |
Definition at line 3271 of file msg.c.
Referenced by CDecodeSignedMsg_VerifySignature(), and CDecodeSignedMsg_VerifySignatureEx().
Definition at line 1798 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open().
|
static |
Definition at line 1818 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open().
|
static |
Definition at line 1949 of file msg.c.
Referenced by CryptMsgOpenToEncode().
|
static |
Definition at line 1880 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open().
Definition at line 381 of file msg.c.
Referenced by CHashEncodeMsg_Open().
|
static |
Definition at line 439 of file msg.c.
Referenced by CHashEncodeMsg_Open().
|
static |
Definition at line 548 of file msg.c.
Referenced by CryptMsgOpenToEncode().
|
static |
Definition at line 506 of file msg.c.
Referenced by CHashEncodeMsg_Open().
|
static |
|
static |
|
static |
Definition at line 1011 of file msg.c.
Referenced by CSignedMsgData_AppendMessageDigestAttribute(), and CSignedMsgData_UpdateAuthenticatedAttributes().
|
static |
Definition at line 1512 of file msg.c.
Referenced by CContentEncryptInfo_Construct(), CEnvelopedEncodeMsg_Open(), CRecipientInfo_Construct(), CRYPT_ExportEncryptedKey(), and CRYPT_ExportKeyTrans().
|
static |
Definition at line 754 of file msg.c.
Referenced by CRYPT_AppendAttribute(), and CRYPT_ConstructAttributes().
|
static |
Definition at line 771 of file msg.c.
Referenced by CSignerInfo_Construct().
|
static |
Definition at line 1525 of file msg.c.
Referenced by CContentEncryptInfo_Construct(), and CRYPT_ExportKeyTrans().
|
static |
Definition at line 704 of file msg.c.
Referenced by CContentEncryptInfo_Construct(), CDecodeMsg_FinalizeEnvelopedContent(), CDecodeSignedMsg_VerifySignatureWithKey(), CRecipientInfo_Construct(), CRYPT_ConstructAlgorithmId(), CRYPT_ConstructBlobArray(), and CSignerInfo_Construct().
|
static |
Definition at line 722 of file msg.c.
Referenced by CRYPT_ConstructAttribute(), and CSignedEncodeMsg_Open().
|
inlinestatic |
Definition at line 2614 of file msg.c.
Referenced by CRYPT_CopyCMSSignerInfo(), and CRYPT_CopySignerInfo().
|
inlinestatic |
Definition at line 2626 of file msg.c.
Referenced by CRYPT_CopyCMSSignerInfo(), and CRYPT_CopySignerInfo().
|
inlinestatic |
Definition at line 2602 of file msg.c.
Referenced by CRYPT_CopyAlgorithmId(), CRYPT_CopyAttributes(), CRYPT_CopyCMSSignerInfo(), CRYPT_CopyRecipientInfo(), CRYPT_CopySignerCertInfo(), and CRYPT_CopySignerInfo().
|
static |
Definition at line 2800 of file msg.c.
Referenced by CDecodeSignedMsg_GetParam().
|
static |
Definition at line 2697 of file msg.c.
Referenced by CRYPT_CopySignerCertInfo(), and CRYPT_CopySignerInfo().
Definition at line 294 of file msg.c.
Referenced by CDataEncodeMsg_GetParam(), CDecodeEnvelopedMsg_GetParam(), CDecodeHashMsg_GetParam(), CDecodeMsg_GetParam(), CDecodeSignedMsg_GetParam(), CHashEncodeMsg_GetParam(), and CSignedEncodeMsg_GetParam().
|
static |
Definition at line 2918 of file msg.c.
Referenced by CDecodeEnvelopedMsg_GetParam().
|
static |
Definition at line 2867 of file msg.c.
Referenced by CDecodeSignedMsg_GetParam().
|
static |
Definition at line 2728 of file msg.c.
Referenced by CDecodeSignedMsg_GetParam().
|
static |
Definition at line 49 of file msg.c.
Referenced by CDataEncodeMsg_Open(), CEnvelopedEncodeMsg_Open(), CHashEncodeMsg_Open(), and CSignedEncodeMsg_Open().
|
static |
Definition at line 118 of file msg.c.
Referenced by CDataEncodeMsg_Update(), and CRYPT_EncodeDataContentInfoHeader().
|
static |
Definition at line 148 of file msg.c.
Referenced by CDataEncodeMsg_Update().
|
static |
Definition at line 391 of file msg.c.
Referenced by CHashEncodeMsg_GetParam().
|
static |
Definition at line 1629 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open().
|
static |
Definition at line 1564 of file msg.c.
Referenced by CRYPT_ExportEncryptedKey().
|
inlinestatic |
|
static |
Definition at line 745 of file msg.c.
Referenced by CSignedEncodeMsg_Close().
|
static |
Definition at line 1542 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open().
Definition at line 3646 of file msg.c.
Referenced by CryptMsgGetAndVerifySigner().
|
static |
Definition at line 3426 of file msg.c.
Referenced by CDecodeEnvelopedMsg_CrtlDecrypt().
|
static |
Definition at line 3381 of file msg.c.
Referenced by CRYPT_ImportEncryptedKey().
|
static |
Definition at line 626 of file msg.c.
Referenced by CSignedEncodeMsg_Open().
|
static |
Definition at line 1118 of file msg.c.
Referenced by CDecodeSignedMsg_VerifySignatureWithKey(), and CSignedMsgData_Sign().
|
static |
Definition at line 2661 of file msg.c.
Referenced by CRYPT_CopyCMSSignerInfo(), and CRYPT_CopySignerInfo().
|
static |
Definition at line 2680 of file msg.c.
Referenced by CRYPT_CopySignerCertInfo(), and CRYPT_CopySignerInfo().
|
inlinestatic |
Definition at line 77 of file msg.c.
Referenced by CDataEncodeMsg_Open(), CEnvelopedEncodeMsg_Open(), CHashEncodeMsg_Open(), CryptMsgOpenToDecode(), and CSignedEncodeMsg_Open().
Definition at line 3597 of file msg.c.
Referenced by CEnvelopedEncodeMsg_Open(), CertCreateCTLContext(), CHashEncodeMsg_Open(), CRYPT_MsgCloseStore(), CRYPT_PKCSOpenStore(), CRYPT_QueryMessageObject(), CRYPT_QuerySignedMessage(), CRYPT_QueryUnsignedMessage(), CryptCATClose(), CryptCATOpen(), CryptEncryptMessage(), CryptGetMessageSignerCount(), CryptHashMessage(), CryptMsgSignCTL(), CryptSignMessage(), CryptVerifyDetachedMessageHash(), CryptVerifyDetachedMessageSignature(), CryptVerifyMessageHash(), CryptVerifyMessageSignature(), CTL_free(), SoftpubCleanup(), test_data_msg_encoding(), test_data_msg_get_param(), test_data_msg_open(), test_data_msg_update(), test_decode_msg_get_param(), test_decode_msg_update(), test_enveloped_msg_encoding(), test_enveloped_msg_open(), test_enveloped_msg_update(), test_hash_msg_encoding(), test_hash_msg_get_param(), test_hash_msg_open(), test_hash_msg_update(), test_msg_close(), test_msg_control(), test_msg_get_and_verify_signer(), test_msg_get_param(), test_msg_open_to_decode(), test_signed_msg_encoding(), test_signed_msg_get_param(), test_signed_msg_open(), test_signed_msg_update(), and testMessageStore().
BOOL WINAPI CryptMsgControl | ( | HCRYPTMSG | hCryptMsg, |
DWORD | dwFlags, | ||
DWORD | dwCtrlType, | ||
const void * | pvCtrlPara | ||
) |
Definition at line 3636 of file msg.c.
Referenced by CryptMsgGetAndVerifySigner(), CryptVerifyDetachedMessageHash(), CryptVerifyDetachedMessageSignature(), CryptVerifyMessageHash(), CryptVerifyMessageSignature(), test_decode_msg_get_param(), test_msg_control(), and WINTRUST_VerifySigner().
Definition at line 3584 of file msg.c.
Referenced by CRYPT_MsgOpenStore().
BOOL WINAPI CryptMsgEncodeAndSignCTL | ( | DWORD | dwMsgEncodingType, |
PCTL_INFO | pCtlInfo, | ||
PCMSG_SIGNED_ENCODE_INFO | pSignInfo, | ||
DWORD | dwFlags, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 3784 of file msg.c.
BOOL WINAPI CryptMsgGetAndVerifySigner | ( | HCRYPTMSG | hCryptMsg, |
DWORD | cSignerStore, | ||
HCERTSTORE * | rghSignerStore, | ||
DWORD | dwFlags, | ||
PCCERT_CONTEXT * | ppSigner, | ||
DWORD * | pdwSignerIndex | ||
) |
Definition at line 3669 of file msg.c.
Referenced by test_msg_get_and_verify_signer().
BOOL WINAPI CryptMsgGetParam | ( | HCRYPTMSG | hCryptMsg, |
DWORD | dwParamType, | ||
DWORD | dwIndex, | ||
void * | pvData, | ||
DWORD * | pcbData | ||
) |
Definition at line 3626 of file msg.c.
Referenced by CDecodeMsg_FinalizeHashedContent(), CEnvelopedEncodeMsg_GetParam(), CertCreateCTLContext(), CHashEncodeMsg_GetParam(), check_param(), CRYPT_GetSignerCertInfoFromMsg(), CRYPT_MsgOpenStore(), CRYPT_PKCSOpenStore(), CRYPT_QuerySignedMessage(), CRYPT_QueryUnsignedMessage(), CryptCATOpen(), CryptEncryptMessage(), CryptGetMessageSignerCount(), CryptHashMessage(), CryptMsgGetAndVerifySigner(), CryptMsgSignCTL(), CryptSignMessage(), CryptVerifyDetachedMessageHash(), CryptVerifyMessageHash(), CryptVerifyMessageSignature(), CSignedEncodeMsg_GetParam(), decode_inner_content(), SOFTPUB_DecodeInnerContent(), SoftpubLoadSignature(), test_data_msg_get_param(), test_data_msg_update(), test_decode_msg_get_param(), test_hash_msg_get_param(), test_msg_get_param(), test_signed_msg_encoding(), test_signed_msg_get_param(), testMessageStore(), WINTRUST_GetSigner(), and WINTRUST_GetSignerCertInfo().
HCRYPTMSG WINAPI CryptMsgOpenToDecode | ( | DWORD | dwMsgEncodingType, |
DWORD | dwFlags, | ||
DWORD | dwMsgType, | ||
HCRYPTPROV_LEGACY | hCryptProv, | ||
PCERT_INFO | pRecipientInfo, | ||
PCMSG_STREAM_INFO | pStreamInfo | ||
) |
Definition at line 3552 of file msg.c.
Referenced by CertCreateCTLContext(), CRYPT_PKCSOpenStore(), CRYPT_QuerySignedMessage(), CRYPT_QueryUnsignedMessage(), CryptCATOpen(), CryptGetMessageSignerCount(), CryptVerifyDetachedMessageHash(), CryptVerifyDetachedMessageSignature(), CryptVerifyMessageHash(), CryptVerifyMessageSignature(), SOFTPUB_GetMessageFromFile(), test_decode_msg_get_param(), test_decode_msg_update(), test_msg_control(), test_msg_get_and_verify_signer(), test_msg_get_param(), test_msg_open_to_decode(), and testMessageStore().
HCRYPTMSG WINAPI CryptMsgOpenToEncode | ( | DWORD | dwMsgEncodingType, |
DWORD | dwFlags, | ||
DWORD | dwMsgType, | ||
const void * | pvMsgEncodeInfo, | ||
LPSTR | pszInnerContentObjID, | ||
PCMSG_STREAM_INFO | pStreamInfo | ||
) |
Definition at line 2034 of file msg.c.
Referenced by CryptEncryptMessage(), CryptHashMessage(), CryptMsgSignCTL(), CryptSignMessage(), test_data_msg_encoding(), test_data_msg_get_param(), test_data_msg_open(), test_data_msg_update(), test_enveloped_msg_encoding(), test_enveloped_msg_open(), test_enveloped_msg_update(), test_hash_msg_encoding(), test_hash_msg_get_param(), test_hash_msg_open(), test_hash_msg_update(), test_msg_close(), test_msg_control(), test_msg_open_to_encode(), test_signed_msg_encoding(), test_signed_msg_get_param(), test_signed_msg_open(), and test_signed_msg_update().
BOOL WINAPI CryptMsgSignCTL | ( | DWORD | dwMsgEncodingType, |
BYTE * | pbCtlContent, | ||
DWORD | cbCtlContent, | ||
PCMSG_SIGNED_ENCODE_INFO | pSignInfo, | ||
DWORD | dwFlags, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 3810 of file msg.c.
Referenced by CryptMsgEncodeAndSignCTL().
Definition at line 3616 of file msg.c.
Referenced by CertCreateCTLContext(), CRYPT_PKCSOpenStore(), CRYPT_QuerySignedMessage(), CRYPT_QueryUnsignedMessage(), CryptCATOpen(), CryptEncryptMessage(), CryptGetMessageSignerCount(), CryptHashMessage(), CryptMsgSignCTL(), CryptSignMessage(), CryptVerifyDetachedMessageHash(), CryptVerifyDetachedMessageSignature(), CryptVerifyMessageHash(), CryptVerifyMessageSignature(), SOFTPUB_GetMessageFromFile(), test_data_msg_encoding(), test_data_msg_update(), test_decode_msg_get_param(), test_decode_msg_update(), test_enveloped_msg_update(), test_hash_msg_encoding(), test_hash_msg_get_param(), test_hash_msg_update(), test_msg_control(), test_msg_get_and_verify_signer(), test_signed_msg_encoding(), test_signed_msg_update(), and testMessageStore().
BOOL WINAPI CryptMsgVerifyCountersignatureEncoded | ( | HCRYPTPROV_LEGACY | hCryptProv, |
DWORD | dwEncodingType, | ||
BYTE * | pbSignerInfo, | ||
DWORD | cbSignerInfo, | ||
PBYTE | pbSignerInfoCountersignature, | ||
DWORD | cbSignerInfoCountersignature, | ||
CERT_INFO * | pciCountersigner | ||
) |
Definition at line 3762 of file msg.c.
BOOL WINAPI CryptMsgVerifyCountersignatureEncodedEx | ( | HCRYPTPROV_LEGACY | hCryptProv, |
DWORD | dwEncodingType, | ||
PBYTE | pbSignerInfo, | ||
DWORD | cbSignerInfo, | ||
PBYTE | pbSignerInfoCountersignature, | ||
DWORD | cbSignerInfoCountersignature, | ||
DWORD | dwSignerType, | ||
void * | pvSigner, | ||
DWORD | dwFlags, | ||
void * | pvReserved | ||
) |
Definition at line 1194 of file msg.c.
Referenced by CSignedEncodeMsg_Open().
|
static |
Definition at line 1213 of file msg.c.
Referenced by CSignedEncodeMsg_Open().
|
static |
Definition at line 1364 of file msg.c.
Referenced by CryptMsgOpenToEncode().
|
static |
|
static |
Definition at line 955 of file msg.c.
Referenced by CDecodeMsg_FinalizeSignedContent(), and CSignedEncodeMsg_Open().
|
static |
Definition at line 1027 of file msg.c.
Referenced by CSignedMsgData_UpdateAuthenticatedAttributes().
|
static |
Definition at line 983 of file msg.c.
Referenced by CDecodeMsg_Close(), and CSignedEncodeMsg_Close().
|
static |
Definition at line 928 of file msg.c.
Referenced by CDecodeMsg_FinalizeSignedContent(), and CSignedEncodeMsg_Open().
|
static |
Definition at line 1131 of file msg.c.
Referenced by CSignedMsgData_Update().
|
static |
Definition at line 1172 of file msg.c.
Referenced by CDecodeMsg_FinalizeSignedContent(), and CSignedEncodeMsg_Update().
|
static |
Definition at line 1068 of file msg.c.
Referenced by CSignedMsgData_Update().
|
static |
Definition at line 999 of file msg.c.
Referenced by CSignedMsgData_Update().
|
static |
Definition at line 797 of file msg.c.
Referenced by CSignedEncodeMsg_Open().
|
static |
Definition at line 879 of file msg.c.
Referenced by CSignedEncodeMsg_Close().
WINE_DEFAULT_DEBUG_CHANNEL | ( | crypt | ) |
Definition at line 108 of file msg.c.
Referenced by CDataEncodeMsg_Close(), and CDataEncodeMsg_Open().