19 references to SecretLengthBytes
System.IO.Hashing (19)
System\IO\Hashing\XxHash128.cs (3)
189high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.TotalLength * Prime64_2))); 398byte* customSecret = stackalloc byte[SecretLengthBytes]; 410high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(length * Prime64_2)));
System\IO\Hashing\XxHash3.cs (1)
365byte* customSecret = stackalloc byte[SecretLengthBytes];
System\IO\Hashing\XxHashShared.cs (15)
30public const int NumStripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 116byte* secret = stackalloc byte[SecretLengthBytes]; 118Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret)); 169DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 207const int StripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 216Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 230ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 285ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 294ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 387Accumulate512(accumulators, accumulateData, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 487for (int i = 0; i < SecretLengthBytes; i += Vector256<byte>.Count) 495for (int i = 0; i < SecretLengthBytes; i += Vector128<byte>.Count) 503for (int i = 0; i < SecretLengthBytes; i += sizeof(ulong) * 2) 517byte* secretForScramble = secret + (SecretLengthBytes - StripeLengthBytes); 824/// <summary>Used to store a custom secret generated from a seed. Length is <see cref="SecretLengthBytes"/>.</summary>