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