@ocap/mcrypto 1.29.13 → 1.29.14

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.
@@ -9,7 +9,7 @@ var AesCrypter = class extends crypter_default {
9
9
  encrypt(message, secret, encoding = "hex") {
10
10
  const keyBuffer = sha3_default.hash256(secret, 1, "buffer");
11
11
  const key = Uint8Array.from(keyBuffer);
12
- const cipher = crypto.createCipheriv("aes-256-ecb", key, null);
12
+ const cipher = crypto.createCipheriv("aes-256-ecb", key, "");
13
13
  cipher.setAutoPadding(true);
14
14
  const output = cipher.update(Uint8Array.from(toBuffer(message)));
15
15
  return encode(Uint8Array.from(Buffer.concat([Uint8Array.from(output), Uint8Array.from(cipher.final())])), encoding);
@@ -17,7 +17,7 @@ var AesCrypter = class extends crypter_default {
17
17
  decrypt(message, secret, encoding = "hex") {
18
18
  const keyBuffer = sha3_default.hash256(secret, 1, "buffer");
19
19
  const key = Uint8Array.from(keyBuffer);
20
- const decipher = crypto.createDecipheriv("aes-256-ecb", key, null);
20
+ const decipher = crypto.createDecipheriv("aes-256-ecb", key, "");
21
21
  decipher.setAutoPadding(true);
22
22
  const output = decipher.update(Uint8Array.from(toBuffer(message)));
23
23
  return encode(Uint8Array.from(Buffer.concat([Uint8Array.from(output), Uint8Array.from(decipher.final())])), encoding);
@@ -12,7 +12,7 @@ var AesCrypter = class extends require_protocols_crypter.default {
12
12
  encrypt(message, secret, encoding = "hex") {
13
13
  const keyBuffer = require_hasher_sha3.default.hash256(secret, 1, "buffer");
14
14
  const key = Uint8Array.from(keyBuffer);
15
- const cipher = node_crypto.default.createCipheriv("aes-256-ecb", key, null);
15
+ const cipher = node_crypto.default.createCipheriv("aes-256-ecb", key, "");
16
16
  cipher.setAutoPadding(true);
17
17
  const output = cipher.update(Uint8Array.from((0, _ocap_util.toBuffer)(message)));
18
18
  return require_encode.encode(Uint8Array.from(Buffer.concat([Uint8Array.from(output), Uint8Array.from(cipher.final())])), encoding);
@@ -20,7 +20,7 @@ var AesCrypter = class extends require_protocols_crypter.default {
20
20
  decrypt(message, secret, encoding = "hex") {
21
21
  const keyBuffer = require_hasher_sha3.default.hash256(secret, 1, "buffer");
22
22
  const key = Uint8Array.from(keyBuffer);
23
- const decipher = node_crypto.default.createDecipheriv("aes-256-ecb", key, null);
23
+ const decipher = node_crypto.default.createDecipheriv("aes-256-ecb", key, "");
24
24
  decipher.setAutoPadding(true);
25
25
  const output = decipher.update(Uint8Array.from((0, _ocap_util.toBuffer)(message)));
26
26
  return require_encode.encode(Uint8Array.from(Buffer.concat([Uint8Array.from(output), Uint8Array.from(decipher.final())])), encoding);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/mcrypto",
3
- "version": "1.29.13",
3
+ "version": "1.29.14",
4
4
  "type": "module",
5
5
  "description": "Crypto lib that provides signer,crypter,hasher interface",
6
6
  "keywords": [
@@ -48,7 +48,7 @@
48
48
  "esm"
49
49
  ],
50
50
  "devDependencies": {
51
- "@ocap/e2e-test": "1.29.13",
51
+ "@ocap/e2e-test": "1.29.14",
52
52
  "@types/crypto-js": "^4.2.2",
53
53
  "@types/elliptic": "^6.4.18",
54
54
  "@types/node": "^22.7.5",
@@ -76,9 +76,9 @@
76
76
  "dependencies": {
77
77
  "@noble/ed25519": "^3.0.0",
78
78
  "@noble/hashes": "^2.0.1",
79
- "@ocap/util": "1.29.13",
79
+ "@ocap/util": "1.29.14",
80
80
  "@simplewebauthn/server": "^13.0.0",
81
- "bn.js": "5.2.2",
81
+ "bn.js": "5.2.3",
82
82
  "crypto-js": "^4.2.0",
83
83
  "elliptic": "^6.6.1",
84
84
  "eth-lib": "^0.2.8",
@@ -86,7 +86,7 @@
86
86
  "randombytes": "^2.1.0"
87
87
  },
88
88
  "resolutions": {
89
- "bn.js": "5.2.2",
89
+ "bn.js": "5.2.3",
90
90
  "elliptic": "6.5.3"
91
91
  }
92
92
  }