@digitaldefiance/ecies-lib 4.5.1 → 4.5.2

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": "@digitaldefiance/ecies-lib",
3
- "version": "4.5.1",
3
+ "version": "4.5.2",
4
4
  "description": "Digital Defiance ECIES Library",
5
5
  "homepage": "https://github.com/Digital-Defiance/ecies-lib",
6
6
  "repository": {
@@ -219,8 +219,8 @@ async function generateDeterministicKeyPair(seed, bits = 3072, primeTestIteratio
219
219
  if (!seed || seed.length < 32) {
220
220
  throw new Error(`Seed must be at least 32 bytes, got ${seed?.length || 0}`);
221
221
  }
222
- if (bits < 2048) {
223
- throw new Error(`Key size must be at least 2048 bits, got ${bits}`);
222
+ if (bits < 1024) {
223
+ throw new Error(`Key size must be at least 1024 bits, got ${bits}`);
224
224
  }
225
225
  if (bits % 2 !== 0) {
226
226
  throw new Error(`Key size must be even, got ${bits}`);