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