tfhe 0.3.1 → 0.3.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,7 +1,7 @@
1
1
  {
2
2
  "name": "tfhe",
3
3
  "description": "TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE.",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "license": "BSD-3-Clause-Clear",
6
6
  "repository": {
7
7
  "type": "git",
package/tfhe.d.ts CHANGED
@@ -1376,6 +1376,14 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
1376
1376
 
1377
1377
  export interface InitOutput {
1378
1378
  readonly memory: WebAssembly.Memory;
1379
+ readonly __wbg_tfheconfig_free: (a: number) => void;
1380
+ readonly tfheconfigbuilder_all_disabled: () => number;
1381
+ readonly tfheconfigbuilder_enable_default_integers: (a: number) => number;
1382
+ readonly tfheconfigbuilder_enable_default_integers_small: (a: number) => number;
1383
+ readonly tfheconfigbuilder_enable_custom_integers: (a: number, b: number) => number;
1384
+ readonly tfheconfigbuilder_build: (a: number) => number;
1385
+ readonly __wbg_tfhe_free: (a: number) => void;
1386
+ readonly __wbg_tfheconfigbuilder_free: (a: number) => void;
1379
1387
  readonly __wbg_booleanciphertext_free: (a: number) => void;
1380
1388
  readonly __wbg_booleancompressedciphertext_free: (a: number) => void;
1381
1389
  readonly __wbg_booleanclientkey_free: (a: number) => void;
@@ -1405,7 +1413,40 @@ export interface InitOutput {
1405
1413
  readonly boolean_serialize_compressed_server_key: (a: number, b: number) => void;
1406
1414
  readonly boolean_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
1407
1415
  readonly __wbg_boolean_free: (a: number) => void;
1408
- readonly __wbg_tfhe_free: (a: number) => void;
1416
+ readonly __wbg_shortintciphertext_free: (a: number) => void;
1417
+ readonly __wbg_shortintcompressedciphertext_free: (a: number) => void;
1418
+ readonly __wbg_shortintclientkey_free: (a: number) => void;
1419
+ readonly __wbg_shortintpublickey_free: (a: number) => void;
1420
+ readonly __wbg_shortintcompressedpublickey_free: (a: number) => void;
1421
+ readonly __wbg_shortintcompressedserverkey_free: (a: number) => void;
1422
+ readonly __wbg_shortintparameters_free: (a: number) => void;
1423
+ readonly shortintparameters_new: (a: number) => number;
1424
+ readonly shortint_get_parameters: (a: number, b: number, c: number) => void;
1425
+ readonly shortint_get_parameters_small: (a: number, b: number, c: number) => void;
1426
+ readonly shortint_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => number;
1427
+ readonly shortint_new_client_key_from_seed_and_parameters: (a: number, b: number, c: number, d: number) => void;
1428
+ readonly shortint_new_client_key: (a: number) => number;
1429
+ readonly shortint_new_public_key: (a: number) => number;
1430
+ readonly shortint_new_compressed_public_key: (a: number) => number;
1431
+ readonly shortint_new_compressed_server_key: (a: number) => number;
1432
+ readonly shortint_encrypt: (a: number, b: number) => number;
1433
+ readonly shortint_encrypt_compressed: (a: number, b: number) => number;
1434
+ readonly shortint_decompress_ciphertext: (a: number) => number;
1435
+ readonly shortint_encrypt_with_public_key: (a: number, b: number) => number;
1436
+ readonly shortint_encrypt_with_compressed_public_key: (a: number, b: number) => number;
1437
+ readonly shortint_decrypt: (a: number, b: number) => number;
1438
+ readonly shortint_serialize_ciphertext: (a: number, b: number) => void;
1439
+ readonly shortint_deserialize_ciphertext: (a: number, b: number, c: number) => void;
1440
+ readonly shortint_serialize_compressed_ciphertext: (a: number, b: number) => void;
1441
+ readonly shortint_deserialize_compressed_ciphertext: (a: number, b: number, c: number) => void;
1442
+ readonly shortint_serialize_client_key: (a: number, b: number) => void;
1443
+ readonly shortint_deserialize_client_key: (a: number, b: number, c: number) => void;
1444
+ readonly shortint_serialize_public_key: (a: number, b: number) => void;
1445
+ readonly shortint_deserialize_public_key: (a: number, b: number, c: number) => void;
1446
+ readonly shortint_serialize_compressed_public_key: (a: number, b: number) => void;
1447
+ readonly shortint_deserialize_compressed_public_key: (a: number, b: number, c: number) => void;
1448
+ readonly shortint_serialize_compressed_server_key: (a: number, b: number) => void;
1449
+ readonly shortint_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
1409
1450
  readonly __wbg_fheuint128_free: (a: number) => void;
1410
1451
  readonly fheuint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
1411
1452
  readonly fheuint128_encrypt_with_public_key: (a: number, b: number, c: number) => void;
@@ -1518,32 +1559,6 @@ export interface InitOutput {
1518
1559
  readonly compactfheuint64list_expand: (a: number, b: number) => void;
1519
1560
  readonly compactfheuint64list_serialize: (a: number, b: number) => void;
1520
1561
  readonly compactfheuint64list_deserialize: (a: number, b: number, c: number) => void;
1521
- readonly __wbg_fheuint256_free: (a: number) => void;
1522
- readonly __wbg_fheuint8_free: (a: number) => void;
1523
- readonly __wbg_fheuint16_free: (a: number) => void;
1524
- readonly __wbg_fheuint32_free: (a: number) => void;
1525
- readonly __wbg_fheuint64_free: (a: number) => void;
1526
- readonly __wbg_compactfheuint128list_free: (a: number) => void;
1527
- readonly __wbg_compressedfheuint256_free: (a: number) => void;
1528
- readonly __wbg_compactfheuint256_free: (a: number) => void;
1529
- readonly __wbg_compactfheuint256list_free: (a: number) => void;
1530
- readonly __wbg_compressedfheuint8_free: (a: number) => void;
1531
- readonly __wbg_compactfheuint8_free: (a: number) => void;
1532
- readonly __wbg_compactfheuint8list_free: (a: number) => void;
1533
- readonly __wbg_compressedfheuint16_free: (a: number) => void;
1534
- readonly __wbg_compactfheuint16_free: (a: number) => void;
1535
- readonly __wbg_compactfheuint16list_free: (a: number) => void;
1536
- readonly __wbg_compressedfheuint32_free: (a: number) => void;
1537
- readonly __wbg_compactfheuint32_free: (a: number) => void;
1538
- readonly __wbg_compactfheuint32list_free: (a: number) => void;
1539
- readonly __wbg_compressedfheuint64_free: (a: number) => void;
1540
- readonly __wbg_compactfheuint64_free: (a: number) => void;
1541
- readonly __wbg_compactfheuint64list_free: (a: number) => void;
1542
- readonly compressedfheuint256_decompress: (a: number, b: number) => void;
1543
- readonly compressedfheuint8_decompress: (a: number, b: number) => void;
1544
- readonly compressedfheuint16_decompress: (a: number, b: number) => void;
1545
- readonly compressedfheuint32_decompress: (a: number, b: number) => void;
1546
- readonly compressedfheuint64_decompress: (a: number, b: number) => void;
1547
1562
  readonly init_panic_hook: () => void;
1548
1563
  readonly __wbg_tfheclientkey_free: (a: number) => void;
1549
1564
  readonly tfheclientkey_generate: (a: number, b: number) => void;
@@ -1572,52 +1587,37 @@ export interface InitOutput {
1572
1587
  readonly tfhecompressedcompactpublickey_serialize: (a: number, b: number) => void;
1573
1588
  readonly tfhecompressedcompactpublickey_deserialize: (a: number, b: number, c: number) => void;
1574
1589
  readonly tfhecompressedcompactpublickey_decompress: (a: number, b: number) => void;
1575
- readonly __wbg_tfheconfig_free: (a: number) => void;
1576
- readonly tfheconfigbuilder_all_disabled: () => number;
1577
- readonly tfheconfigbuilder_enable_default_integers: (a: number) => number;
1578
- readonly tfheconfigbuilder_enable_default_integers_small: (a: number) => number;
1579
- readonly tfheconfigbuilder_enable_custom_integers: (a: number, b: number) => number;
1580
- readonly tfheconfigbuilder_build: (a: number) => number;
1581
- readonly __wbg_tfheconfigbuilder_free: (a: number) => void;
1582
- readonly __wbg_shortintciphertext_free: (a: number) => void;
1583
- readonly __wbg_shortintcompressedciphertext_free: (a: number) => void;
1584
- readonly __wbg_shortintclientkey_free: (a: number) => void;
1585
- readonly __wbg_shortintpublickey_free: (a: number) => void;
1586
- readonly __wbg_shortintcompressedpublickey_free: (a: number) => void;
1587
- readonly __wbg_shortintcompressedserverkey_free: (a: number) => void;
1588
- readonly __wbg_shortintparameters_free: (a: number) => void;
1589
- readonly shortintparameters_new: (a: number) => number;
1590
- readonly shortint_get_parameters: (a: number, b: number, c: number) => void;
1591
- readonly shortint_get_parameters_small: (a: number, b: number, c: number) => void;
1592
- readonly shortint_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => number;
1593
- readonly shortint_new_client_key_from_seed_and_parameters: (a: number, b: number, c: number, d: number) => void;
1594
- readonly shortint_new_client_key: (a: number) => number;
1595
- readonly shortint_new_public_key: (a: number) => number;
1596
- readonly shortint_new_compressed_public_key: (a: number) => number;
1597
- readonly shortint_new_compressed_server_key: (a: number) => number;
1598
- readonly shortint_encrypt: (a: number, b: number) => number;
1599
- readonly shortint_encrypt_compressed: (a: number, b: number) => number;
1600
- readonly shortint_decompress_ciphertext: (a: number) => number;
1601
- readonly shortint_encrypt_with_public_key: (a: number, b: number) => number;
1602
- readonly shortint_encrypt_with_compressed_public_key: (a: number, b: number) => number;
1603
- readonly shortint_decrypt: (a: number, b: number) => number;
1604
- readonly shortint_serialize_ciphertext: (a: number, b: number) => void;
1605
- readonly shortint_deserialize_ciphertext: (a: number, b: number, c: number) => void;
1606
- readonly shortint_serialize_compressed_ciphertext: (a: number, b: number) => void;
1607
- readonly shortint_deserialize_compressed_ciphertext: (a: number, b: number, c: number) => void;
1608
- readonly shortint_serialize_client_key: (a: number, b: number) => void;
1609
- readonly shortint_deserialize_client_key: (a: number, b: number, c: number) => void;
1610
- readonly shortint_serialize_public_key: (a: number, b: number) => void;
1611
- readonly shortint_deserialize_public_key: (a: number, b: number, c: number) => void;
1612
- readonly shortint_serialize_compressed_public_key: (a: number, b: number) => void;
1613
- readonly shortint_deserialize_compressed_public_key: (a: number, b: number, c: number) => void;
1614
- readonly shortint_serialize_compressed_server_key: (a: number, b: number) => void;
1615
- readonly shortint_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
1590
+ readonly __wbg_compactfheuint128list_free: (a: number) => void;
1591
+ readonly __wbg_compressedfheuint256_free: (a: number) => void;
1592
+ readonly __wbg_compactfheuint256_free: (a: number) => void;
1593
+ readonly __wbg_compactfheuint256list_free: (a: number) => void;
1594
+ readonly __wbg_compressedfheuint8_free: (a: number) => void;
1595
+ readonly __wbg_compactfheuint8_free: (a: number) => void;
1596
+ readonly __wbg_compactfheuint8list_free: (a: number) => void;
1597
+ readonly __wbg_compressedfheuint16_free: (a: number) => void;
1598
+ readonly __wbg_compactfheuint16_free: (a: number) => void;
1599
+ readonly __wbg_compactfheuint16list_free: (a: number) => void;
1600
+ readonly __wbg_compressedfheuint32_free: (a: number) => void;
1601
+ readonly __wbg_compactfheuint32_free: (a: number) => void;
1602
+ readonly __wbg_compactfheuint32list_free: (a: number) => void;
1603
+ readonly __wbg_compressedfheuint64_free: (a: number) => void;
1604
+ readonly __wbg_compactfheuint64_free: (a: number) => void;
1605
+ readonly __wbg_compactfheuint64list_free: (a: number) => void;
1606
+ readonly __wbg_fheuint256_free: (a: number) => void;
1607
+ readonly __wbg_fheuint8_free: (a: number) => void;
1608
+ readonly __wbg_fheuint16_free: (a: number) => void;
1609
+ readonly __wbg_fheuint32_free: (a: number) => void;
1610
+ readonly __wbg_fheuint64_free: (a: number) => void;
1611
+ readonly compressedfheuint256_decompress: (a: number, b: number) => void;
1612
+ readonly compressedfheuint8_decompress: (a: number, b: number) => void;
1613
+ readonly compressedfheuint16_decompress: (a: number, b: number) => void;
1614
+ readonly compressedfheuint32_decompress: (a: number, b: number) => void;
1615
+ readonly compressedfheuint64_decompress: (a: number, b: number) => void;
1616
1616
  readonly __wbg_shortint_free: (a: number) => void;
1617
- readonly __wbindgen_malloc: (a: number, b: number) => number;
1618
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1617
+ readonly __wbindgen_malloc: (a: number) => number;
1618
+ readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
1619
1619
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
1620
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1620
+ readonly __wbindgen_free: (a: number, b: number) => void;
1621
1621
  readonly __wbindgen_exn_store: (a: number) => void;
1622
1622
  }
1623
1623
 
package/tfhe.js CHANGED
@@ -4,10 +4,19 @@ const heap = new Array(128).fill(undefined);
4
4
 
5
5
  heap.push(undefined, null, true, false);
6
6
 
7
- function getObject(idx) { return heap[idx]; }
8
-
9
7
  let heap_next = heap.length;
10
8
 
9
+ function addHeapObject(obj) {
10
+ if (heap_next === heap.length) heap.push(heap.length + 1);
11
+ const idx = heap_next;
12
+ heap_next = heap[idx];
13
+
14
+ heap[idx] = obj;
15
+ return idx;
16
+ }
17
+
18
+ function getObject(idx) { return heap[idx]; }
19
+
11
20
  function dropObject(idx) {
12
21
  if (idx < 132) return;
13
22
  heap[idx] = heap_next;
@@ -38,15 +47,6 @@ function getStringFromWasm0(ptr, len) {
38
47
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
39
48
  }
40
49
 
41
- function addHeapObject(obj) {
42
- if (heap_next === heap.length) heap.push(heap.length + 1);
43
- const idx = heap_next;
44
- heap_next = heap[idx];
45
-
46
- heap[idx] = obj;
47
- return idx;
48
- }
49
-
50
50
  function isLikeNone(x) {
51
51
  return x === undefined || x === null;
52
52
  }
@@ -155,14 +155,14 @@ function passStringToWasm0(arg, malloc, realloc) {
155
155
 
156
156
  if (realloc === undefined) {
157
157
  const buf = cachedTextEncoder.encode(arg);
158
- const ptr = malloc(buf.length, 1) >>> 0;
158
+ const ptr = malloc(buf.length) >>> 0;
159
159
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
160
160
  WASM_VECTOR_LEN = buf.length;
161
161
  return ptr;
162
162
  }
163
163
 
164
164
  let len = arg.length;
165
- let ptr = malloc(len, 1) >>> 0;
165
+ let ptr = malloc(len) >>> 0;
166
166
 
167
167
  const mem = getUint8Memory0();
168
168
 
@@ -178,7 +178,7 @@ function passStringToWasm0(arg, malloc, realloc) {
178
178
  if (offset !== 0) {
179
179
  arg = arg.slice(offset);
180
180
  }
181
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
181
+ ptr = realloc(ptr, len, len = offset + arg.length * 3) >>> 0;
182
182
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
183
183
  const ret = encodeString(arg, view);
184
184
 
@@ -202,7 +202,7 @@ function getArrayU8FromWasm0(ptr, len) {
202
202
  }
203
203
 
204
204
  function passArray8ToWasm0(arg, malloc) {
205
- const ptr = malloc(arg.length * 1, 1) >>> 0;
205
+ const ptr = malloc(arg.length * 1) >>> 0;
206
206
  getUint8Memory0().set(arg, ptr / 1);
207
207
  WASM_VECTOR_LEN = arg.length;
208
208
  return ptr;
@@ -218,7 +218,7 @@ function getUint32Memory0() {
218
218
  }
219
219
 
220
220
  function passArrayJsValueToWasm0(array, malloc) {
221
- const ptr = malloc(array.length * 4, 4) >>> 0;
221
+ const ptr = malloc(array.length * 4) >>> 0;
222
222
  const mem = getUint32Memory0();
223
223
  for (let i = 0; i < array.length; i++) {
224
224
  mem[ptr / 4 + i] = addHeapObject(array[i]);
@@ -248,14 +248,14 @@ function getUint16Memory0() {
248
248
  }
249
249
 
250
250
  function passArray16ToWasm0(arg, malloc) {
251
- const ptr = malloc(arg.length * 2, 2) >>> 0;
251
+ const ptr = malloc(arg.length * 2) >>> 0;
252
252
  getUint16Memory0().set(arg, ptr / 2);
253
253
  WASM_VECTOR_LEN = arg.length;
254
254
  return ptr;
255
255
  }
256
256
 
257
257
  function passArray32ToWasm0(arg, malloc) {
258
- const ptr = malloc(arg.length * 4, 4) >>> 0;
258
+ const ptr = malloc(arg.length * 4) >>> 0;
259
259
  getUint32Memory0().set(arg, ptr / 4);
260
260
  WASM_VECTOR_LEN = arg.length;
261
261
  return ptr;
@@ -271,7 +271,7 @@ function getBigUint64Memory0() {
271
271
  }
272
272
 
273
273
  function passArray64ToWasm0(arg, malloc) {
274
- const ptr = malloc(arg.length * 8, 8) >>> 0;
274
+ const ptr = malloc(arg.length * 8) >>> 0;
275
275
  getBigUint64Memory0().set(arg, ptr / 8);
276
276
  WASM_VECTOR_LEN = arg.length;
277
277
  return ptr;
@@ -5100,17 +5100,6 @@ async function __wbg_load(module, imports) {
5100
5100
  function __wbg_get_imports() {
5101
5101
  const imports = {};
5102
5102
  imports.wbg = {};
5103
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
5104
- takeObject(arg0);
5105
- };
5106
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
5107
- const ret = new Error(getStringFromWasm0(arg0, arg1));
5108
- return addHeapObject(ret);
5109
- };
5110
- imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
5111
- const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
5112
- return addHeapObject(ret);
5113
- };
5114
5103
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
5115
5104
  const ret = BigInt.asUintN(64, arg0);
5116
5105
  return addHeapObject(ret);
@@ -5119,52 +5108,63 @@ function __wbg_get_imports() {
5119
5108
  const ret = getObject(arg0) >> getObject(arg1);
5120
5109
  return addHeapObject(ret);
5121
5110
  };
5111
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
5112
+ takeObject(arg0);
5113
+ };
5122
5114
  imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
5123
5115
  const ret = getObject(arg0) === getObject(arg1);
5124
5116
  return ret;
5125
5117
  };
5126
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
5127
- const ret = getObject(arg0);
5118
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
5119
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
5128
5120
  return addHeapObject(ret);
5129
5121
  };
5130
- imports.wbg.__wbindgen_bigint_from_str = function(arg0, arg1) {
5131
- const ret = BigInt(getStringFromWasm0(arg0, arg1));
5122
+ imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
5123
+ const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
5132
5124
  return addHeapObject(ret);
5133
5125
  };
5134
- imports.wbg.__wbindgen_bit_and = function(arg0, arg1) {
5135
- const ret = getObject(arg0) & getObject(arg1);
5126
+ imports.wbg.__wbg_fheuint32_new = function(arg0) {
5127
+ const ret = FheUint32.__wrap(arg0);
5136
5128
  return addHeapObject(ret);
5137
5129
  };
5138
- imports.wbg.__wbindgen_shl = function(arg0, arg1) {
5139
- const ret = getObject(arg0) << getObject(arg1);
5130
+ imports.wbg.__wbg_fheuint16_new = function(arg0) {
5131
+ const ret = FheUint16.__wrap(arg0);
5140
5132
  return addHeapObject(ret);
5141
5133
  };
5142
- imports.wbg.__wbindgen_add = function(arg0, arg1) {
5143
- const ret = getObject(arg0) + getObject(arg1);
5134
+ imports.wbg.__wbg_fheuint8_new = function(arg0) {
5135
+ const ret = FheUint8.__wrap(arg0);
5136
+ return addHeapObject(ret);
5137
+ };
5138
+ imports.wbg.__wbg_fheuint256_new = function(arg0) {
5139
+ const ret = FheUint256.__wrap(arg0);
5140
+ return addHeapObject(ret);
5141
+ };
5142
+ imports.wbg.__wbg_fheuint64_new = function(arg0) {
5143
+ const ret = FheUint64.__wrap(arg0);
5144
5144
  return addHeapObject(ret);
5145
5145
  };
5146
5146
  imports.wbg.__wbg_fheuint128_new = function(arg0) {
5147
5147
  const ret = FheUint128.__wrap(arg0);
5148
5148
  return addHeapObject(ret);
5149
5149
  };
5150
- imports.wbg.__wbg_fheuint256_new = function(arg0) {
5151
- const ret = FheUint256.__wrap(arg0);
5150
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
5151
+ const ret = getObject(arg0);
5152
5152
  return addHeapObject(ret);
5153
5153
  };
5154
- imports.wbg.__wbg_fheuint8_new = function(arg0) {
5155
- const ret = FheUint8.__wrap(arg0);
5154
+ imports.wbg.__wbindgen_bigint_from_str = function(arg0, arg1) {
5155
+ const ret = BigInt(getStringFromWasm0(arg0, arg1));
5156
5156
  return addHeapObject(ret);
5157
5157
  };
5158
- imports.wbg.__wbg_fheuint16_new = function(arg0) {
5159
- const ret = FheUint16.__wrap(arg0);
5158
+ imports.wbg.__wbindgen_bit_and = function(arg0, arg1) {
5159
+ const ret = getObject(arg0) & getObject(arg1);
5160
5160
  return addHeapObject(ret);
5161
5161
  };
5162
- imports.wbg.__wbg_fheuint32_new = function(arg0) {
5163
- const ret = FheUint32.__wrap(arg0);
5162
+ imports.wbg.__wbindgen_shl = function(arg0, arg1) {
5163
+ const ret = getObject(arg0) << getObject(arg1);
5164
5164
  return addHeapObject(ret);
5165
5165
  };
5166
- imports.wbg.__wbg_fheuint64_new = function(arg0) {
5167
- const ret = FheUint64.__wrap(arg0);
5166
+ imports.wbg.__wbindgen_add = function(arg0, arg1) {
5167
+ const ret = getObject(arg0) + getObject(arg1);
5168
5168
  return addHeapObject(ret);
5169
5169
  };
5170
5170
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
@@ -5186,16 +5186,10 @@ function __wbg_get_imports() {
5186
5186
  deferred0_1 = arg1;
5187
5187
  console.error(getStringFromWasm0(arg0, arg1));
5188
5188
  } finally {
5189
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5189
+ wasm.__wbindgen_free(deferred0_0, deferred0_1);
5190
5190
  }
5191
5191
  };
5192
- imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
5193
- getObject(arg0).getRandomValues(getObject(arg1));
5194
- }, arguments) };
5195
- imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
5196
- getObject(arg0).randomFillSync(takeObject(arg1));
5197
- }, arguments) };
5198
- imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
5192
+ imports.wbg.__wbg_crypto_d05b68a3572bb8ca = function(arg0) {
5199
5193
  const ret = getObject(arg0).crypto;
5200
5194
  return addHeapObject(ret);
5201
5195
  };
@@ -5204,15 +5198,15 @@ function __wbg_get_imports() {
5204
5198
  const ret = typeof(val) === 'object' && val !== null;
5205
5199
  return ret;
5206
5200
  };
5207
- imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
5201
+ imports.wbg.__wbg_process_b02b3570280d0366 = function(arg0) {
5208
5202
  const ret = getObject(arg0).process;
5209
5203
  return addHeapObject(ret);
5210
5204
  };
5211
- imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
5205
+ imports.wbg.__wbg_versions_c1cb42213cedf0f5 = function(arg0) {
5212
5206
  const ret = getObject(arg0).versions;
5213
5207
  return addHeapObject(ret);
5214
5208
  };
5215
- imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
5209
+ imports.wbg.__wbg_node_43b1089f407e4ec2 = function(arg0) {
5216
5210
  const ret = getObject(arg0).node;
5217
5211
  return addHeapObject(ret);
5218
5212
  };
@@ -5220,11 +5214,11 @@ function __wbg_get_imports() {
5220
5214
  const ret = typeof(getObject(arg0)) === 'string';
5221
5215
  return ret;
5222
5216
  };
5223
- imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
5217
+ imports.wbg.__wbg_msCrypto_10fc94afee92bd76 = function(arg0) {
5224
5218
  const ret = getObject(arg0).msCrypto;
5225
5219
  return addHeapObject(ret);
5226
5220
  };
5227
- imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
5221
+ imports.wbg.__wbg_require_9a7e0f667ead4995 = function() { return handleError(function () {
5228
5222
  const ret = module.require;
5229
5223
  return addHeapObject(ret);
5230
5224
  }, arguments) };
@@ -5236,27 +5230,33 @@ function __wbg_get_imports() {
5236
5230
  const ret = getStringFromWasm0(arg0, arg1);
5237
5231
  return addHeapObject(ret);
5238
5232
  };
5239
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
5233
+ imports.wbg.__wbg_randomFillSync_b70ccbdf4926a99d = function() { return handleError(function (arg0, arg1) {
5234
+ getObject(arg0).randomFillSync(takeObject(arg1));
5235
+ }, arguments) };
5236
+ imports.wbg.__wbg_getRandomValues_7e42b4fb8779dc6d = function() { return handleError(function (arg0, arg1) {
5237
+ getObject(arg0).getRandomValues(getObject(arg1));
5238
+ }, arguments) };
5239
+ imports.wbg.__wbg_newnoargs_c9e6043b8ad84109 = function(arg0, arg1) {
5240
5240
  const ret = new Function(getStringFromWasm0(arg0, arg1));
5241
5241
  return addHeapObject(ret);
5242
5242
  };
5243
- imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
5243
+ imports.wbg.__wbg_call_557a2f2deacc4912 = function() { return handleError(function (arg0, arg1) {
5244
5244
  const ret = getObject(arg0).call(getObject(arg1));
5245
5245
  return addHeapObject(ret);
5246
5246
  }, arguments) };
5247
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
5247
+ imports.wbg.__wbg_self_742dd6eab3e9211e = function() { return handleError(function () {
5248
5248
  const ret = self.self;
5249
5249
  return addHeapObject(ret);
5250
5250
  }, arguments) };
5251
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
5251
+ imports.wbg.__wbg_window_c409e731db53a0e2 = function() { return handleError(function () {
5252
5252
  const ret = window.window;
5253
5253
  return addHeapObject(ret);
5254
5254
  }, arguments) };
5255
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
5255
+ imports.wbg.__wbg_globalThis_b70c095388441f2d = function() { return handleError(function () {
5256
5256
  const ret = globalThis.globalThis;
5257
5257
  return addHeapObject(ret);
5258
5258
  }, arguments) };
5259
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
5259
+ imports.wbg.__wbg_global_1c72617491ed7194 = function() { return handleError(function () {
5260
5260
  const ret = global.global;
5261
5261
  return addHeapObject(ret);
5262
5262
  }, arguments) };
@@ -5264,30 +5264,30 @@ function __wbg_get_imports() {
5264
5264
  const ret = getObject(arg0) === undefined;
5265
5265
  return ret;
5266
5266
  };
5267
- imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
5267
+ imports.wbg.__wbg_call_587b30eea3e09332 = function() { return handleError(function (arg0, arg1, arg2) {
5268
5268
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
5269
5269
  return addHeapObject(ret);
5270
5270
  }, arguments) };
5271
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
5271
+ imports.wbg.__wbg_buffer_55ba7a6b1b92e2ac = function(arg0) {
5272
5272
  const ret = getObject(arg0).buffer;
5273
5273
  return addHeapObject(ret);
5274
5274
  };
5275
- imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
5275
+ imports.wbg.__wbg_newwithbyteoffsetandlength_88d1d8be5df94b9b = function(arg0, arg1, arg2) {
5276
5276
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
5277
5277
  return addHeapObject(ret);
5278
5278
  };
5279
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
5279
+ imports.wbg.__wbg_new_09938a7d020f049b = function(arg0) {
5280
5280
  const ret = new Uint8Array(getObject(arg0));
5281
5281
  return addHeapObject(ret);
5282
5282
  };
5283
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
5283
+ imports.wbg.__wbg_set_3698e3ca519b3c3c = function(arg0, arg1, arg2) {
5284
5284
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
5285
5285
  };
5286
- imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
5286
+ imports.wbg.__wbg_newwithlength_89eeca401d8918c2 = function(arg0) {
5287
5287
  const ret = new Uint8Array(arg0 >>> 0);
5288
5288
  return addHeapObject(ret);
5289
5289
  };
5290
- imports.wbg.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
5290
+ imports.wbg.__wbg_subarray_d82be056deb4ad27 = function(arg0, arg1, arg2) {
5291
5291
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
5292
5292
  return addHeapObject(ret);
5293
5293
  };
package/tfhe_bg.wasm CHANGED
Binary file