6 references to SecurityTokenBitLength
Microsoft.AspNetCore.Antiforgery (4)
Internal\AntiforgeryToken.cs (1)
32
_securityToken ??= new BinaryBlob(
SecurityTokenBitLength
);
Internal\DefaultAntiforgeryTokenSerializer.cs (3)
107
const int minCookieTokenLength = 1 + (AntiforgeryToken.
SecurityTokenBitLength
/ 8) + 1; // 18 bytes
126
const int securityTokenByteLength = AntiforgeryToken.
SecurityTokenBitLength
/ 8;
129
AntiforgeryToken.
SecurityTokenBitLength
,
Microsoft.AspNetCore.Antiforgery.Test (2)
AntiforgeryTokenTest.cs (2)
92
Assert.Equal(AntiforgeryToken.
SecurityTokenBitLength
, securityToken!.BitLength);
124
Assert.Equal(AntiforgeryToken.
SecurityTokenBitLength
, securityToken!.BitLength);