ms-types 0.3.27 → 0.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -27,15 +27,25 @@ declare namespace cryptoUtils {
27
27
  /// - Parameters:
28
28
  /// - rsaPublicKey: RSA公钥
29
29
  /// - data: 要加密的数据
30
+ /// - keySize: RSA密钥位数
30
31
  /// - Returns: 加密后的数据
31
- function encryptWithRSA(rsaPublicKey: string, data: string): string;
32
+ function encryptWithRSA(
33
+ rsaPublicKey: string,
34
+ data: string,
35
+ keySize: number
36
+ ): string;
32
37
 
33
38
  /// 使用RSA私钥解密数据 默认使用PKCS1填充
34
39
  /// - Parameters:
35
40
  /// - rsaPrivateKey: RSA私钥
36
41
  /// - data: 要解密的数据
42
+ /// - keySize: RSA密钥位数
37
43
  /// - Returns: 解密后的数据
38
- function decryptWithRSA(rsaPrivateKey: string, data: string): string;
44
+ function decryptWithRSA(
45
+ rsaPrivateKey: string,
46
+ data: string,
47
+ keySize: number
48
+ ): string;
39
49
 
40
50
  /// 计算MD5值
41
51
  /// - Parameters: