6 writes to D
System.Security.Cryptography (6)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (1)
96D = d
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (2)
136D = d, 222ecParams.D = Interop.BCrypt.Consume(ecBlob, ref offset, pBcryptBlob->cbSubgroupOrder);
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
162D = key.PrivateKey.ToArray(),
System\Security\Cryptography\ECCng.ImportExport.cs (1)
164ecparams.D = localParameters.D;
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
195ecParams.D = Interop.BCrypt.Consume(ecBlob, ref offset, pBcryptBlob->cbKey);
46 references to D
System.Security.Cryptography (46)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (3)
389fixed (byte* pD = ecParameters.D) 398byte[] zero = new byte[ecParameters.D!.Length]; 405Array.Clear(ecParameters.D!);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (4)
183Debug.Assert(ecParameters.D != null); 185using (PinAndClear.Track(ecParameters.D)) 189if (ecParameters.D.Length != _algorithm.KeySizeInBytes) 207WriteKey(ecParameters.D, _algorithm.CurveOidValue, writer);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (5)
19bool includePrivateParameters = parameters.D is not null; 29parameters.D, 38bool includePrivateParameters = (parameters.D != null); 72blobSize += parameters.D!.Length; 108Interop.BCrypt.Emit(blob, ref offset, parameters.D!);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (3)
16bool includePrivateParameters = parameters.D != null; 23byte[] zero = new byte[parameters.D!.Length]; 47byte[] zero = new byte[parameters.D!.Length];
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (3)
32bool includePrivateParameters = parameters.D != null; 39byte[] zero = new byte[parameters.D!.Length]; 60byte[] zero = new byte[parameters.D!.Length];
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)
485if (ecParameters.D == null) 816writer.WriteOctetString(ecParameters.D);
System\Security\Cryptography\ECCng.ImportExport.cs (1)
164ecparams.D = localParameters.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\CertificatePal.Windows.PrivateKey.cs (2)
161using (PinAndClear.Track(privateParameters.D!)) 186using (PinAndClear.Track(privateParameters.D!))