16 references to SecretLengthBytes
Microsoft.CodeAnalysis.CodeStyle (16)
src\Compilers\Core\Portable\Hashing\XxHash128.cs (3)
193high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.TotalLength * Prime64_2))); 402byte* customSecret = stackalloc byte[SecretLengthBytes]; 414high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(length * Prime64_2)));
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (13)
34public const int NumStripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 120byte* secret = stackalloc byte[SecretLengthBytes]; 122Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret)); 173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 215const int StripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 224Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 238ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 293ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 302ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 395Accumulate512(accumulators, accumulateData, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 511for (int i = 0; i < SecretLengthBytes; i += sizeof(ulong) * 2) 525byte* secretForScramble = secret + (SecretLengthBytes - StripeLengthBytes); 819/// <summary>Used to store a custom secret generated from a seed. Length is <see cref="SecretLengthBytes"/>.</summary>