4 instantiations of IncrementalHash
System.Security.Cryptography (4)
155 references to IncrementalHash
dotnet-sourcelink (3)
ILAssembler (2)
ILCompiler.ReadyToRun (6)
Microsoft.AspNetCore.Components.Endpoints (15)
CacheView\CacheViewKeyResolver.cs (12)
18using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256);
81private static void AppendDelimitedQueryValues(IncrementalHash hash, string separatedValues, HttpRequest request)
95private static void AppendDelimitedRouteValues(IncrementalHash hash, string separatedValues, HttpRequest request)
117private static void AppendDelimitedHeaderValues(IncrementalHash hash, string separatedValues, HttpRequest request)
131private static void AppendDelimitedCookieValues(IncrementalHash hash, string separatedValues, HttpRequest request)
169private static void AppendAllQueryValues(IncrementalHash hash, HttpRequest request)
189private static void AppendUserIdentity(IncrementalHash hash, ClaimsPrincipal user)
223private static void AppendNameStringValues(IncrementalHash hash, string name, StringValues values)
239private static void AppendInt32(IncrementalHash hash, int value)
246private static void AppendLengthPrefixedString(IncrementalHash hash, string value)
255private static void AppendString(IncrementalHash hash, string? value)
Microsoft.AspNetCore.Razor.Utilities.Shared (5)
Microsoft.CodeAnalysis (14)
Microsoft.DotNet.Build.Tasks.FileCatalog (6)
Microsoft.DotNet.StrongName (2)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.FileProviders.Physical (3)
Microsoft.NET.Build.Containers (2)
netstandard (1)
NuGet.Packaging (2)
System.Core (1)
System.IO.Compression (2)
System.Net.Security (10)
System.Security.Cryptography (55)
System\Security\Cryptography\IncrementalHash.cs (16)
274/// Creates a new instance of <see cref="IncrementalHash" /> with the existing appended data preserved.
279public IncrementalHash Clone()
308VerifyCore(hash, this, static (IncrementalHash ih, Span<byte> buffer) => ih.GetCurrentHashCore(buffer));
339VerifyCore(hash, this, static (IncrementalHash ih, Span<byte> buffer) => ih.GetHashAndResetCore(buffer));
353/// <see cref="IncrementalHash"/> class.
373/// Creates an <see cref="IncrementalHash"/> for the algorithm specified by <paramref name="hashAlgorithm"/>.
377/// An <see cref="IncrementalHash"/> instance ready to compute the hash algorithm specified
385public static IncrementalHash CreateHash(HashAlgorithmName hashAlgorithm)
394/// Creates an <see cref="IncrementalHash"/> for the Hash-based Message Authentication Code (HMAC)
407/// An <see cref="IncrementalHash"/> instance ready to compute the hash algorithm specified
415public static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, byte[] key)
423/// Creates an <see cref="IncrementalHash"/> for the Hash-based Message Authentication Code (HMAC)
436/// An <see cref="IncrementalHash"/> instance ready to compute the hash algorithm specified
444public static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key)
473IncrementalHash ih,
474Func<IncrementalHash, Span<byte>, int> getHashCallback)
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Cose (2)
System.Security.Cryptography.Pkcs (19)