2 instantiations of SafeLocalAllocHandle
System.Security (2)
system\security\cryptography\cryptoapi.cs (1)
2957
SafeLocalAllocHandle invalidHandle = new
SafeLocalAllocHandle
(IntPtr.Zero);
system\security\cryptography\pkcs\envelopedpkcs7.cs (1)
679
encryptParam.rgUnprotectedAttr = new
SafeLocalAllocHandle
(PkcsUtils.CreateCryptAttributes(unprotectedAttributes));
131 references to SafeLocalAllocHandle
System.Security (131)
system\security\cryptography\cryptoapi.cs (27)
1834
SafeLocalAllocHandle
LocalAlloc(
1849
[In]
SafeLocalAllocHandle
pbCertEncoded,
1883
[In,Out]
SafeLocalAllocHandle
pvData,
1909
[In,Out]
SafeLocalAllocHandle
psz,
1941
[In,Out]
SafeLocalAllocHandle
pvStructInfo,
1953
[In,Out]
SafeLocalAllocHandle
pvStructInfo,
1963
[In,Out]
SafeLocalAllocHandle
pbEncoded,
1973
[In,Out]
SafeLocalAllocHandle
pbEncoded,
1989
[In]
SafeLocalAllocHandle
pvKey,
2019
[In, Out]
SafeLocalAllocHandle
pvData,
2317
out
SafeLocalAllocHandle
decodedValue,
2320
decodedValue =
SafeLocalAllocHandle
.InvalidHandle;
2325
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
2357
out
SafeLocalAllocHandle
decodedValue,
2360
decodedValue =
SafeLocalAllocHandle
.InvalidHandle;
2365
SafeLocalAllocHandle
pbDecoded =
SafeLocalAllocHandle
.InvalidHandle;
2402
SafeLocalAllocHandle
pbEncoded =
SafeLocalAllocHandle
.InvalidHandle;
2436
SafeLocalAllocHandle
pbEncoded =
SafeLocalAllocHandle
.InvalidHandle;
2470
internal static
SafeLocalAllocHandle
LocalAlloc(uint uFlags, IntPtr sizetdwBytes) {
2471
SafeLocalAllocHandle
safeLocalAllocHandle = CAPISafe.LocalAlloc(uFlags, sizetdwBytes);
2567
[In]
SafeLocalAllocHandle
pvKey,
2955
internal static
SafeLocalAllocHandle
InvalidHandle {
2957
SafeLocalAllocHandle
invalidHandle = new SafeLocalAllocHandle(IntPtr.Zero);
system\security\cryptography\cryptographicattribute.cs (1)
91
internal CryptographicAttributeObjectCollection (
SafeLocalAllocHandle
pCryptAttributes) : this(pCryptAttributes.DangerousGetHandle()) {}
system\security\cryptography\pkcs\envelopedpkcs7.cs (33)
48
internal
SafeLocalAllocHandle
pvEncryptionAuxInfo;
49
internal
SafeLocalAllocHandle
rgpRecipients;
50
internal
SafeLocalAllocHandle
rgCertEncoded;
51
internal
SafeLocalAllocHandle
rgUnprotectedAttr;
52
internal
SafeLocalAllocHandle
[] rgSubjectKeyIdentifier;
53
internal
SafeLocalAllocHandle
[] rgszObjId;
54
internal
SafeLocalAllocHandle
[] rgszKeyWrapObjId;
55
internal
SafeLocalAllocHandle
[] rgKeyWrapAuxInfo;
56
internal
SafeLocalAllocHandle
[] rgEphemeralIdentifier;
57
internal
SafeLocalAllocHandle
[] rgszEphemeralObjId;
58
internal
SafeLocalAllocHandle
[] rgUserKeyingMaterial;
59
internal
SafeLocalAllocHandle
[] prgpEncryptedKey;
60
internal
SafeLocalAllocHandle
[] rgpEncryptedKey;
355
SafeLocalAllocHandle
pbContent =
SafeLocalAllocHandle
.InvalidHandle;
411
SafeLocalAllocHandle
ceei = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_ENVELOPED_ENCODE_INFO))));
594
encryptParam.pvEncryptionAuxInfo =
SafeLocalAllocHandle
.InvalidHandle;
610
SafeLocalAllocHandle
pvAuxInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_RC2_AUX_INFO))));
650
encryptParam.rgCertEncoded =
SafeLocalAllocHandle
.InvalidHandle;
651
encryptParam.rgUnprotectedAttr =
SafeLocalAllocHandle
.InvalidHandle;
652
encryptParam.rgSubjectKeyIdentifier = new
SafeLocalAllocHandle
[recipients.Count];
653
encryptParam.rgszObjId = new
SafeLocalAllocHandle
[recipients.Count];
656
encryptParam.rgszKeyWrapObjId = new
SafeLocalAllocHandle
[cKeyAgree];
657
encryptParam.rgKeyWrapAuxInfo = new
SafeLocalAllocHandle
[cKeyAgree];
658
encryptParam.rgEphemeralIdentifier = new
SafeLocalAllocHandle
[cKeyAgree];
659
encryptParam.rgszEphemeralObjId = new
SafeLocalAllocHandle
[cKeyAgree];
660
encryptParam.rgUserKeyingMaterial = new
SafeLocalAllocHandle
[cKeyAgree];
661
encryptParam.prgpEncryptedKey = new
SafeLocalAllocHandle
[cKeyAgree];
662
encryptParam.rgpEncryptedKey = new
SafeLocalAllocHandle
[cKeyAgree];
750
SafeLocalAllocHandle
pbData =
SafeLocalAllocHandle
.InvalidHandle;
936
SafeLocalAllocHandle
pbKeyId =
SafeLocalAllocHandle
.InvalidHandle;
system\security\cryptography\pkcs\pkcs9attribute.cs (2)
108
SafeLocalAllocHandle
pbDecoded = null;
127
SafeLocalAllocHandle
pbSigningTime = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(Int64))));
system\security\cryptography\pkcs\pkcsmisc.cs (5)
80
SafeLocalAllocHandle
pbCertNameInfo =
SafeLocalAllocHandle
.InvalidHandle;
321
SafeLocalAllocHandle
pKeyInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CERT_PUBLIC_KEY_INFO))));
337
SafeLocalAllocHandle
pbParameters =
SafeLocalAllocHandle
.InvalidHandle;
system\security\cryptography\pkcs\pkcsutils.cs (23)
77
SafeLocalAllocHandle
pPeex = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.PROV_ENUMALGS_EX))));
134
SafeLocalAllocHandle
pbAlgorithm = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(cbAlgorithm));
154
out
SafeLocalAllocHandle
pvData,
157
pvData =
SafeLocalAllocHandle
.InvalidHandle;
227
SafeLocalAllocHandle
pbEncoded =
SafeLocalAllocHandle
.InvalidHandle;
301
SafeLocalAllocHandle
pbCmsgSignerInfo = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(cbCmsgSignerInfo));
336
SafeLocalAllocHandle
pbUnprotectedAttr =
SafeLocalAllocHandle
.InvalidHandle;
364
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
395
SafeLocalAllocHandle
pbDecoded = null;
419
SafeLocalAllocHandle
pbDecoded = null;
646
SafeLocalAllocHandle
pCryptAttributes = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(totalLength));
763
SafeLocalAllocHandle
pbDataIssuer =
772
SafeLocalAllocHandle
pbDataSerialNumber =
800
SafeLocalAllocHandle
pbData =
SafeLocalAllocHandle
.InvalidHandle;
952
internal static unsafe
SafeLocalAllocHandle
CreateEncodedCertBlob (X509Certificate2Collection certificates) {
953
SafeLocalAllocHandle
certBlob =
SafeLocalAllocHandle
.InvalidHandle;
1072
SafeLocalAllocHandle
pKeyProvInfo = CAPI.LocalAlloc(CAPI.LPTR,
1080
SafeLocalAllocHandle
pSignatureAlgorithm = CAPI.LocalAlloc(CAPI.LPTR,
system\security\cryptography\pkcs\recipientinfo.cs (9)
39
private
SafeLocalAllocHandle
m_pCmsgRecipientInfo;
46
internal RecipientInfo (RecipientInfoType recipientInfoType, RecipientSubType recipientSubType,
SafeLocalAllocHandle
pCmsgRecipientInfo, Object cmsgRecipientInfo, uint index) {
84
internal
SafeLocalAllocHandle
pCmsgRecipientInfo {
112
internal unsafe KeyTransRecipientInfo (
SafeLocalAllocHandle
pRecipientInfo, CAPI.CERT_INFO certInfo, uint index) : base(RecipientInfoType.KeyTransport, RecipientSubType.Pkcs7KeyTransport, pRecipientInfo, certInfo, index) {
127
internal KeyTransRecipientInfo (
SafeLocalAllocHandle
pRecipientInfo, CAPI.CMSG_KEY_TRANS_RECIPIENT_INFO keyTrans, uint index) : base(RecipientInfoType.KeyTransport, RecipientSubType.CmsKeyTransport, pRecipientInfo, keyTrans, index) {
220
internal KeyAgreeRecipientInfo (
SafeLocalAllocHandle
pRecipientInfo, CAPI.CMSG_KEY_AGREE_CERT_ID_RECIPIENT_INFO certIdRecipient, uint index, uint subIndex) : base(RecipientInfoType.KeyAgreement, RecipientSubType.CertIdKeyAgreement, pRecipientInfo, certIdRecipient, index) {
229
internal KeyAgreeRecipientInfo (
SafeLocalAllocHandle
pRecipientInfo, CAPI.CMSG_KEY_AGREE_PUBLIC_KEY_RECIPIENT_INFO publicKeyRecipient, uint index, uint subIndex) : base(RecipientInfoType.KeyAgreement, RecipientSubType.PublicKeyAgreement, pRecipientInfo, publicKeyRecipient, index) {
419
SafeLocalAllocHandle
pbCmsRecipientInfo;
454
SafeLocalAllocHandle
pbCertInfo;
system\security\cryptography\pkcs\signedpkcs7.cs (3)
303
SafeLocalAllocHandle
pSignerEncodeInfo = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))));
308
SafeLocalAllocHandle
pEncodedBagOfCerts = PkcsUtils.CreateEncodedCertBlob(bagOfCerts);
376
SafeLocalAllocHandle
pSignerEncodeInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))));
system\security\cryptography\pkcs\signerinfo.cs (16)
33
private
SafeLocalAllocHandle
m_pbCmsgSignerInfo;
45
internal SignerInfo (SignedCms signedCms,
SafeLocalAllocHandle
pbCmsgSignerInfo) {
64
SafeLocalAllocHandle
pbCmsgSignerInfo =
SafeLocalAllocHandle
.InvalidHandle;
303
SafeLocalAllocHandle
pSignerEncodeInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))));
348
SafeLocalAllocHandle
pbParameters =
SafeLocalAllocHandle
.InvalidHandle;
466
SafeLocalAllocHandle
pbParentEncodedSignerInfo =
SafeLocalAllocHandle
.InvalidHandle;
523
SafeLocalAllocHandle
pbCmsgCmsSignerInfo =
SafeLocalAllocHandle
.InvalidHandle;
526
SafeLocalAllocHandle
pbCmsgSignerInfo =
SafeLocalAllocHandle
.InvalidHandle;
589
SafeLocalAllocHandle
pbCounterSignatureValue = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(cbCounterSignatureValue));
608
SafeLocalAllocHandle
pNewAttr = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPT_ATTRIBUTE))));
748
SafeLocalAllocHandle
pbCmsgSignerInfo = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(cbCmsgSignerInfo));
system\security\cryptography\x509\x509utils.cs (12)
127
internal static
SafeLocalAllocHandle
StringToAnsiPtr (string s) {
130
SafeLocalAllocHandle
pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(arr.Length));
144
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
237
SafeLocalAllocHandle
pszOid = StringToAnsiPtr(value);
254
internal static
SafeLocalAllocHandle
CopyOidsToUnmanagedMemory (OidCollection oids) {
255
SafeLocalAllocHandle
safeLocalAllocHandle =
SafeLocalAllocHandle
.InvalidHandle;
315
SafeLocalAllocHandle
applicationPolicyHandle =
SafeLocalAllocHandle
.InvalidHandle;
324
SafeLocalAllocHandle
certificatePolicyHandle =
SafeLocalAllocHandle
.InvalidHandle;