System\IdentityModel\Tokens\DEREncoding.cs (12)
134WriteLength(buffer, ref offset, ref len, 1 + LengthSize(mech.Length) + mech.Length + type.Length + bodySize);
139WriteLength(buffer, ref offset, ref len, mech.Length);
141System.Buffer.BlockCopy(mech, 0, buffer, offset, mech.Length);
142offset += mech.Length;
143len -= mech.Length;
212bodySize += 2 + mech.Length + LengthSize(mech.Length) + 1;
260if ((oidLength & 0x7fffffff) != mech.Length)
272if (!BufferIsEqual(mech, 0, buffer, offset, mech.Length))