7 writes to Exponent
Microsoft.CodeAnalysis (1)
StrongName\CryptoBlobParser.cs (1)
275rsaParameters.Exponent = ExponentAsBytes(expAsDword);
Microsoft.DotNet.SignTool (1)
src\StrongName.cs (1)
827rsaParameters.Exponent = ExponentAsBytes(expAsDword);
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (2)
48Exponent = key.PublicExponent.ToByteArray(isUnsigned: true, isBigEndian: true), 68Exponent = key.PublicExponent.ToByteArray(isUnsigned: true, isBigEndian: true),
System\Security\Cryptography\CapiHelper.Shared.cs (1)
179rsaParameters.Exponent = ExponentAsBytes(expAsDword);
System\Security\Cryptography\RSA.Xml.cs (1)
48Exponent = e,
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
137Exponent = Convert.FromBase64String(rsaKeyValueElement.SelectSingleNode($"{xmlDsigNamespacePrefix}:{ExponentElementName}", xmlNamespaceManager)!.InnerText)
19 references to Exponent
Microsoft.CodeAnalysis.UnitTests (2)
CryptoBlobParserTests.cs (2)
34AssertEx.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 }); 77AssertEx.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 });
System.Security.Cryptography (16)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (4)
260if (rsaParameters.Modulus == null || rsaParameters.Exponent == null) 268writer.WriteKeyParameterInteger(rsaParameters.Exponent); 276if (rsaParameters.Modulus == null || rsaParameters.Exponent == null) 298writer.WriteKeyParameterInteger(rsaParameters.Exponent);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
667if (parameters.Modulus == null || parameters.Exponent == null)
System\Security\Cryptography\CapiHelper.Shared.cs (4)
75if (rsaParameters.Exponent == null || rsaParameters.Exponent.Length > 4) 119for (int i = 0; i < rsaParameters.Exponent.Length; i++) 122expAsDword |= rsaParameters.Exponent[i];
System\Security\Cryptography\RSA.Xml.cs (3)
32byte[] e = ReadRequiredElement(ref state, nameof(RSAParameters.Exponent)); 113XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.Exponent), keyParameters.Exponent, builder);
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (2)
133if (parameters.Exponent == null || parameters.Exponent.Length > 4)
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (2)
47!currentParameters.Exponent.ContentsEqual(newParameters.Exponent))
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
86exponentElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(rsaParams.Exponent!)));