5 writes to P
Microsoft.CodeAnalysis (1)
StrongName\CryptoBlobParser.cs (1)
279rsaParameters.P = br.ReadReversed(halfModulusLength);
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
201rsaParameters.P = br.ReadReversed(halfModulusLength);
System.Security.Cryptography (3)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (1)
57P = new byte[halfModulusLength],
System\Security\Cryptography\CapiHelper.Shared.cs (1)
183rsaParameters.P = br.ReadReversed(halfModulusLength);
System\Security\Cryptography\RSA.Xml.cs (1)
50P = p,
23 references to P
Microsoft.CodeAnalysis.UnitTests (2)
CryptoBlobParserTests.cs (2)
42AssertEx.Equal(expectedP, privKey.P); 85AssertEx.Equal(expectedP, privKey.P);
System.Security.Cryptography (21)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (4)
67using (PinAndClear.Track(parameters.P)) 84key.Prime1.ToUnsignedIntegerBytes(parameters.P); 144rsaParameters.P == null || 162writer.WriteKeyParameterInteger(rsaParameters.P);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
678if (parameters.P != null || 689if (parameters.P == null ||
System\Security\Cryptography\CapiHelper.Shared.cs (5)
82if (rsaParameters.P != null) 84if (rsaParameters.P.Length != halfModulusLength) 103bool isPrivate = (rsaParameters.P != null && rsaParameters.P.Length != 0); 130bw.WriteReversed(rsaParameters.P!);
System\Security\Cryptography\RSA.cs (4)
858fixed (byte* pPin = rsaParameters.P) 976fixed (byte* pPin = ret.P) 1007fixed (byte* pPin = ret.P) 1375CryptographicOperations.ZeroMemory(rsaParameters.P);
System\Security\Cryptography\RSA.Xml.cs (3)
38byte[]? p = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(RSAParameters.P), halfN); 118XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.P), keyParameters.P, builder);
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (2)
139_publicOnly = (parameters.P == null || parameters.P.Length == 0);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
774using (PinAndClear.Track(rsaParameters.P!))