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