6 writes to X
System.Security.Cryptography (6)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (2)
369dsaParams.X = Interop.BCrypt.Consume(dsaBlob, ref offset, Sha1HashOutputSize); 404dsaParams.X = Interop.BCrypt.Consume(dsaBlob, ref offset, pBcryptBlob->cbGroupSize);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (1)
77ret.X = x.ExportKeyParameter(ret.Q.Length);
System\Security\Cryptography\CapiHelper.DSA.Shared.cs (2)
205dsaParameters.X = br.ReadReversed(lenX); 232dsaParameters.X = br.ReadReversed(20);
System\Security\Cryptography\DSA.Xml.cs (1)
58X = x,
25 references to X
System.Security.Cryptography (25)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (5)
33bool hasPrivateKey = parameters.X != null; 41if (hasPrivateKey && parameters.X!.Length != parameters.Q.Length) 222Interop.BCrypt.Emit(blob, ref offset, parameters.X!); 248(includePrivateParameters ? parameters.X!.Length : 0); 304Interop.BCrypt.Emit(blob, ref offset, parameters.X!);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (1)
237WriteKeyComponent(writer, dsaParameters.X, bitString: false);
System\Security\Cryptography\CapiHelper.DSA.Shared.cs (6)
45bool isPrivate = (dsaParameters.X != null && dsaParameters.X.Length > 0); 48if (isPrivate && dsaParameters.X!.Length != DSS_Q_LEN) 86bw.Write((uint)dsaParameters.X!.Length * 8); 104bw.WriteReversed(dsaParameters.X!); 128bw.WriteReversed(dsaParameters.X!);
System\Security\Cryptography\DSA.cs (8)
986fixed (byte* privPin = dsaParameters.X) 994CryptographicOperations.ZeroMemory(dsaParameters.X); 1016fixed (byte* privPin = ret.X) 1024CryptographicOperations.ZeroMemory(ret.X); 1042fixed (byte* privPin = ret.X) 1050CryptographicOperations.ZeroMemory(ret.X); 1066fixed (byte* privPin = key.X) 1074CryptographicOperations.ZeroMemory(key.X);
System\Security\Cryptography\DSA.Xml.cs (4)
41byte[]? x = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(DSAParameters.X), q.Length); 130ArgumentNullException.ThrowIfNull(keyParameters.X, "inArray"); 132XmlKeyHelper.WriteCryptoBinary(nameof(DSAParameters.X), keyParameters.X, builder);
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
136using (PinAndClear.Track(privateParameters.X!))