2 writes to _incrementalHash
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\HashToBeSignedBuilder.cs (2)
18
_incrementalHash
= IncrementalHash.CreateHash(hashAlgorithmName);
48
_incrementalHash
= null!;
6 references to _incrementalHash
System.Security.Cryptography.Cose (6)
System\Security\Cryptography\Cose\HashToBeSignedBuilder.cs (6)
23
_incrementalHash
.AppendData(data);
28
_incrementalHash
.AppendData(data, offset, length);
36
Debug.Assert(
_incrementalHash
.HashLengthInBytes <= 512 / 8); // largest hash we can get (SHA512).
37
Span<byte> hash = stackalloc byte[
_incrementalHash
.HashLengthInBytes];
38
_incrementalHash
.GetHashAndReset(hash);
47
_incrementalHash
.Dispose();