43 references to LocalAlloc
System.Security (43)
system\security\cryptography\cryptoapi.cs (4)
2336
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbDecoded));
2376
pbDecoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbDecoded));
2411
pbEncoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbEncoded));
2445
pbEncoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbEncoded));
system\security\cryptography\pkcs\envelopedpkcs7.cs (14)
411
SafeLocalAllocHandle ceei = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_ENVELOPED_ENCODE_INFO))));
610
SafeLocalAllocHandle pvAuxInfo = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_RC2_AUX_INFO))));
649
encryptParam.rgpRecipients = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(totalSize));
667
encryptParam.rgCertEncoded = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(certificates.Count * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB))));
710
encryptParam.rgszObjId[index] = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(objId.Length + 1));
757
pbData = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(cbData));
825
encryptParam.rgszObjId[index] = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(objId.Length + 1));
845
encryptParam.rgszKeyWrapObjId[cKeyAgree] = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(objId.Length + 1));
869
encryptParam.rgEphemeralIdentifier[cKeyAgree] = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER))));
874
encryptParam.rgszEphemeralObjId[cKeyAgree] = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(objId.Length + 1));
898
encryptParam.prgpEncryptedKey[cKeyAgree] = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(IntPtr))));
901
encryptParam.rgpEncryptedKey[cKeyAgree] = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO))));
943
pbKeyId = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(cbKeyId));
1023
encryptParam.rgpRecipients = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(totalSize));
system\security\cryptography\pkcs\pkcs9attribute.cs (1)
127
SafeLocalAllocHandle pbSigningTime = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(Int64))));
system\security\cryptography\pkcs\pkcsmisc.cs (1)
321
SafeLocalAllocHandle pKeyInfo = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CERT_PUBLIC_KEY_INFO))));
system\security\cryptography\pkcs\pkcsutils.cs (13)
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));
168
pvData = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(cbData));
301
SafeLocalAllocHandle pbCmsgSignerInfo = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbCmsgSignerInfo));
348
using (pbUnprotectedAttr = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(cbUnprotectedAttr))) {
373
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(checked(2 * cbSize)));
646
SafeLocalAllocHandle pCryptAttributes = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(totalLength));
764
CAPI.
LocalAlloc
(CAPI.LPTR,
773
CAPI.
LocalAlloc
(CAPI.LPTR,
808
pbData = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(cbData));
959
certBlob = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(certificates.Count * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB))));
1072
SafeLocalAllocHandle pKeyProvInfo = CAPI.
LocalAlloc
(CAPI.LPTR,
1080
SafeLocalAllocHandle pSignatureAlgorithm = CAPI.
LocalAlloc
(CAPI.LPTR,
system\security\cryptography\pkcs\signedpkcs7.cs (2)
303
SafeLocalAllocHandle pSignerEncodeInfo = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))));
376
SafeLocalAllocHandle pSignerEncodeInfo = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))));
system\security\cryptography\pkcs\signerinfo.cs (5)
303
SafeLocalAllocHandle pSignerEncodeInfo = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))));
417
pbParameters = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(cbParameters));
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 (3)
130
SafeLocalAllocHandle pb = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(arr.Length));
157
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbData));
264
safeLocalAllocHandle = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr((uint) ptrSize + (uint) oidSize));