18 references to SecretLengthBytes
Microsoft.AspNetCore.Razor.Utilities.Shared (18)
Utilities\Hashing\XxHash128.cs (3)
191
high64: MergeAccumulators(accumulators, secret +
SecretLengthBytes
- AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.TotalLength * Prime64_2)));
400
byte* customSecret = stackalloc byte[
SecretLengthBytes
];
412
high64: MergeAccumulators(accumulators, secret +
SecretLengthBytes
- AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(length * Prime64_2)));
Utilities\Hashing\XxHashShared.cs (15)
33
public const int NumStripesPerBlock = (
SecretLengthBytes
- StripeLengthBytes) / SecretConsumeRateBytes;
119
byte* secret = stackalloc byte[
SecretLengthBytes
];
121
Debug.Assert(new Span<byte>(secret,
SecretLengthBytes
).SequenceEqual(DefaultSecret));
172
DefaultSecret.CopyTo(new Span<byte>(secret,
SecretLengthBytes
));
214
const int StripesPerBlock = (
SecretLengthBytes
- StripeLengthBytes) / SecretConsumeRateBytes;
223
Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (
SecretLengthBytes
- StripeLengthBytes - SecretLastAccStartBytes));
237
ScrambleAccumulators(accumulators, secret + (
SecretLengthBytes
- StripeLengthBytes));
292
ScrambleAccumulators(accumulators, secret + (
SecretLengthBytes
- StripeLengthBytes));
301
ScrambleAccumulators(accumulators, secret + (
SecretLengthBytes
- StripeLengthBytes));
394
Accumulate512(accumulators, accumulateData, secret + (
SecretLengthBytes
- StripeLengthBytes - SecretLastAccStartBytes));
494
for (int i = 0; i <
SecretLengthBytes
; i += Vector256<byte>.Count)
502
for (int i = 0; i <
SecretLengthBytes
; i += Vector128<byte>.Count)
510
for (int i = 0; i <
SecretLengthBytes
; i += sizeof(ulong) * 2)
524
byte* secretForScramble = secret + (
SecretLengthBytes
- StripeLengthBytes);
818
/// <summary>Used to store a custom secret generated from a seed. Length is <see cref="
SecretLengthBytes
"/>.</summary>