ReactOS 0.4.16-dev-197-g92996da
|
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "wincrypt.h"
#include "snmp.h"
#include "wine/debug.h"
#include "wine/exception.h"
#include "wine/unicode.h"
#include "crypt32_private.h"
Go to the source code of this file.
Classes | |
struct | AsnEncodeTagSwappedItem |
struct | DERSetDescriptor |
struct | CTLEntries |
Macros | |
#define | NONAMELESSUNION |
Typedefs | |
typedef BOOL(WINAPI * | CryptEncodeObjectFunc) (DWORD, LPCSTR, const void *, BYTE *, DWORD *) |
typedef BOOL(WINAPI * | EncodePublicKeyAndParametersFunc) (DWORD dwCertEncodingType, LPSTR pszPublicKeyObjId, BYTE *pbPubKey, DWORD cbPubKey, DWORD dwFlags, void *pvAuxInfo, BYTE **ppPublicKey, DWORD *pcbPublicKey, BYTE **ppbParams, DWORD *pcbParams) |
typedef BOOL(WINAPI * | ExportPublicKeyInfoExFunc) (HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProv, DWORD dwKeySpec, DWORD dwCertEncodingType, LPSTR pszPublicKeyObjId, DWORD dwFlags, void *pvAuxInfo, PCERT_PUBLIC_KEY_INFO pInfo, DWORD *pcbInfo) |
typedef BOOL(WINAPI * | ConvertPublicKeyInfoFunc) (DWORD dwCertEncodingType, PCERT_PUBLIC_KEY_INFO pInfo, ALG_ID aiKeyAlg, DWORD dwFlags, BYTE **ppbData, DWORD *dwDataLen) |
typedef BOOL(WINAPI * | ImportPublicKeyInfoExFunc) (HCRYPTPROV hCryptProv, DWORD dwCertEncodingType, PCERT_PUBLIC_KEY_INFO pInfo, ALG_ID aiKeyAlg, DWORD dwFlags, void *pvAuxInfo, HCRYPTKEY *phKey) |
typedef BOOL(WINAPI * ConvertPublicKeyInfoFunc) (DWORD dwCertEncodingType, PCERT_PUBLIC_KEY_INFO pInfo, ALG_ID aiKeyAlg, DWORD dwFlags, BYTE **ppbData, DWORD *dwDataLen) |
typedef BOOL(WINAPI * ExportPublicKeyInfoExFunc) (HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProv, DWORD dwKeySpec, DWORD dwCertEncodingType, LPSTR pszPublicKeyObjId, DWORD dwFlags, void *pvAuxInfo, PCERT_PUBLIC_KEY_INFO pInfo, DWORD *pcbInfo) |
typedef BOOL(WINAPI * ImportPublicKeyInfoExFunc) (HCRYPTPROV hCryptProv, DWORD dwCertEncodingType, PCERT_PUBLIC_KEY_INFO pInfo, ALG_ID aiKeyAlg, DWORD dwFlags, void *pvAuxInfo, HCRYPTKEY *phKey) |
Definition at line 1189 of file encode.c.
Referenced by CRYPT_DEREncodeItemsAsSet(), and CRYPT_DEREncodeSet().
|
static |
Definition at line 2697 of file encode.c.
Referenced by CRYPT_AsnEncodeAuthorityInfoAccess().
|
static |
Definition at line 408 of file encode.c.
Referenced by CRYPT_AsnEncodeCert(), CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeCRLInfo(), and CRYPT_AsnEncodePubKeyInfoNoNull().
|
static |
Definition at line 383 of file encode.c.
Referenced by CRYPT_AsnEncodeCMSSignedInfo(), CRYPT_AsnEncodeCMSSignerInfo(), CRYPT_AsnEncodeEncryptedContentInfo(), CRYPT_AsnEncodePKCSDigestedData(), CRYPT_AsnEncodePKCSSignerInfo(), CRYPT_AsnEncodePubKeyInfo(), and CRYPT_AsnEncodeRecipientInfo().
|
static |
Definition at line 2560 of file encode.c.
Referenced by CRYPT_AsnEncodeAuthorityKeyId2(), CRYPT_AsnEncodeDistPoint(), CRYPT_AsnEncodeIssuingDistPoint(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2400 of file encode.c.
Referenced by CRYPT_AsnEncodeAccessDescription(), CRYPT_AsnEncodeAltName(), and CRYPT_AsnEncodeGeneralSubtree().
|
static |
Definition at line 2713 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2505 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2642 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2777 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2816 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 3224 of file encode.c.
Referenced by CRYPT_AsnEncodeBasicConstraints(), CRYPT_AsnEncodeBitsSwapBytes(), CRYPT_AsnEncodeCert(), CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeDistPoint(), CRYPT_AsnEncodeIssuingDistPoint(), CRYPT_AsnEncodePubKeyInfo(), CRYPT_AsnEncodePubKeyInfoNoNull(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 3294 of file encode.c.
Referenced by CRYPT_AsnEncodeCert().
|
static |
Definition at line 967 of file encode.c.
Referenced by CRYPT_AsnEncodeNameValue(), and CRYPT_AsnEncodeUnicodeNameValue().
|
static |
Definition at line 2369 of file encode.c.
Referenced by CRYPT_AsnEncodeBasicConstraints2(), CRYPT_AsnEncodeExtension(), and CRYPT_AsnEncodeIssuingDistPoint().
|
static |
Definition at line 454 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 507 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2945 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2926 of file encode.c.
Referenced by CRYPT_AsnEncodeCertPolicies().
|
static |
Definition at line 3092 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 3010 of file encode.c.
Referenced by CRYPT_AsnEncodeCertPolicyMappings().
|
static |
Definition at line 3027 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2852 of file encode.c.
Referenced by CRYPT_AsnEncodeCertPolicy().
|
static |
Definition at line 312 of file encode.c.
Referenced by CRYPT_AsnEncodeCertInfo().
|
static |
Definition at line 3626 of file encode.c.
Referenced by CRYPT_AsnEncodeCRLEntry(), CRYPT_AsnEncodeCRLInfo(), CRYPT_AsnEncodeCTL(), CRYPT_AsnEncodeValidity(), and CRYPT_GetBuiltinEncoder().
BOOL CRYPT_AsnEncodeCMSSignedInfo | ( | CRYPT_SIGNED_INFO * | signedInfo, |
void * | pvData, | ||
DWORD * | pcbData | ||
) |
Definition at line 4307 of file encode.c.
Referenced by CRYPT_SavePKCSToMem(), and CSignedEncodeMsg_GetParam().
|
static |
Definition at line 4218 of file encode.c.
Referenced by CRYPT_AsnEncodeCMSSignedInfo(), and CRYPT_GetBuiltinEncoder().
BOOL WINAPI CRYPT_AsnEncodeConstructed | ( | DWORD | dwCertEncodingType, |
LPCSTR | lpszStructType, | ||
const void * | pvStructInfo, | ||
DWORD | dwFlags, | ||
PCRYPT_ENCODE_PARA | pEncodePara, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 239 of file encode.c.
Referenced by CRYPT_AsnEncodeAuthorityKeyId(), CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeCertVersion(), CRYPT_AsnEncodeCRLInfo(), CRYPT_AsnEncodeCTL(), CRYPT_AsnEncodeDistPoint(), CRYPT_AsnEncodeIssuingDistPoint(), CRYPT_AsnEncodePKCSContentInfoInternal(), and CRYPT_EncodeDataContentInfoHeader().
|
static |
Definition at line 3763 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 599 of file encode.c.
Referenced by CRYPT_AsnEncodeCRLInfo().
|
static |
Definition at line 572 of file encode.c.
Referenced by CRYPT_AsnEncodeCRLEntries().
|
static |
Definition at line 674 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 651 of file encode.c.
Referenced by CRYPT_AsnEncodeCRLInfo().
|
static |
Definition at line 1596 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1543 of file encode.c.
Referenced by CRYPT_AsnEncodeCTL().
|
static |
Definition at line 1523 of file encode.c.
Referenced by CRYPT_AsnEncodeCTLEntries().
|
static |
|
static |
Definition at line 1471 of file encode.c.
Referenced by CRYPT_AsnEncodeCTL().
|
static |
Definition at line 3704 of file encode.c.
Referenced by CRYPT_AsnEncodeCRLDistPoints().
|
static |
Definition at line 4400 of file encode.c.
Referenced by CRYPT_AsnEncodePKCSEnvelopedData().
|
static |
Definition at line 3847 of file encode.c.
Referenced by CRYPT_AsnEncodeCTL(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 3500 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 728 of file encode.c.
Referenced by CRYPT_AsnEncodeExtensions().
|
static |
Definition at line 757 of file encode.c.
Referenced by CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeCRLEntry(), CRYPT_AsnEncodeCRLInfo(), CRYPT_AsnEncodeCTL(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 3578 of file encode.c.
Referenced by CRYPT_AsnEncodeChoiceOfTime().
|
static |
Definition at line 4002 of file encode.c.
Referenced by CRYPT_AsnEncodeNameConstraints().
|
static |
Definition at line 2137 of file encode.c.
Referenced by CRYPT_AsnEncodeUnicodeNameValue().
|
static |
Definition at line 3333 of file encode.c.
Referenced by CRYPT_AsnEncodeBasicConstraints(), CRYPT_AsnEncodeBasicConstraints2(), CRYPT_AsnEncodeCertPolicyConstraints(), CRYPT_AsnEncodeCertVersion(), CRYPT_AsnEncodeCMSSignedInfo(), CRYPT_AsnEncodeCMSSignerInfo(), CRYPT_AsnEncodeCRLVersion(), CRYPT_AsnEncodeCTLVersion(), CRYPT_AsnEncodeGeneralSubtree(), CRYPT_AsnEncodeNoticeNumbers(), CRYPT_AsnEncodePKCSDigestedData(), CRYPT_AsnEncodePKCSEnvelopedData(), CRYPT_AsnEncodePKCSSignerInfo(), CRYPT_AsnEncodeRecipientInfo(), CRYPT_AsnEncodeRsaPubKey(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 3343 of file encode.c.
Referenced by CRYPT_AsnEncodeAuthorityKeyId(), CRYPT_AsnEncodeAuthorityKeyId2(), CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeCRLEntry(), CRYPT_AsnEncodeCTL(), CRYPT_AsnEncodeInt(), CRYPT_AsnEncodeIssuerSerialNumber(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 4134 of file encode.c.
Referenced by CRYPT_AsnEncodeCMSSignerInfo(), CRYPT_AsnEncodePKCSSignerInfo(), and CRYPT_AsnEncodeRecipientInfo().
|
static |
Definition at line 3913 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2304 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 4040 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1044 of file encode.c.
Referenced by CRYPT_AsnEncodeName(), CRYPT_AsnEncodeNoticeReference(), CRYPT_AsnEncodePolicyQualifierUserNotice(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1758 of file encode.c.
Referenced by CRYPT_AsnEncodeNoticeReference().
|
static |
Definition at line 1811 of file encode.c.
Referenced by CRYPT_AsnEncodePolicyQualifierUserNotice().
|
static |
Definition at line 2028 of file encode.c.
Referenced by CRYPT_AsnEncodeUnicodeNameValue().
BOOL WINAPI CRYPT_AsnEncodeOctets | ( | DWORD | dwCertEncodingType, |
LPCSTR | lpszStructType, | ||
const void * | pvStructInfo, | ||
DWORD | dwFlags, | ||
PCRYPT_ENCODE_PARA | pEncodePara, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 3178 of file encode.c.
Referenced by CRYPT_AsnEncodeAuthorityKeyId(), CRYPT_AsnEncodeAuthorityKeyId2(), CRYPT_AsnEncodeCMSSignerInfo(), CRYPT_AsnEncodeCTL(), CRYPT_AsnEncodeCTLEntry(), CRYPT_AsnEncodeEncryptedContentInfo(), CRYPT_AsnEncodeExtension(), CRYPT_AsnEncodePKCSDigestedData(), CRYPT_AsnEncodePKCSSignerInfo(), CRYPT_AsnEncodeRecipientInfo(), CRYPT_EncodePKCSDigestedData(), CRYPT_GetBuiltinEncoder(), and CSignedMsgData_AppendMessageDigestAttribute().
BOOL WINAPI CRYPT_AsnEncodeOid | ( | DWORD | dwCertEncodingType, |
LPCSTR | lpszStructType, | ||
const void * | pvStructInfo, | ||
DWORD | dwFlags, | ||
PCRYPT_ENCODE_PARA | pEncodePara, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 820 of file encode.c.
Referenced by CRYPT_AsnEncodeAccessDescription(), CRYPT_AsnEncodeAlgorithmId(), CRYPT_AsnEncodeAlgorithmIdWithNullParams(), CRYPT_AsnEncodeAltNameEntry(), CRYPT_AsnEncodeCertPolicy(), CRYPT_AsnEncodeCertPolicyMapping(), CRYPT_AsnEncodeCertPolicyQualifiers(), CRYPT_AsnEncodeCTLSubjectAlgorithm(), CRYPT_AsnEncodeEncryptedContentInfo(), CRYPT_AsnEncodeEnhancedKeyUsage(), CRYPT_AsnEncodeExtension(), CRYPT_AsnEncodePKCSAttribute(), CRYPT_AsnEncodePKCSContentInfoInternal(), CRYPT_AsnEncodeRdnAttr(), CRYPT_AsnEncodeSMIMECapability(), and CRYPT_EncodeDataContentInfoHeader().
|
static |
Definition at line 1384 of file encode.c.
Referenced by CRYPT_AsnEncodeUnicodeName().
|
static |
Definition at line 1870 of file encode.c.
Referenced by CRYPT_AsnEncodePKCSAttributes(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1902 of file encode.c.
Referenced by CRYPT_AsnEncodeCMSSignerInfo(), CRYPT_AsnEncodeCTLEntry(), CRYPT_AsnEncodePKCSSignerInfo(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1966 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1926 of file encode.c.
Referenced by CRYPT_AsnEncodeCMSSignedInfo(), CRYPT_AsnEncodePKCSContentInfo(), and CRYPT_AsnEncodePKCSDigestedData().
BOOL CRYPT_AsnEncodePKCSDigestedData | ( | const CRYPT_DIGESTED_DATA * | digestedData, |
void * | pvData, | ||
DWORD * | pcbData | ||
) |
Definition at line 1952 of file encode.c.
Referenced by CRYPT_EncodePKCSDigestedData().
BOOL CRYPT_AsnEncodePKCSEnvelopedData | ( | const CRYPT_ENVELOPED_DATA * | envelopedData, |
void * | pvData, | ||
DWORD * | pcbData | ||
) |
Definition at line 4418 of file encode.c.
Referenced by CEnvelopedEncodeMsg_GetParam().
|
static |
Definition at line 4151 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1830 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2086 of file encode.c.
Referenced by CRYPT_AsnEncodeUnicodeNameValue().
|
static |
Definition at line 425 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
BOOL WINAPI CRYPT_AsnEncodePubKeyInfoNoNull | ( | DWORD | dwCertEncodingType, |
LPCSTR | lpszStructType, | ||
const void * | pvStructInfo, | ||
DWORD | dwFlags, | ||
PCRYPT_ENCODE_PARA | pEncodePara, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 484 of file encode.c.
Referenced by CRYPT_AsnEncodeCertInfo(), and CryptHashPublicKeyInfo().
|
static |
Definition at line 1319 of file encode.c.
Referenced by CRYPT_AsnEncodeName(), and CRYPT_AsnEncodeUnicodeName().
|
static |
Definition at line 1128 of file encode.c.
Referenced by CRYPT_AsnEncodeRdn().
|
static |
Definition at line 4382 of file encode.c.
Referenced by CRYPT_AsnEncodePKCSEnvelopedData().
|
static |
Definition at line 3139 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
BOOL WINAPI CRYPT_AsnEncodeSequence | ( | DWORD | dwCertEncodingType, |
struct AsnEncodeSequenceItem | items[], | ||
DWORD | cItem, | ||
DWORD | dwFlags, | ||
PCRYPT_ENCODE_PARA | pEncodePara, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 180 of file encode.c.
Referenced by CRYPT_AsnEncodeAccessDescription(), CRYPT_AsnEncodeAlgorithmId(), CRYPT_AsnEncodeAlgorithmIdWithNullParams(), CRYPT_AsnEncodeAuthorityKeyId(), CRYPT_AsnEncodeAuthorityKeyId2(), CRYPT_AsnEncodeBasicConstraints(), CRYPT_AsnEncodeBasicConstraints2(), CRYPT_AsnEncodeCert(), CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeCertPolicy(), CRYPT_AsnEncodeCertPolicyConstraints(), CRYPT_AsnEncodeCertPolicyMapping(), CRYPT_AsnEncodeCertPolicyQualifiers(), CRYPT_AsnEncodeCMSSignedInfo(), CRYPT_AsnEncodeCMSSignerInfo(), CRYPT_AsnEncodeCRLEntry(), CRYPT_AsnEncodeCRLInfo(), CRYPT_AsnEncodeCTL(), CRYPT_AsnEncodeCTLEntry(), CRYPT_AsnEncodeCTLSubjectAlgorithm(), CRYPT_AsnEncodeDistPoint(), CRYPT_AsnEncodeEncryptedContentInfo(), CRYPT_AsnEncodeExtension(), CRYPT_AsnEncodeGeneralSubtree(), CRYPT_AsnEncodeIssuerSerialNumber(), CRYPT_AsnEncodeIssuingDistPoint(), CRYPT_AsnEncodeNameConstraints(), CRYPT_AsnEncodeNoticeReference(), CRYPT_AsnEncodePKCSAttribute(), CRYPT_AsnEncodePKCSContentInfoInternal(), CRYPT_AsnEncodePKCSDigestedData(), CRYPT_AsnEncodePKCSEnvelopedData(), CRYPT_AsnEncodePKCSSignerInfo(), CRYPT_AsnEncodePolicyQualifierUserNotice(), CRYPT_AsnEncodePubKeyInfo(), CRYPT_AsnEncodePubKeyInfoNoNull(), CRYPT_AsnEncodeRecipientInfo(), CRYPT_AsnEncodeRsaPubKey(), CRYPT_AsnEncodeSMIMECapability(), CRYPT_AsnEncodeValidity(), and CRYPT_EncodeDataContentInfoHeader().
|
static |
Definition at line 3656 of file encode.c.
Referenced by CRYPT_AsnEncodeBasicConstraints(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1694 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1662 of file encode.c.
Referenced by CRYPT_AsnEncodeSMIMECapabilities().
|
static |
Definition at line 938 of file encode.c.
Referenced by CRYPT_AsnEncodeNameValue().
|
static |
Definition at line 298 of file encode.c.
Referenced by CRYPT_AsnEncodeAltNameEntry(), CRYPT_AsnEncodeAuthorityKeyId(), CRYPT_AsnEncodeAuthorityKeyId2(), CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeCertPolicyConstraints(), CRYPT_AsnEncodeCMSSignedInfo(), CRYPT_AsnEncodeCMSSignerInfo(), CRYPT_AsnEncodeDistPoint(), CRYPT_AsnEncodeEncryptedContentInfo(), CRYPT_AsnEncodeGeneralSubtree(), CRYPT_AsnEncodeIssuingDistPoint(), CRYPT_AsnEncodeNameConstraints(), and CRYPT_AsnEncodePKCSSignerInfo().
|
static |
Definition at line 1401 of file encode.c.
Referenced by CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 2231 of file encode.c.
Referenced by CRYPT_AsnEncodeOrCopyUnicodeNameValue(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1991 of file encode.c.
Referenced by CRYPT_AsnEncodeUnicodeNameValue().
|
static |
Definition at line 2188 of file encode.c.
Referenced by CRYPT_AsnEncodeUnicodeNameValue().
|
static |
Definition at line 3431 of file encode.c.
Referenced by CRYPT_AsnEncodeEnumerated(), CRYPT_AsnEncodeRsaPubKey(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 3521 of file encode.c.
Referenced by CRYPT_AsnEncodeChoiceOfTime(), and CRYPT_GetBuiltinEncoder().
|
static |
Definition at line 1007 of file encode.c.
Referenced by CRYPT_AsnEncodeNameValue(), and CRYPT_AsnEncodeUnicodeNameValue().
|
static |
Definition at line 362 of file encode.c.
Referenced by CRYPT_AsnEncodeCertInfo().
|
static |
Definition at line 335 of file encode.c.
Referenced by CRYPT_AsnEncodeAlgorithmId(), CRYPT_AsnEncodeAlgorithmIdWithNullParams(), CRYPT_AsnEncodeAuthorityKeyId(), CRYPT_AsnEncodeCert(), CRYPT_AsnEncodeCertInfo(), CRYPT_AsnEncodeCertPolicyQualifiers(), CRYPT_AsnEncodeCMSSignedInfo(), CRYPT_AsnEncodeCRLInfo(), CRYPT_AsnEncodeCTLSubjectAlgorithm(), CRYPT_AsnEncodeIssuerSerialNumber(), CRYPT_AsnEncodeNameValue(), CRYPT_AsnEncodeOrCopyUnicodeNameValue(), CRYPT_AsnEncodePKCSContentInfoInternal(), and CRYPT_AsnEncodeSMIMECapability().
|
static |
Definition at line 1245 of file encode.c.
Referenced by CRYPT_AsnEncodeCMSSignedInfo(), CRYPT_AsnEncodePKCSAttributes(), and CRYPT_AsnEncodePKCSEnvelopedData().
|
static |
Definition at line 1201 of file encode.c.
Referenced by CRYPT_AsnEncodeNameConstraints(), CRYPT_AsnEncodePKCSAttribute(), and CRYPT_AsnEncodeRdn().
BOOL CRYPT_EncodeEnsureSpace | ( | DWORD | dwFlags, |
const CRYPT_ENCODE_PARA * | pEncodePara, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded, | ||
DWORD | bytesNeeded | ||
) |
Definition at line 103 of file encode.c.
Referenced by CRYPT_AsnEncodeAltName(), CRYPT_AsnEncodeAuthorityInfoAccess(), CRYPT_AsnEncodeBits(), CRYPT_AsnEncodeBMPString(), CRYPT_AsnEncodeCertPolicies(), CRYPT_AsnEncodeCertPolicyMappings(), CRYPT_AsnEncodeCertPolicyQualifiers(), CRYPT_AsnEncodeConstructed(), CRYPT_AsnEncodeCRLDistPoints(), CRYPT_AsnEncodeCRLEntries(), CRYPT_AsnEncodeCTLEntries(), CRYPT_AsnEncodeEnhancedKeyUsage(), CRYPT_AsnEncodeExtensions(), CRYPT_AsnEncodeGeneralizedTime(), CRYPT_AsnEncodeIA5String(), CRYPT_AsnEncodeInteger(), CRYPT_AsnEncodeName(), CRYPT_AsnEncodeNoticeNumbers(), CRYPT_AsnEncodeNumericString(), CRYPT_AsnEncodeOctets(), CRYPT_AsnEncodePrintableString(), CRYPT_AsnEncodeSequence(), CRYPT_AsnEncodeSequenceOfAny(), CRYPT_AsnEncodeSMIMECapabilities(), CRYPT_AsnEncodeStringCoerce(), CRYPT_AsnEncodeUnicodeName(), CRYPT_AsnEncodeUnicodeStringCoerce(), CRYPT_AsnEncodeUniversalString(), CRYPT_AsnEncodeUnsignedInteger(), CRYPT_AsnEncodeUtcTime(), CRYPT_AsnEncodeUTF8String(), CRYPT_CopyEncodedBlob(), CRYPT_DEREncodeItemsAsSet(), CRYPT_DEREncodeSet(), CRYPT_EncodeContentLength(), and CryptEncodeObjectEx().
Definition at line 138 of file encode.c.
Referenced by CRYPT_AsnEncodeAltName(), CRYPT_AsnEncodeAltNameEntry(), CRYPT_AsnEncodeAuthorityInfoAccess(), CRYPT_AsnEncodeBits(), CRYPT_AsnEncodeBMPString(), CRYPT_AsnEncodeCertPolicies(), CRYPT_AsnEncodeCertPolicyMappings(), CRYPT_AsnEncodeCertPolicyQualifiers(), CRYPT_AsnEncodeConstructed(), CRYPT_AsnEncodeCRLDistPoints(), CRYPT_AsnEncodeCRLEntries(), CRYPT_AsnEncodeCTLEntries(), CRYPT_AsnEncodeEnhancedKeyUsage(), CRYPT_AsnEncodeExtensions(), CRYPT_AsnEncodeIA5String(), CRYPT_AsnEncodeInteger(), CRYPT_AsnEncodeName(), CRYPT_AsnEncodeNoticeNumbers(), CRYPT_AsnEncodeNumericString(), CRYPT_AsnEncodeOctets(), CRYPT_AsnEncodeOid(), CRYPT_AsnEncodePrintableString(), CRYPT_AsnEncodeRdnAttr(), CRYPT_AsnEncodeSequence(), CRYPT_AsnEncodeSequenceOfAny(), CRYPT_AsnEncodeSMIMECapabilities(), CRYPT_AsnEncodeStringCoerce(), CRYPT_AsnEncodeUnicodeName(), CRYPT_AsnEncodeUnicodeStringCoerce(), CRYPT_AsnEncodeUniversalString(), CRYPT_AsnEncodeUnsignedInteger(), CRYPT_AsnEncodeUTF8String(), CRYPT_DEREncodeItemsAsSet(), CRYPT_DEREncodeSet(), and CRYPT_EncodeContentLength().
|
static |
Definition at line 4786 of file encode.c.
Referenced by CryptExportPublicKeyInfoEx().
|
static |
Definition at line 130 of file encode.c.
Referenced by CRYPT_AsnEncodeAltName(), CRYPT_AsnEncodeAuthorityInfoAccess(), CRYPT_AsnEncodeCertPolicies(), CRYPT_AsnEncodeCertPolicyMappings(), CRYPT_AsnEncodeCertPolicyQualifiers(), CRYPT_AsnEncodeConstructed(), CRYPT_AsnEncodeCRLDistPoints(), CRYPT_AsnEncodeCRLEntries(), CRYPT_AsnEncodeCTLEntries(), CRYPT_AsnEncodeEnhancedKeyUsage(), CRYPT_AsnEncodeExtensions(), CRYPT_AsnEncodeIA5String(), CRYPT_AsnEncodeName(), CRYPT_AsnEncodeNoticeNumbers(), CRYPT_AsnEncodeNumericString(), CRYPT_AsnEncodePrintableString(), CRYPT_AsnEncodeSequence(), CRYPT_AsnEncodeSMIMECapabilities(), and CRYPT_AsnEncodeUnicodeName().
|
static |
Definition at line 4435 of file encode.c.
Referenced by CryptEncodeObject(), and CryptEncodeObjectEx().
|
static |
Definition at line 4981 of file encode.c.
Referenced by CryptImportPublicKeyInfoEx().
|
static |
Definition at line 4642 of file encode.c.
Referenced by CryptEncodeObject(), and CryptEncodeObjectEx().
|
static |
Definition at line 4629 of file encode.c.
Referenced by CryptEncodeObject(), and CryptEncodeObjectEx().
BOOL WINAPI CryptEncodeObject | ( | DWORD | dwCertEncodingType, |
LPCSTR | lpszStructType, | ||
const void * | pvStructInfo, | ||
BYTE * | pbEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 4655 of file encode.c.
Referenced by CDataEncodeMsg_GetParam(), CRYPT_CopyKeyIdAsIssuerAndSerial(), CRYPT_ExportPublicKeyInfoEx(), CRYPT_SizeOfKeyIdAsIssuerAndSerial(), and CryptSignAndEncodeCertificate().
BOOL WINAPI CryptEncodeObjectEx | ( | DWORD | dwCertEncodingType, |
LPCSTR | lpszStructType, | ||
const void * | pvStructInfo, | ||
DWORD | dwFlags, | ||
PCRYPT_ENCODE_PARA | pEncodePara, | ||
void * | pvEncoded, | ||
DWORD * | pcbEncoded | ||
) |
Definition at line 4696 of file encode.c.
Referenced by CDataEncodeMsg_Update(), CDecodeSignedMsg_GetParam(), CEnvelopedEncodeMsg_GetParam(), CertCreateSelfSignCertificate(), CertSetEnhancedKeyUsage(), CertStrToNameW(), CHashEncodeMsg_GetParam(), CRYPT_CreateSignedCert(), CRYPT_EncodeValueWithType(), CryptMsgEncodeAndSignCTL(), CSignedEncodeMsg_GetParam(), CSignedMsgData_UpdateAuthenticatedAttributes(), and init_function_pointers().
BOOL WINAPI CryptExportPublicKeyInfo | ( | HCRYPTPROV_OR_NCRYPT_KEY_HANDLE | hCryptProv, |
DWORD | dwKeySpec, | ||
DWORD | dwCertEncodingType, | ||
PCERT_PUBLIC_KEY_INFO | pInfo, | ||
DWORD * | pcbInfo | ||
) |
Definition at line 4775 of file encode.c.
Referenced by CertCreateSelfSignCertificate().
BOOL WINAPI CryptExportPublicKeyInfoEx | ( | HCRYPTPROV_OR_NCRYPT_KEY_HANDLE | hCryptProv, |
DWORD | dwKeySpec, | ||
DWORD | dwCertEncodingType, | ||
LPSTR | pszPublicKeyObjId, | ||
DWORD | dwFlags, | ||
void * | pvAuxInfo, | ||
PCERT_PUBLIC_KEY_INFO | pInfo, | ||
DWORD * | pcbInfo | ||
) |
Definition at line 4934 of file encode.c.
Referenced by CryptExportPublicKeyInfo(), testAcquireCertPrivateKey(), testExportPublicKey(), testVerifyCertSig(), and testVerifyCertSigEx().
BOOL WINAPI CryptImportPublicKeyInfo | ( | HCRYPTPROV | hCryptProv, |
DWORD | dwCertEncodingType, | ||
PCERT_PUBLIC_KEY_INFO | pInfo, | ||
HCRYPTKEY * | phKey | ||
) |
Definition at line 4970 of file encode.c.
Referenced by CDecodeSignedMsg_VerifySignatureWithKey(), CertGetPublicKeyLength(), CRYPT_ExportKeyTrans(), and testAcquireCertPrivateKey().
BOOL WINAPI CryptImportPublicKeyInfoEx | ( | HCRYPTPROV | hCryptProv, |
DWORD | dwCertEncodingType, | ||
PCERT_PUBLIC_KEY_INFO | pInfo, | ||
ALG_ID | aiKeyAlg, | ||
DWORD | dwFlags, | ||
void * | pvAuxInfo, | ||
HCRYPTKEY * | phKey | ||
) |
Definition at line 5044 of file encode.c.
Referenced by CRYPT_VerifySignature(), CryptImportPublicKeyInfo(), rdssl_cert_to_rkey(), and testImportPublicKey().
Definition at line 2079 of file encode.c.
Referenced by CRYPT_AsnEncodePrintableString().
BOOL WINAPI PFXExportCertStore | ( | HCERTSTORE | hStore, |
CRYPT_DATA_BLOB * | pPFX, | ||
LPCWSTR | szPassword, | ||
DWORD | dwFlags | ||
) |
Definition at line 4761 of file encode.c.
Referenced by save_pfx().
BOOL WINAPI PFXExportCertStoreEx | ( | HCERTSTORE | hStore, |
CRYPT_DATA_BLOB * | pPFX, | ||
LPCWSTR | szPassword, | ||
void * | pvReserved, | ||
DWORD | dwFlags | ||
) |
WINE_DECLARE_DEBUG_CHANNEL | ( | crypt | ) |
WINE_DEFAULT_DEBUG_CHANNEL | ( | cryptasn | ) |