2 writes to _incrementalHash
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\HashToBeSignedBuilder.cs (2)
18
_incrementalHash
= IncrementalHash.CreateHash(hashAlgorithmName);
43
_incrementalHash
= null!;
5 references to _incrementalHash
System.Security.Cryptography.Cose (5)
System\Security\Cryptography\Cose\HashToBeSignedBuilder.cs (5)
23
_incrementalHash
.AppendData(data);
31
Debug.Assert(
_incrementalHash
.HashLengthInBytes <= 512 / 8); // largest hash we can get (SHA512).
32
Span<byte> hash = stackalloc byte[
_incrementalHash
.HashLengthInBytes];
33
_incrementalHash
.GetHashAndReset(hash);
42
_incrementalHash
.Dispose();