5 references to Allocate
Microsoft.AspNetCore.Cryptography.Internal (1)
SafeHandles\SecureLocalAllocHandle.cs (1)
51
SecureLocalAllocHandle duplicateHandle =
Allocate
(_cb);
Microsoft.AspNetCore.Cryptography.Internal.Tests (2)
SafeHandles\SecureLocalAllocHandleTests.cs (1)
17
var controlHandle = SecureLocalAllocHandle.
Allocate
((IntPtr)cbExpected);
UnsafeBufferUtilTests.cs (1)
157
return SecureLocalAllocHandle.
Allocate
((IntPtr)cb);
Microsoft.AspNetCore.DataProtection (2)
Secret.cs (2)
134
var handle = SecureLocalAllocHandle.
Allocate
((IntPtr)checked((int)cbPlaintext));
150
var encryptedMemoryHandle = SecureLocalAllocHandle.
Allocate
((IntPtr)numTotalBytesToAllocate);