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