35 references to StripeLengthBytes
Microsoft.AspNetCore.Razor.Utilities.Shared (35)
Utilities\Hashing\XxHashShared.cs (35)
33public const int NumStripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 34public const int AccumulatorCount = StripeLengthBytes / sizeof(ulong); 36public const int InternalBufferStripes = InternalBufferLengthBytes / StripeLengthBytes; 124Debug.Assert(InternalBufferLengthBytes % StripeLengthBytes == 0); 214const int StripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 215const int BlockLen = StripeLengthBytes * StripesPerBlock; 221int stripesNumber = (int)((length - 1 - offset) / StripeLengthBytes); 223Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 237ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 238Accumulate(accumulators, source + ((int)stripesToEndOfBlock * StripeLengthBytes), secret, (int)stripesAfterBlock); 283if (source.Length - sourceIndex > NumStripesPerBlock * StripeLengthBytes) 285ulong stripes = (ulong)(source.Length - sourceIndex - 1) / StripeLengthBytes; 292ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 294sourceIndex += (int)stripesToEnd * StripeLengthBytes; 301ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 302sourceIndex += NumStripesPerBlock * StripeLengthBytes; 308sourceIndex += (int)stripes * StripeLengthBytes; 313source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 326source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 375if (state.BufferedCount >= StripeLengthBytes) 377uint stripes = (state.BufferedCount - 1) / StripeLengthBytes; 382accumulateData = buffer + state.BufferedCount - StripeLengthBytes; 386byte* lastStripe = stackalloc byte[StripeLengthBytes]; 387int catchupSize = StripeLengthBytes - (int)state.BufferedCount; 389new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 394Accumulate512(accumulators, accumulateData, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 524byte* secretForScramble = secret + (SecretLengthBytes - StripeLengthBytes); 611source += StripeLengthBytes;