2 writes to KeyBytes
Microsoft.AspNetCore.Session (2)
EncodedKey.cs (2)
18
KeyBytes
= Encoding.UTF8.GetBytes(key);
23
KeyBytes
= key;
10 references to KeyBytes
Microsoft.AspNetCore.Session (10)
DistributedSession.cs (2)
146
if (encodedKey.
KeyBytes
.Length > KeyLengthLimit)
325
var keyBytes = entry.Key.
KeyBytes
;
EncodedKey.cs (8)
32
_keyString = Encoding.UTF8.GetString(
KeyBytes
, 0,
KeyBytes
.Length);
47
if (
KeyBytes
.Length != otherKey.
KeyBytes
.Length)
56
for (int i = 0; i <
KeyBytes
.Length; i++)
58
if (
KeyBytes
[i] != otherKey.
KeyBytes
[i])
70
_hashCode = SipHash.GetHashCode(
KeyBytes
);