4 writes to _plaintextLength
Microsoft.AspNetCore.DataProtection (4)
Secret.cs (4)
33
_plaintextLength
= (uint)value.Count;
62
_plaintextLength
= (uint)secretLength;
77
this.
_plaintextLength
= other._plaintextLength;
90
_plaintextLength
= (uint)tempPlaintextBuffer.Length;
7 references to _plaintextLength
Microsoft.AspNetCore.DataProtection (7)
Secret.cs (7)
77
this._plaintextLength = other.
_plaintextLength
;
107
return (int)
_plaintextLength
; // ctor guarantees the length fits into a signed int
207
UnsafeBufferUtil.BlockCopy(from: _localAllocHandle, to: pbBuffer, byteCount:
_plaintextLength
);
211
if (
_plaintextLength
% CRYPTPROTECTMEMORY_BLOCK_SIZE == 0)
214
UnsafeBufferUtil.BlockCopy(from: _localAllocHandle, to: pbBuffer, byteCount:
_plaintextLength
);
215
MemoryProtection.CryptUnprotectMemory(pbBuffer,
_plaintextLength
);
224
UnsafeBufferUtil.BlockCopy(from: duplicateHandle, to: pbBuffer, byteCount:
_plaintextLength
);