|
|
@@ -1264,162 +1264,208 @@ |
|
|
|
</summary> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.CryptogramUtil"> |
|
|
|
<member name="T:SafeCampus.Core.Utils.Q3J5cHRvZ3JhbVV0aWw"> |
|
|
|
<summary> |
|
|
|
加解密功能 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.CryptogramUtil.Sm2Decrypt(System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.Q3J5cHRvZ3JhbVV0aWw.U20yRGVjcnlwdA(System.String)"> |
|
|
|
<summary> |
|
|
|
SM2解密 |
|
|
|
</summary> |
|
|
|
<param name="str">密文</param> |
|
|
|
<returns>明文</returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.CryptogramUtil.Sm2Encrypt(System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.Q3J5cHRvZ3JhbVV0aWw.U20yRW5jcnlwdA(System.String)"> |
|
|
|
<summary> |
|
|
|
SM2加密 |
|
|
|
</summary> |
|
|
|
<param name="str">明文</param> |
|
|
|
<returns>密文</returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.CryptogramUtil.Sm4Decrypt(System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.Q3J5cHRvZ3JhbVV0aWw.U200RGVjcnlwdA(System.String)"> |
|
|
|
<summary> |
|
|
|
SM4解密 |
|
|
|
</summary> |
|
|
|
<param name="str">密文</param> |
|
|
|
<returns>明文</returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.CryptogramUtil.Sm4Encrypt(System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.Q3J5cHRvZ3JhbVV0aWw.U200RW5jcnlwdA(System.String)"> |
|
|
|
<summary> |
|
|
|
SM4加密 |
|
|
|
</summary> |
|
|
|
<param name="str">明文</param> |
|
|
|
<returns>密文</returns> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.SM2Util"> |
|
|
|
<member name="T:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA"> |
|
|
|
<summary> |
|
|
|
SM2加密解密 |
|
|
|
SM4工具类 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.SM2Util.PublicKey"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.GetULongByBe(System.Byte[],System.Int32)"> |
|
|
|
<summary> |
|
|
|
公钥 |
|
|
|
加密 非线性τ函数B=τ(A) |
|
|
|
</summary> |
|
|
|
<param name="b"></param> |
|
|
|
<param name="i"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.SM2Util.PrivateKey"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.PutULongToBe(System.Int64,System.Byte[],System.Int32)"> |
|
|
|
<summary> |
|
|
|
私钥 |
|
|
|
解密 非线性τ函数B=τ(A) |
|
|
|
</summary> |
|
|
|
<param name="n"></param> |
|
|
|
<param name="b"></param> |
|
|
|
<param name="i"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM2Util.Encrypt(System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Rotl(System.Int64,System.Int32)"> |
|
|
|
<summary> |
|
|
|
公钥加密明文 |
|
|
|
循环移位,为32位的x循环左移n位 |
|
|
|
</summary> |
|
|
|
<param name="plainText">明文</param> |
|
|
|
<returns>密文</returns> |
|
|
|
<param name="x"></param> |
|
|
|
<param name="n"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM2Util.Decrypt(System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Swap(System.Int64[],System.Int32)"> |
|
|
|
<summary> |
|
|
|
私钥解密密文 |
|
|
|
将密钥逆序 |
|
|
|
</summary> |
|
|
|
<param name="cipherText">密文</param> |
|
|
|
<returns>明文</returns> |
|
|
|
<param name="sk"></param> |
|
|
|
<param name="i"></param> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.SM4Util"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.SboxTable"> |
|
|
|
<summary> |
|
|
|
Sm4算法 |
|
|
|
对标国际DES算法 |
|
|
|
S盒 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="P:SafeCampus.Core.Utils.SM4Util.Data"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.FK"> |
|
|
|
<summary> |
|
|
|
数据 |
|
|
|
系统参数FK |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="P:SafeCampus.Core.Utils.SM4Util.Key"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.CK"> |
|
|
|
<summary> |
|
|
|
秘钥 |
|
|
|
固定参数CK |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="P:SafeCampus.Core.Utils.SM4Util.Iv"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4Sbox(System.Byte)"> |
|
|
|
<summary> |
|
|
|
向量 |
|
|
|
Sm4的S盒取值 |
|
|
|
</summary> |
|
|
|
<param name="inch"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="P:SafeCampus.Core.Utils.SM4Util.HexString"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4Lt(System.Int64)"> |
|
|
|
<summary> |
|
|
|
明文是否是十六进制 |
|
|
|
线性变换 L |
|
|
|
</summary> |
|
|
|
<param name="ka"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="P:SafeCampus.Core.Utils.SM4Util.CryptoMode"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4F(System.Int64,System.Int64,System.Int64,System.Int64,System.Int64)"> |
|
|
|
<summary> |
|
|
|
加密模式(默认ECB) |
|
|
|
统一改为ECB模式 |
|
|
|
轮函数 F |
|
|
|
</summary> |
|
|
|
<param name="x0"></param> |
|
|
|
<param name="x1"></param> |
|
|
|
<param name="x2"></param> |
|
|
|
<param name="x3"></param> |
|
|
|
<param name="rk"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4Util.EncryptECB(SafeCampus.Core.Utils.SM4Util)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4CalciRk(System.Int64)"> |
|
|
|
<summary> |
|
|
|
ECB加密 |
|
|
|
轮密钥rk |
|
|
|
</summary> |
|
|
|
<param name="entity"></param> |
|
|
|
<param name="ka"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4Util.EncryptCBC(SafeCampus.Core.Utils.SM4Util)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.SetKey(System.Int64[],System.Byte[])"> |
|
|
|
<summary> |
|
|
|
CBC加密 |
|
|
|
加密密钥 |
|
|
|
</summary> |
|
|
|
<param name="entity"></param> |
|
|
|
<returns></returns> |
|
|
|
<param name="SK"></param> |
|
|
|
<param name="key"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4Util.Decrypt(SafeCampus.Core.Utils.SM4Util)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4OneRound(System.Int64[],System.Byte[],System.Byte[])"> |
|
|
|
<summary> |
|
|
|
解密 |
|
|
|
解密函数 |
|
|
|
</summary> |
|
|
|
<param name="entity"></param> |
|
|
|
<param name="sk">轮密钥</param> |
|
|
|
<param name="input">输入分组的密文</param> |
|
|
|
<param name="output">输出的对应的分组明文</param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Padding(System.Byte[],System.Int32)"> |
|
|
|
<summary> |
|
|
|
补足 16 进制字符串的 0 字符,返回不带 0x 的16进制字符串 |
|
|
|
</summary> |
|
|
|
<param name="input"></param> |
|
|
|
<param name="mode">1表示加密,0表示解密</param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4Util.DecryptECB(SafeCampus.Core.Utils.SM4Util)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.SetKeyEnc(SafeCampus.Core.Utils.Sm4Context,System.Byte[])"> |
|
|
|
<summary> |
|
|
|
ECB解密 |
|
|
|
设置加密的key |
|
|
|
</summary> |
|
|
|
<param name="entity"></param> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="key"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4SetKeyDec(SafeCampus.Core.Utils.Sm4Context,System.Byte[])"> |
|
|
|
<summary> |
|
|
|
设置解密的key |
|
|
|
</summary> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="key"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4CryptEcb(SafeCampus.Core.Utils.Sm4Context,System.Byte[])"> |
|
|
|
<summary> |
|
|
|
ECB |
|
|
|
</summary> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="input"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4Util.DecryptCBC(SafeCampus.Core.Utils.SM4Util)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000Q3J5cHRvVXRpbA.Sm4CryptCbc(SafeCampus.Core.Utils.Sm4Context,System.Byte[],System.Byte[])"> |
|
|
|
<summary> |
|
|
|
CBC解密 |
|
|
|
CBC |
|
|
|
</summary> |
|
|
|
<param name="entity"></param> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="iv"></param> |
|
|
|
<param name="input"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.SM4Util.Sm4CryptoEnum"> |
|
|
|
<member name="T:SafeCampus.Core.Utils.Sm4Context"> |
|
|
|
<summary> |
|
|
|
加密类型 |
|
|
|
SM4处理中心 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.SM4Util.Sm4CryptoEnum.ECB"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.Sm4Context.Mode"> |
|
|
|
<summary> |
|
|
|
ECB(电码本模式) |
|
|
|
1表示加密,0表示解密 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.SM4Util.Sm4CryptoEnum.CBC"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.Sm4Context.Key"> |
|
|
|
<summary> |
|
|
|
CBC(密码分组链接模式) |
|
|
|
密钥 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.Sm4Context.IsPadding"> |
|
|
|
<summary> |
|
|
|
是否补足16进制字符串 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.SM2CryptoUtil"> |
|
|
|
<member name="T:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA"> |
|
|
|
<summary> |
|
|
|
SM2工具类 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM2CryptoUtil.GetKey"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA.GetKey"> |
|
|
|
<summary> |
|
|
|
获取公钥私钥 |
|
|
|
</summary> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM2CryptoUtil.Encrypt(System.String,System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA.Encrypt(System.String,System.String)"> |
|
|
|
<summary> |
|
|
|
加密 |
|
|
|
</summary> |
|
|
@@ -1427,7 +1473,7 @@ |
|
|
|
<param name="sourceData">需要加密的值</param> |
|
|
|
<returns>加密结果</returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM2CryptoUtil.Encrypt(System.Byte[],System.Byte[])"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA.Encrypt(System.Byte[],System.Byte[])"> |
|
|
|
<summary> |
|
|
|
加密 |
|
|
|
</summary> |
|
|
@@ -1435,7 +1481,7 @@ |
|
|
|
<param name="data">需要加密的值</param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM2CryptoUtil.Decrypt(System.String,System.String)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA.Decrypt(System.String,System.String)"> |
|
|
|
<summary> |
|
|
|
|
|
|
|
</summary> |
|
|
@@ -1443,7 +1489,7 @@ |
|
|
|
<param name="encryptedData"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM2CryptoUtil.Decrypt(System.Byte[],System.Byte[])"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA.Decrypt(System.Byte[],System.Byte[])"> |
|
|
|
<summary> |
|
|
|
解密 |
|
|
|
</summary> |
|
|
@@ -1451,172 +1497,126 @@ |
|
|
|
<param name="encryptedData"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="P:SafeCampus.Core.Utils.SM2CryptoUtil.SM2Model.PublicKey"> |
|
|
|
<member name="P:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA.SM2Model.PublicKey"> |
|
|
|
<summary> |
|
|
|
公钥 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="P:SafeCampus.Core.Utils.SM2CryptoUtil.SM2Model.PrivateKey"> |
|
|
|
<member name="P:SafeCampus.Core.Utils.U00yQ3J5cHRvVXRpbA.SM2Model.PrivateKey"> |
|
|
|
<summary> |
|
|
|
私钥 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.SM4CryptoUtil"> |
|
|
|
<summary> |
|
|
|
SM4工具类 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.GetULongByBe(System.Byte[],System.Int32)"> |
|
|
|
<summary> |
|
|
|
加密 非线性τ函数B=τ(A) |
|
|
|
</summary> |
|
|
|
<param name="b"></param> |
|
|
|
<param name="i"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.PutULongToBe(System.Int64,System.Byte[],System.Int32)"> |
|
|
|
<member name="T:SafeCampus.Core.Utils.U000VXRpbA"> |
|
|
|
<summary> |
|
|
|
解密 非线性τ函数B=τ(A) |
|
|
|
Sm4算法 |
|
|
|
对标国际DES算法 |
|
|
|
</summary> |
|
|
|
<param name="n"></param> |
|
|
|
<param name="b"></param> |
|
|
|
<param name="i"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Rotl(System.Int64,System.Int32)"> |
|
|
|
<member name="P:SafeCampus.Core.Utils.U000VXRpbA.Data"> |
|
|
|
<summary> |
|
|
|
循环移位,为32位的x循环左移n位 |
|
|
|
数据 |
|
|
|
</summary> |
|
|
|
<param name="x"></param> |
|
|
|
<param name="n"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Swap(System.Int64[],System.Int32)"> |
|
|
|
<member name="P:SafeCampus.Core.Utils.U000VXRpbA.Key"> |
|
|
|
<summary> |
|
|
|
将密钥逆序 |
|
|
|
秘钥 |
|
|
|
</summary> |
|
|
|
<param name="sk"></param> |
|
|
|
<param name="i"></param> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.SM4CryptoUtil.SboxTable"> |
|
|
|
<member name="P:SafeCampus.Core.Utils.U000VXRpbA.Iv"> |
|
|
|
<summary> |
|
|
|
S盒 |
|
|
|
向量 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.SM4CryptoUtil.FK"> |
|
|
|
<member name="P:SafeCampus.Core.Utils.U000VXRpbA.HexString"> |
|
|
|
<summary> |
|
|
|
系统参数FK |
|
|
|
明文是否是十六进制 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.SM4CryptoUtil.CK"> |
|
|
|
<member name="P:SafeCampus.Core.Utils.U000VXRpbA.CryptoMode"> |
|
|
|
<summary> |
|
|
|
固定参数CK |
|
|
|
加密模式(默认ECB) |
|
|
|
统一改为ECB模式 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4Sbox(System.Byte)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000VXRpbA.EncryptECB(SafeCampus.Core.Utils.U000VXRpbA)"> |
|
|
|
<summary> |
|
|
|
Sm4的S盒取值 |
|
|
|
ECB加密 |
|
|
|
</summary> |
|
|
|
<param name="inch"></param> |
|
|
|
<param name="entity"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4Lt(System.Int64)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000VXRpbA.EncryptCBC(SafeCampus.Core.Utils.U000VXRpbA)"> |
|
|
|
<summary> |
|
|
|
线性变换 L |
|
|
|
CBC加密 |
|
|
|
</summary> |
|
|
|
<param name="ka"></param> |
|
|
|
<param name="entity"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4F(System.Int64,System.Int64,System.Int64,System.Int64,System.Int64)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000VXRpbA.Decrypt(SafeCampus.Core.Utils.U000VXRpbA)"> |
|
|
|
<summary> |
|
|
|
轮函数 F |
|
|
|
解密 |
|
|
|
</summary> |
|
|
|
<param name="x0"></param> |
|
|
|
<param name="x1"></param> |
|
|
|
<param name="x2"></param> |
|
|
|
<param name="x3"></param> |
|
|
|
<param name="rk"></param> |
|
|
|
<param name="entity"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4CalciRk(System.Int64)"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000VXRpbA.DecryptECB(SafeCampus.Core.Utils.U000VXRpbA)"> |
|
|
|
<summary> |
|
|
|
轮密钥rk |
|
|
|
ECB解密 |
|
|
|
</summary> |
|
|
|
<param name="ka"></param> |
|
|
|
<param name="entity"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.SetKey(System.Int64[],System.Byte[])"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U000VXRpbA.DecryptCBC(SafeCampus.Core.Utils.U000VXRpbA)"> |
|
|
|
<summary> |
|
|
|
加密密钥 |
|
|
|
</summary> |
|
|
|
<param name="SK"></param> |
|
|
|
<param name="key"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4OneRound(System.Int64[],System.Byte[],System.Byte[])"> |
|
|
|
<summary> |
|
|
|
解密函数 |
|
|
|
</summary> |
|
|
|
<param name="sk">轮密钥</param> |
|
|
|
<param name="input">输入分组的密文</param> |
|
|
|
<param name="output">输出的对应的分组明文</param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Padding(System.Byte[],System.Int32)"> |
|
|
|
<summary> |
|
|
|
补足 16 进制字符串的 0 字符,返回不带 0x 的16进制字符串 |
|
|
|
CBC解密 |
|
|
|
</summary> |
|
|
|
<param name="input"></param> |
|
|
|
<param name="mode">1表示加密,0表示解密</param> |
|
|
|
<param name="entity"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.SetKeyEnc(SafeCampus.Core.Utils.Sm4Context,System.Byte[])"> |
|
|
|
<member name="T:SafeCampus.Core.Utils.U000VXRpbA.Sm4CryptoEnum"> |
|
|
|
<summary> |
|
|
|
设置加密的key |
|
|
|
加密类型 |
|
|
|
</summary> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="key"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4SetKeyDec(SafeCampus.Core.Utils.Sm4Context,System.Byte[])"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.U000VXRpbA.Sm4CryptoEnum.ECB"> |
|
|
|
<summary> |
|
|
|
设置解密的key |
|
|
|
ECB(电码本模式) |
|
|
|
</summary> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="key"></param> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4CryptEcb(SafeCampus.Core.Utils.Sm4Context,System.Byte[])"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.U000VXRpbA.Sm4CryptoEnum.CBC"> |
|
|
|
<summary> |
|
|
|
ECB |
|
|
|
CBC(密码分组链接模式) |
|
|
|
</summary> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="input"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="M:SafeCampus.Core.Utils.SM4CryptoUtil.Sm4CryptCbc(SafeCampus.Core.Utils.Sm4Context,System.Byte[],System.Byte[])"> |
|
|
|
<member name="T:SafeCampus.Core.Utils.U00yVXRpbA"> |
|
|
|
<summary> |
|
|
|
CBC |
|
|
|
SM2加密解密 |
|
|
|
</summary> |
|
|
|
<param name="ctx"></param> |
|
|
|
<param name="iv"></param> |
|
|
|
<param name="input"></param> |
|
|
|
<returns></returns> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.Sm4Context"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.U00yVXRpbA.PublicKey"> |
|
|
|
<summary> |
|
|
|
SM4处理中心 |
|
|
|
公钥 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.Sm4Context.Mode"> |
|
|
|
<member name="F:SafeCampus.Core.Utils.U00yVXRpbA.PrivateKey"> |
|
|
|
<summary> |
|
|
|
1表示加密,0表示解密 |
|
|
|
私钥 |
|
|
|
</summary> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.Sm4Context.Key"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U00yVXRpbA.Encrypt(System.String)"> |
|
|
|
<summary> |
|
|
|
密钥 |
|
|
|
公钥加密明文 |
|
|
|
</summary> |
|
|
|
<param name="plainText">明文</param> |
|
|
|
<returns>密文</returns> |
|
|
|
</member> |
|
|
|
<member name="F:SafeCampus.Core.Utils.Sm4Context.IsPadding"> |
|
|
|
<member name="M:SafeCampus.Core.Utils.U00yVXRpbA.Decrypt(System.String)"> |
|
|
|
<summary> |
|
|
|
是否补足16进制字符串 |
|
|
|
私钥解密密文 |
|
|
|
</summary> |
|
|
|
<param name="cipherText">密文</param> |
|
|
|
<returns>明文</returns> |
|
|
|
</member> |
|
|
|
<member name="T:SafeCampus.Core.Utils.AvatarUtil"> |
|
|
|
<summary> |
|
|
|