dream-common 1.1.47 → 1.1.48

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.
@@ -114,8 +114,8 @@ export function decryptSecureData(request, privateKey, useBase64 = true) {
114
114
  // 3. 处理 encData(base64 → hex)
115
115
  const encDataHex = useBase64 ? base64ToHex(request.encData) : request.encData;
116
116
  // 4. SM4 解密
117
- const decrypted = sm4.decrypt(encDataHex, keyHax, {
118
- iv: lvHax,
117
+ const decrypted = sm4.decrypt(encDataHex, keyHex, {
118
+ iv: ivHex,
119
119
  mode: 'cbc',
120
120
  padding: 'pkcs#7',
121
121
  cipherType: 1, // input is hex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dream-common",
3
- "version": "1.1.47",
3
+ "version": "1.1.48",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {