4 writes to D
System.Security.Cryptography (4)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (2)
255parameters.D = d_cb == 0 ? null : Crypto.ExtractBignum(d_bn, cbKey); 469parameters.D = d_cb == 0 ? null : Crypto.ExtractBignum(d_bn, cbSubgroupOrder);
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (1)
113D = d
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
156D = key.PrivateKey.ToArray(),
44 references to D
System.Security.Cryptography (44)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (4)
206Debug.Assert(ecParameters.D != null); 208using (PinAndClear.Track(ecParameters.D)) 212if (ecParameters.D.Length != _algorithm.KeySizeInBytes) 230WriteKey(ecParameters.D, ecParameters.Q.X, ecParameters.Q.Y, _algorithm.CurveOidValue, writer);
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (13)
78bool hasPrivateKey = (parameters.D != null); 98bool hasPrivateKey = (parameters.D != null); 119parameters.D, parameters.D == null ? 0 : parameters.D.Length); 131parameters.D, parameters.D == null ? 0 : parameters.D.Length, 151parameters.D, parameters.D == null ? 0 : parameters.D.Length, 235bool hasPrivateKey = (parameters.D != null); 252bool hasPrivateKey = (parameters.D != null);
System\Security\Cryptography\ECAlgorithm.cs (18)
143fixed (byte* privPtr = ecParameters.D) 158CryptographicOperations.ZeroMemory(ecParameters.D); 215fixed (byte* privPtr = ecParameters.D) 230CryptographicOperations.ZeroMemory(ecParameters.D); 261fixed (byte* privPtr = ecParameters.D) 270CryptographicOperations.ZeroMemory(ecParameters.D); 373fixed (byte* privPin = ret.D) 382CryptographicOperations.ZeroMemory(ret.D); 447fixed (byte* privPin = ret.D) 456CryptographicOperations.ZeroMemory(ret.D); 506fixed (byte* privPin = key.D) 515CryptographicOperations.ZeroMemory(key.D); 598fixed (byte* privPin = ecParameters.D) 607CryptographicOperations.ZeroMemory(ecParameters.D); 619fixed (byte* privPin = ecParameters.D) 628CryptographicOperations.ZeroMemory(ecParameters.D); 655fixed (byte* privPin = ecParameters.D) 664CryptographicOperations.ZeroMemory(ecParameters.D);
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
476if (ecParameters.D == null) 793writer.WriteOctetString(ecParameters.D);
System\Security\Cryptography\ECParameters.cs (5)
36if (D != null && Q.Y is null && Q.X is null) 46hasErrors = (D != null && (D.Length != Curve.Order!.Length)); 52hasErrors = (D != null && (D.Length != Q.X.Length));
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (2)
681using (PinAndClear.Track(ecParameters.D!)) 701using (PinAndClear.Track(ecParameters.D!))