8 writes to Q
System.Security.Cryptography (7)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (2)
361
dsaParams.
Q
= Interop.BCrypt.Consume(dsaBlob, ref offset, Sha1HashOutputSize);
398
dsaParams.
Q
= Interop.BCrypt.Consume(dsaBlob, ref offset, pBcryptBlob->cbGroupSize);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (2)
73
Q
= parms.Q.ToByteArray(isUnsigned: true, isBigEndian: true),
136
Q
= parms.Q.ToByteArray(isUnsigned: true, isBigEndian: true),
System\Security\Cryptography\CapiHelper.DSA.Shared.cs (2)
193
dsaParameters.
Q
= br.ReadReversed(lenQ);
224
dsaParameters.
Q
= br.ReadReversed(DSS_Q_LEN);
System\Security\Cryptography\DSA.Xml.cs (1)
52
Q
= q,
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
192
Q
= (qNode != null) ? Convert.FromBase64String(qNode.InnerText) : null,
27 references to Q
System.Security.Cryptography (25)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (11)
25
if (parameters.P == null || parameters.
Q
== null || parameters.G == null || parameters.Y == null)
41
if (hasPrivateKey && parameters.X!.Length != parameters.
Q
.Length)
210
if (parameters.
Q
!.Length != Sha1HashOutputSize)
213
Interop.BCrypt.Emit(blob, ref offset, parameters.
Q
);
243
(parameters.Seed == null ? parameters.
Q
!.Length : parameters.Seed.Length) + // Use Q size if Seed is not present
244
parameters.
Q
!.Length +
266
pBcryptBlob->hashAlgorithm = parameters.
Q
.Length switch
282
pBcryptBlob->cbGroupSize = parameters.
Q
.Length;
291
int defaultSeedLength = parameters.
Q
.Length;
293
pBcryptBlob->cbGroupSize = parameters.
Q
.Length;
297
Interop.BCrypt.Emit(blob, ref offset, parameters.
Q
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (2)
77
ret.X = x.ExportKeyParameter(ret.
Q
.Length);
254
writer.WriteKeyParameterInteger(dsaParameters.
Q
);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
64
fieldSizeBits = pars.
Q
!.Length * 8;
System\Security\Cryptography\CapiHelper.DSA.Shared.cs (5)
25
if (dsaParameters.P == null || dsaParameters.P.Length == 0 || dsaParameters.
Q
== null || dsaParameters.
Q
.Length != DSS_Q_LEN)
81
bw.Write((uint)(dsaParameters.
Q
.Length * 8));
92
bw.WriteReversed(dsaParameters.
Q
);
123
bw.WriteReversed(dsaParameters.
Q
);
System\Security\Cryptography\DSA.cs (1)
1107
int qLength = dsaParameters.
Q
!.Length;
System\Security\Cryptography\DSA.Xml.cs (3)
35
byte[] q = ReadRequiredElement(ref state, nameof(DSAParameters.
Q
));
110
XmlKeyHelper.WriteCryptoBinary(nameof(DSAParameters.
Q
), keyParameters.
Q
, builder);
System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs (2)
51
!currentParameters.
Q
.ContentsEqual(newParameters.
Q
) ||
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
77
int bufSize = 2 * dsaParameters.
Q
!.Length;
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
98
qElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(dsaParams.
Q
!)));