1 instantiation of SafeLocalAllocHandle
System (1)
security\system\security\cryptography\cryptoapi.cs (1)
3955
SafeLocalAllocHandle invalidHandle = new
SafeLocalAllocHandle
(IntPtr.Zero);
100 references to SafeLocalAllocHandle
System (100)
security\system\security\cryptography\cryptoapi.cs (42)
1954
SafeLocalAllocHandle
LocalAlloc(
1981
[In]
SafeLocalAllocHandle
pbCertEncoded,
2065
[In,Out]
SafeLocalAllocHandle
pvData,
2088
[In,Out]
SafeLocalAllocHandle
pszNameString,
2108
[In,Out]
SafeLocalAllocHandle
rghOIDs,
2121
[In,Out]
SafeLocalAllocHandle
psz,
2133
[In,Out]
SafeLocalAllocHandle
pbElement,
2193
[In,Out]
SafeLocalAllocHandle
pvStructInfo,
2208
[In,Out]
SafeLocalAllocHandle
pvStructInfo,
2221
[In,Out]
SafeLocalAllocHandle
pbEncoded,
2234
[In,Out]
SafeLocalAllocHandle
pbEncoded,
2253
[In]
SafeLocalAllocHandle
pvKey,
2270
[In,Out]
SafeLocalAllocHandle
pbFormat,
2287
[In,Out]
SafeLocalAllocHandle
pbFormat,
2341
[In, Out]
SafeLocalAllocHandle
pvData,
2597
[In]
SafeLocalAllocHandle
safeLocalAllocHandle);
2788
out
SafeLocalAllocHandle
decodedValue,
2791
decodedValue =
SafeLocalAllocHandle
.InvalidHandle;
2796
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
2831
out
SafeLocalAllocHandle
decodedValue,
2834
decodedValue =
SafeLocalAllocHandle
.InvalidHandle;
2839
SafeLocalAllocHandle
pbDecoded =
SafeLocalAllocHandle
.InvalidHandle;
2876
SafeLocalAllocHandle
pbEncoded =
SafeLocalAllocHandle
.InvalidHandle;
2913
SafeLocalAllocHandle
pbEncoded =
SafeLocalAllocHandle
.InvalidHandle;
2953
SafeLocalAllocHandle
pszCommonName =
SafeLocalAllocHandle
.InvalidHandle;
2958
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
2987
SafeLocalAllocHandle
LocalAlloc(uint uFlags, IntPtr sizetdwBytes) {
2988
SafeLocalAllocHandle
safeLocalAllocHandle = CAPIMethods.LocalAlloc(uFlags, sizetdwBytes);
3098
[In]
SafeLocalAllocHandle
pvKey,
3131
SafeLocalAllocHandle
pbFormat =
SafeLocalAllocHandle
.InvalidHandle;
3181
SafeLocalAllocHandle
pbFormat =
SafeLocalAllocHandle
.InvalidHandle;
3362
[In]
SafeLocalAllocHandle
safeLocalAllocHandle) {
3953
internal static
SafeLocalAllocHandle
InvalidHandle {
3955
SafeLocalAllocHandle
invalidHandle = new SafeLocalAllocHandle(IntPtr.Zero);
security\system\security\cryptography\x509\x500Name.cs (2)
89
SafeLocalAllocHandle
.InvalidHandle,
94
using (
SafeLocalAllocHandle
pwszDecodeName = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(2 * cchDecoded))) {
security\system\security\cryptography\x509\x509certificate2.cs (19)
162
SafeLocalAllocHandle
decodedKeyValue = null;
176
SafeLocalAllocHandle
decodedParameters = null;
194
private static byte[] ConstructDSSPubKeyCspBlob (
SafeLocalAllocHandle
decodedKeyValue,
195
SafeLocalAllocHandle
decodedParameters) {
608
SafeLocalAllocHandle
.InvalidHandle,
615
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
651
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
758
using (
SafeLocalAllocHandle
invalidHandle =
SafeLocalAllocHandle
.InvalidHandle) {
983
SafeLocalAllocHandle
decoded = null;
985
SafeLocalAllocHandle
ptr = X509Utils.StringToAnsiPtr(extension.pszObjId);
1004
SafeLocalAllocHandle
pUpnName = null;
1194
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
1372
SafeLocalAllocHandle
ptr = X509Utils.StringToUniPtr(name);
1390
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
security\system\security\cryptography\x509\x509certificate2collection.cs (11)
302
SafeLocalAllocHandle
pbEncoded =
SafeLocalAllocHandle
.InvalidHandle;
414
SafeLocalAllocHandle
pb =
SafeLocalAllocHandle
.InvalidHandle;
844
SafeLocalAllocHandle
decoded = null;
864
SafeLocalAllocHandle
decoded = null;
899
SafeLocalAllocHandle
rghOIDs =
SafeLocalAllocHandle
.InvalidHandle;
947
SafeLocalAllocHandle
decoded = null;
1022
SafeLocalAllocHandle
ptr =
SafeLocalAllocHandle
.InvalidHandle;
security\system\security\cryptography\x509\x509chain.cs (4)
364
SafeLocalAllocHandle
applicationPolicyHandle =
SafeLocalAllocHandle
.InvalidHandle;
365
SafeLocalAllocHandle
certificatePolicyHandle =
SafeLocalAllocHandle
.InvalidHandle;
security\system\security\cryptography\x509\x509extension.cs (10)
126
SafeLocalAllocHandle
decoded = null;
214
SafeLocalAllocHandle
decoded = null;
315
SafeLocalAllocHandle
decoded = null;
345
SafeLocalAllocHandle
safeLocalAllocHandle = X509Utils.CopyOidsToUnmanagedMemory(enhancedKeyUsages);
425
SafeLocalAllocHandle
decoded = null;
427
SafeLocalAllocHandle
pb = X509Utils.StringToAnsiPtr(CAPI.szOID_SUBJECT_KEY_IDENTIFIER);
477
private static unsafe
SafeLocalAllocHandle
EncodePublicKey (PublicKey key) {
478
SafeLocalAllocHandle
publicKeyInfo =
SafeLocalAllocHandle
.InvalidHandle;
518
SafeLocalAllocHandle
publicKeyInfo = EncodePublicKey(key);
security\system\security\cryptography\x509\x509utils.cs (12)
270
internal static
SafeLocalAllocHandle
ByteToPtr (byte[] managed) {
271
SafeLocalAllocHandle
pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(managed.Length));
315
internal static
SafeLocalAllocHandle
StringToAnsiPtr (string s) {
318
SafeLocalAllocHandle
pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(arr.Length));
326
internal static
SafeLocalAllocHandle
StringToUniPtr (string s) {
329
SafeLocalAllocHandle
pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(arr.Length));
383
SafeLocalAllocHandle
pszOid = StringToAnsiPtr(value);
397
SafeLocalAllocHandle
pvKey =
SafeLocalAllocHandle
.InvalidHandle;
485
internal static
SafeLocalAllocHandle
CopyOidsToUnmanagedMemory (OidCollection oids) {
486
SafeLocalAllocHandle
safeLocalAllocHandle =
SafeLocalAllocHandle
.InvalidHandle;