18 references to SecretLengthBytes
Microsoft.AspNetCore.Razor.Utilities.Shared (18)
Utilities\Hashing\XxHash128.cs (3)
191high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.TotalLength * Prime64_2))); 400byte* customSecret = stackalloc byte[SecretLengthBytes]; 412high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(length * Prime64_2)));
Utilities\Hashing\XxHashShared.cs (15)
33public const int NumStripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 119byte* secret = stackalloc byte[SecretLengthBytes]; 121Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret)); 172DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 214const int StripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 223Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 237ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 292ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 301ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 394Accumulate512(accumulators, accumulateData, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 494for (int i = 0; i < SecretLengthBytes; i += Vector256<byte>.Count) 502for (int i = 0; i < SecretLengthBytes; i += Vector128<byte>.Count) 510for (int i = 0; i < SecretLengthBytes; i += sizeof(ulong) * 2) 524byte* secretForScramble = secret + (SecretLengthBytes - StripeLengthBytes); 818/// <summary>Used to store a custom secret generated from a seed. Length is <see cref="SecretLengthBytes"/>.</summary>