9 writes to Modulus
Microsoft.AspNetCore.Identity (1)
Passkeys\CredentialPublicKey.cs (1)
136rsaParams.Modulus = reader.ReadByteString();
Microsoft.CodeAnalysis (1)
StrongName\CryptoBlobParser.cs (1)
276rsaParameters.Modulus = br.ReadReversed(modulusLength);
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
197rsaParameters.Modulus = br.ReadReversed(modulusLength);
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (2)
53Modulus = n, 113Modulus = key.Modulus.ToUnsignedIntegerBytes(),
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)
127Modulus = Convert.FromBase64String(rsaKeyValueElement.SelectSingleNode($"{xmlDsigNamespacePrefix}:{ModulusElementName}", xmlNamespaceManager)!.InnerText),
System.ServiceModel.Primitives (1)
System\ServiceModel\RsaEndpointIdentity.cs (1)
53parameters.Modulus = modulus;
19 references to Modulus
Microsoft.AspNetCore.Identity.Test (1)
Passkeys\CredentialKeyPair.cs (1)
124writer.WriteByteString(parameters.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.Pkcs1.cs (4)
122if (rsaParameters.Modulus == null || rsaParameters.Exponent == null) 129writer.WriteKeyParameterInteger(rsaParameters.Modulus); 138if (rsaParameters.Modulus == null || rsaParameters.Exponent == null) 159writer.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)
76modulusElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(rsaParams.Modulus!)));
System.ServiceModel.Primitives (1)
System\ServiceModel\RsaEndpointIdentity.cs (1)
67writer.WriteElementString(XD.XmlSignatureDictionary.Prefix.Value, XD.XmlSignatureDictionary.Modulus, XD.XmlSignatureDictionary.Namespace, Convert.ToBase64String(parameters.Modulus));