7 writes to Modulus
Microsoft.CodeAnalysis (1)
StrongName\CryptoBlobParser.cs (1)
276rsaParameters.Modulus = br.ReadReversed(modulusLength);
Microsoft.DotNet.SignTool (1)
src\StrongName.cs (1)
828rsaParameters.Modulus = br.ReadReversed(modulusLength);
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (2)
47Modulus = n, 67Modulus = key.Modulus.ToByteArray(isUnsigned: true, isBigEndian: true),
System\Security\Cryptography\CapiHelper.Shared.cs (1)
180rsaParameters.Modulus = br.ReadReversed(modulusLength);
System\Security\Cryptography\RSA.Xml.cs (1)
47Modulus = n,
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
136Modulus = Convert.FromBase64String(rsaKeyValueElement.SelectSingleNode($"{xmlDsigNamespacePrefix}:{ModulusElementName}", xmlNamespaceManager)!.InnerText),
17 references to Modulus
Microsoft.CodeAnalysis (1)
PEWriter\SigningUtilities.cs (1)
67keySize = privateKey.Value.Modulus!.Length;
Microsoft.CodeAnalysis.UnitTests (2)
CryptoBlobParserTests.cs (2)
38AssertEx.Equal(expectedModulus, privKey.Modulus); 81AssertEx.Equal(expectedModulus, privKey.Modulus);
System.Security.Cryptography (13)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (4)
260if (rsaParameters.Modulus == null || rsaParameters.Exponent == null) 267writer.WriteKeyParameterInteger(rsaParameters.Modulus); 276if (rsaParameters.Modulus == null || rsaParameters.Exponent == null) 297writer.WriteKeyParameterInteger(rsaParameters.Modulus);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
667if (parameters.Modulus == null || parameters.Exponent == null)
System\Security\Cryptography\CapiHelper.Shared.cs (3)
72if (rsaParameters.Modulus == null) 78int modulusLength = rsaParameters.Modulus.Length; 126bw.WriteReversed(rsaParameters.Modulus); // Copy over the modulus for both public and private
System\Security\Cryptography\RSA.Xml.cs (3)
31byte[] n = ReadRequiredElement(ref state, nameof(RSAParameters.Modulus)); 112XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.Modulus), keyParameters.Modulus, builder);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (2)
46if (!currentParameters.Modulus.ContentsEqual(newParameters.Modulus) ||
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
82modulusElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(rsaParams.Modulus!)));