22 references to HALF_LEN
Microsoft.CodeAnalysis.UnitTests (22)
CryptoBlobParserTests.cs (22)
40
var expectedP = key.Skip(HEADER_LEN + MOD_LEN).Take(
HALF_LEN
).ToArray();
44
var expectedQ = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
).Take(
HALF_LEN
).ToArray();
48
var expectedDP = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 2).Take(
HALF_LEN
).ToArray();
52
var expectedDQ = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 3).Take(
HALF_LEN
).ToArray();
56
var expectedInverseQ = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 4).Take(
HALF_LEN
).ToArray();
60
var expectedD = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 5).Take(MOD_LEN).ToArray();
64
Assert.True(key.Skip(HEADER_LEN + MOD_LEN * 2 +
HALF_LEN
* 5).ToArray().Length == 0);
83
var expectedP = key.Skip(HEADER_LEN + MOD_LEN).Take(
HALF_LEN
).ToArray();
87
var expectedQ = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
).Take(
HALF_LEN
).ToArray();
91
var expectedDP = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 2).Take(
HALF_LEN
).ToArray();
95
var expectedDQ = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 3).Take(
HALF_LEN
).ToArray();
99
var expectedInverseQ = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 4).Take(
HALF_LEN
).ToArray();
103
var expectedD = key.Skip(HEADER_LEN + MOD_LEN +
HALF_LEN
* 5).Take(MOD_LEN).ToArray();
107
Assert.True(key.Skip(HEADER_LEN + MOD_LEN * 2 +
HALF_LEN
* 5).ToArray().Length == 0);