1111namespace NETCore . Encrypt . Extensions . Internal
1212{
1313 /// <summary>
14- /// RSA参数格式化扩展
14+ /// RSA Parameter formatting extension
1515 /// </summary>
1616 internal static class RSAKeyExtensions
1717 {
1818 #region JSON
1919 /// <summary>
20- /// RSA导入key
20+ /// RSA import key
2121 /// </summary>
22- /// <param name="rsa">RSA实例 <see cref="RSA"/></param>
23- /// <param name="jsonString">RSA的Key序列化JSON字符串 </param>
22+ /// <param name="rsa">RSA instance <see cref="RSA"/></param>
23+ /// <param name="jsonString">RSA Key serialization JSON string </param>
2424 internal static void FromJsonString ( this RSA rsa , string jsonString )
2525 {
2626 Check . Argument . IsNotEmpty ( jsonString , nameof ( jsonString ) ) ;
@@ -47,10 +47,10 @@ internal static void FromJsonString(this RSA rsa, string jsonString)
4747 }
4848
4949 /// <summary>
50- /// 获取RSA Key序列化Json
50+ /// Get the RSA Key serialized to Json
5151 /// </summary>
52- /// <param name="rsa">RSA实例 <see cref="RSA"/></param>
53- /// <param name="includePrivateParameters">是否包含私钥 </param>
52+ /// <param name="rsa">RSA instance <see cref="RSA"/></param>
53+ /// <param name="includePrivateParameters">Whether to include the private key </param>
5454 /// <returns></returns>
5555 internal static string ToJsonString ( this RSA rsa , bool includePrivateParameters )
5656 {
@@ -75,10 +75,10 @@ internal static string ToJsonString(this RSA rsa, bool includePrivateParameters)
7575 #region XML
7676
7777 /// <summary>
78- /// RSA导入key
78+ /// RSA import key
7979 /// </summary>
80- /// <param name="rsa">RSA实例 <see cref="RSA"/></param>
81- /// <param name="jsonString">RSA的Key序列化XML字符串 </param>
80+ /// <param name="rsa">RSA instance <see cref="RSA"/></param>
81+ /// <param name="xmlString">RSA Key serialization XML string </param>
8282 public static void FromLvccXmlString ( this RSA rsa , string xmlString )
8383 {
8484 RSAParameters parameters = new RSAParameters ( ) ;
@@ -112,10 +112,10 @@ public static void FromLvccXmlString(this RSA rsa, string xmlString)
112112 }
113113
114114 /// <summary>
115- /// 获取RSA Key序列化XML
115+ /// Get the RSA Key as serialized XML
116116 /// </summary>
117- /// <param name="rsa">RSA实例 <see cref="RSA"/></param>
118- /// <param name="includePrivateParameters">是否包含私钥 </param>
117+ /// <param name="rsa">RSA instance <see cref="RSA"/></param>
118+ /// <param name="includePrivateParameters">Whether to include the private key </param>
119119 /// <returns></returns>
120120 public static string ToLvccXmlString ( this RSA rsa , bool includePrivateParameters )
121121 {
0 commit comments