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