2 writes to HashLengthInBytes
System.Security.Cryptography (2)
System\Security\Cryptography\IncrementalHash.cs (2)
35
HashLengthInBytes
= _hash.HashSizeInBytes;
45
HashLengthInBytes
= _hmac.HashSizeInBytes;
31 references to HashLengthInBytes
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\ResourceCollectionUrlEndpoint.cs (2)
116
Span<byte> result = stackalloc byte[incrementalHash.
HashLengthInBytes
];
125
Span<char> fingerprintSpan = stackalloc char[(incrementalHash.
HashLengthInBytes
* 4 / 3) + 3];
System.Net.Security (2)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (2)
684
hmacMic.GetHashAndReset(MemoryMarshal.CreateSpan(ref response.Mic[0], hmacMic.
HashLengthInBytes
));
726
Span<byte> hmacResult = stackalloc byte[hmac.
HashLengthInBytes
];
System.Security.Cryptography (19)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (4)
321
Debug.Assert(hasher.
HashLengthInBytes
== hLen);
425
Debug.Assert(hasher.
HashLengthInBytes
== hLen);
524
Debug.Assert(hasher.
HashLengthInBytes
== hLen);
587
int hLen = hasher.
HashLengthInBytes
;
System\Security\Cryptography\IncrementalHash.cs (12)
125
byte[] ret = new byte[
HashLengthInBytes
];
128
Debug.Assert(written ==
HashLengthInBytes
);
147
/// than <see cref="
HashLengthInBytes
"/>.
153
if (destination.Length <
HashLengthInBytes
)
163
if (destination.Length <
HashLengthInBytes
)
175
Debug.Assert(destination.Length >=
HashLengthInBytes
);
197
byte[] ret = new byte[
HashLengthInBytes
];
200
Debug.Assert(written ==
HashLengthInBytes
);
219
/// than <see cref="
HashLengthInBytes
"/>.
225
if (destination.Length <
HashLengthInBytes
)
253
if (destination.Length <
HashLengthInBytes
)
265
Debug.Assert(destination.Length >=
HashLengthInBytes
);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
90
_blockSize = _hmac.
HashLengthInBytes
;
118
_blockSize = _hmac.
HashLengthInBytes
;
System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (1)
60
if (destination.Length >= hash.
HashLengthInBytes
)
System.Security.Cryptography.Cose (8)
System\Security\Cryptography\Cose\CoseHelpers.cs (4)
131
Debug.Assert(hasher.
HashLengthInBytes
<= 512 / 8); // largest hash we can get (SHA512).
132
Span<byte> hash = stackalloc byte[hasher.
HashLengthInBytes
];
152
Debug.Assert(hasher.
HashLengthInBytes
<= 512 / 8); // largest hash we can get (SHA512).
153
Span<byte> hash = stackalloc byte[hasher.
HashLengthInBytes
];
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
746
Debug.Assert(hasher.
HashLengthInBytes
<= 512 / 8); // largest hash we can get (SHA512).
747
Span<byte> hash = stackalloc byte[hasher.
HashLengthInBytes
];
System\Security\Cryptography\Cose\CoseSignature.cs (2)
454
Debug.Assert(hasher.
HashLengthInBytes
<= 512 / 8); // largest hash we can get (SHA512).
455
Span<byte> hash = stackalloc byte[hasher.
HashLengthInBytes
];