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); 36Debug.Assert(_incrementalHash.HashLengthInBytes <= 512 / 8); // largest hash we can get (SHA512). 37Span<byte> hash = stackalloc byte[_incrementalHash.HashLengthInBytes]; 38_incrementalHash.GetHashAndReset(hash); 47_incrementalHash.Dispose();