19 references to SecretLengthBytes
System.IO.Hashing (19)
System\IO\Hashing\XxHash128.cs (3)
186high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.TotalLength * Prime64_2))); 395byte* customSecret = stackalloc byte[SecretLengthBytes]; 407high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(length * Prime64_2)));
System\IO\Hashing\XxHash3.cs (1)
362byte* customSecret = stackalloc byte[SecretLengthBytes];
System\IO\Hashing\XxHashShared.cs (15)
29public const int NumStripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 115byte* secret = stackalloc byte[SecretLengthBytes]; 117Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret)); 168DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 206const int StripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 215Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 229ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 284ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 293ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 386Accumulate512(accumulators, accumulateData, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 486for (int i = 0; i < SecretLengthBytes; i += Vector256<byte>.Count) 494for (int i = 0; i < SecretLengthBytes; i += Vector128<byte>.Count) 502for (int i = 0; i < SecretLengthBytes; i += sizeof(ulong) * 2) 516byte* secretForScramble = secret + (SecretLengthBytes - StripeLengthBytes); 810/// <summary>Used to store a custom secret generated from a seed. Length is <see cref="SecretLengthBytes"/>.</summary>