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