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