1 instantiation of SecureLocalAllocHandle
Microsoft.AspNetCore.Cryptography.Internal (1)
SafeHandles\SecureLocalAllocHandle.cs (1)
36SecureLocalAllocHandle newHandle = new SecureLocalAllocHandle(cb);
16 references to SecureLocalAllocHandle
Microsoft.AspNetCore.Cryptography.Internal (4)
SafeHandles\SecureLocalAllocHandle.cs (4)
34public static SecureLocalAllocHandle Allocate(IntPtr cb) 36SecureLocalAllocHandle newHandle = new SecureLocalAllocHandle(cb); 49public SecureLocalAllocHandle Duplicate() 51SecureLocalAllocHandle duplicateHandle = Allocate(_cb);
Microsoft.AspNetCore.Cryptography.Internal.Tests (4)
SafeHandles\SecureLocalAllocHandleTests.cs (3)
17var controlHandle = SecureLocalAllocHandle.Allocate((IntPtr)cbExpected); 24var duplicateHandle = controlHandle.Duplicate();
UnsafeBufferUtilTests.cs (1)
157return SecureLocalAllocHandle.Allocate((IntPtr)cb);
Microsoft.AspNetCore.DataProtection (8)
Secret.cs (8)
21private readonly SecureLocalAllocHandle _localAllocHandle; 119private static SecureLocalAllocHandle Protect(ArraySegment<byte> plaintext) 127private static SecureLocalAllocHandle Protect(byte* pbPlaintext, uint cbPlaintext) 134var handle = SecureLocalAllocHandle.Allocate((IntPtr)checked((int)cbPlaintext)); 150var encryptedMemoryHandle = SecureLocalAllocHandle.Allocate((IntPtr)numTotalBytesToAllocate); 221using (var duplicateHandle = _localAllocHandle.Duplicate())