xwing-wasm 0.2.3 → 0.3.0

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/README.md CHANGED
@@ -54,7 +54,7 @@ assert_eq!(enc.shared_key, *ss);
54
54
 
55
55
  - Secret key and shared key **zeroized** on drop
56
56
  - Decapsulate returns `Zeroizing<[u8; 32]>` for automatic cleanup
57
- - Based on [`x-wing`](https://crates.io/crates/x-wing) by **RustCrypto** (unaudited)
57
+ - Based on [`x-wing`](https://crates.io/crates/x-wing) v0.1.0 by **RustCrypto** (unaudited)
58
58
  - Reference: [X-Wing: The Hybrid KEM You've Been Looking For](https://eprint.iacr.org/2024/039)
59
59
 
60
60
  ## License
@@ -38,7 +38,7 @@ export function generateKeypair() {
38
38
  const ret = wasm.generateKeypair();
39
39
  return ret;
40
40
  }
41
- export function __wbg_Error_9dc85fe1bc224456(arg0, arg1) {
41
+ export function __wbg_Error_92b29b0548f8b746(arg0, arg1) {
42
42
  const ret = Error(getStringFromWasm0(arg0, arg1));
43
43
  return ret;
44
44
  }
@@ -49,24 +49,24 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
49
49
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
50
50
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
51
51
  }
52
- export function __wbg___wbindgen_throw_bbadd78c1bac3a77(arg0, arg1) {
52
+ export function __wbg___wbindgen_throw_344f42d3211c4765(arg0, arg1) {
53
53
  throw new Error(getStringFromWasm0(arg0, arg1));
54
54
  }
55
- export function __wbg_getRandomValues_76dfc69825c9c552() { return handleError(function (arg0, arg1) {
55
+ export function __wbg_getRandomValues_cc7f052a444bb2ce() { return handleError(function (arg0, arg1) {
56
56
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
57
57
  }, arguments); }
58
- export function __wbg_new_0b303268aa395a38() {
58
+ export function __wbg_new_32b398fb48b6d94a() {
59
59
  const ret = new Array();
60
60
  return ret;
61
61
  }
62
- export function __wbg_new_20b778a4c5c691c3() {
62
+ export function __wbg_new_da52cf8fe3429cb2() {
63
63
  const ret = new Object();
64
64
  return ret;
65
65
  }
66
66
  export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
67
67
  arg0[arg1] = arg2;
68
68
  }
69
- export function __wbg_set_da33c120a6584674(arg0, arg1, arg2) {
69
+ export function __wbg_set_8a16b38e4805b298(arg0, arg1, arg2) {
70
70
  arg0[arg1 >>> 0] = arg2;
71
71
  }
72
72
  export function __wbindgen_cast_0000000000000001(arg0) {
package/node/xwing.js CHANGED
@@ -46,7 +46,7 @@ exports.generateKeypair = generateKeypair;
46
46
  function __wbg_get_imports() {
47
47
  const import0 = {
48
48
  __proto__: null,
49
- __wbg_Error_9dc85fe1bc224456: function(arg0, arg1) {
49
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
50
50
  const ret = Error(getStringFromWasm0(arg0, arg1));
51
51
  return ret;
52
52
  },
@@ -57,24 +57,24 @@ function __wbg_get_imports() {
57
57
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
58
58
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
59
59
  },
60
- __wbg___wbindgen_throw_bbadd78c1bac3a77: function(arg0, arg1) {
60
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
61
61
  throw new Error(getStringFromWasm0(arg0, arg1));
62
62
  },
63
- __wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
63
+ __wbg_getRandomValues_cc7f052a444bb2ce: function() { return handleError(function (arg0, arg1) {
64
64
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
65
65
  }, arguments); },
66
- __wbg_new_0b303268aa395a38: function() {
66
+ __wbg_new_32b398fb48b6d94a: function() {
67
67
  const ret = new Array();
68
68
  return ret;
69
69
  },
70
- __wbg_new_20b778a4c5c691c3: function() {
70
+ __wbg_new_da52cf8fe3429cb2: function() {
71
71
  const ret = new Object();
72
72
  return ret;
73
73
  },
74
74
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
75
75
  arg0[arg1] = arg2;
76
76
  },
77
- __wbg_set_da33c120a6584674: function(arg0, arg1, arg2) {
77
+ __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
78
78
  arg0[arg1 >>> 0] = arg2;
79
79
  },
80
80
  __wbindgen_cast_0000000000000001: function(arg0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xwing-wasm",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "X-Wing hybrid KEM (ML-KEM-768 + X25519) via Rust/WASM",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
package/web/xwing.js CHANGED
@@ -43,7 +43,7 @@ export function generateKeypair() {
43
43
  function __wbg_get_imports() {
44
44
  const import0 = {
45
45
  __proto__: null,
46
- __wbg_Error_9dc85fe1bc224456: function(arg0, arg1) {
46
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
47
47
  const ret = Error(getStringFromWasm0(arg0, arg1));
48
48
  return ret;
49
49
  },
@@ -54,24 +54,24 @@ function __wbg_get_imports() {
54
54
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
55
55
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
56
56
  },
57
- __wbg___wbindgen_throw_bbadd78c1bac3a77: function(arg0, arg1) {
57
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
58
58
  throw new Error(getStringFromWasm0(arg0, arg1));
59
59
  },
60
- __wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
60
+ __wbg_getRandomValues_cc7f052a444bb2ce: function() { return handleError(function (arg0, arg1) {
61
61
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
62
62
  }, arguments); },
63
- __wbg_new_0b303268aa395a38: function() {
63
+ __wbg_new_32b398fb48b6d94a: function() {
64
64
  const ret = new Array();
65
65
  return ret;
66
66
  },
67
- __wbg_new_20b778a4c5c691c3: function() {
67
+ __wbg_new_da52cf8fe3429cb2: function() {
68
68
  const ret = new Object();
69
69
  return ret;
70
70
  },
71
71
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
72
72
  arg0[arg1] = arg2;
73
73
  },
74
- __wbg_set_da33c120a6584674: function(arg0, arg1, arg2) {
74
+ __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
75
75
  arg0[arg1 >>> 0] = arg2;
76
76
  },
77
77
  __wbindgen_cast_0000000000000001: function(arg0) {
package/xwing_bg.js CHANGED
@@ -38,7 +38,7 @@ export function generateKeypair() {
38
38
  const ret = wasm.generateKeypair();
39
39
  return ret;
40
40
  }
41
- export function __wbg_Error_9dc85fe1bc224456(arg0, arg1) {
41
+ export function __wbg_Error_92b29b0548f8b746(arg0, arg1) {
42
42
  const ret = Error(getStringFromWasm0(arg0, arg1));
43
43
  return ret;
44
44
  }
@@ -49,24 +49,24 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
49
49
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
50
50
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
51
51
  }
52
- export function __wbg___wbindgen_throw_bbadd78c1bac3a77(arg0, arg1) {
52
+ export function __wbg___wbindgen_throw_344f42d3211c4765(arg0, arg1) {
53
53
  throw new Error(getStringFromWasm0(arg0, arg1));
54
54
  }
55
- export function __wbg_getRandomValues_76dfc69825c9c552() { return handleError(function (arg0, arg1) {
55
+ export function __wbg_getRandomValues_cc7f052a444bb2ce() { return handleError(function (arg0, arg1) {
56
56
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
57
57
  }, arguments); }
58
- export function __wbg_new_0b303268aa395a38() {
58
+ export function __wbg_new_32b398fb48b6d94a() {
59
59
  const ret = new Array();
60
60
  return ret;
61
61
  }
62
- export function __wbg_new_20b778a4c5c691c3() {
62
+ export function __wbg_new_da52cf8fe3429cb2() {
63
63
  const ret = new Object();
64
64
  return ret;
65
65
  }
66
66
  export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
67
67
  arg0[arg1] = arg2;
68
68
  }
69
- export function __wbg_set_da33c120a6584674(arg0, arg1, arg2) {
69
+ export function __wbg_set_8a16b38e4805b298(arg0, arg1, arg2) {
70
70
  arg0[arg1 >>> 0] = arg2;
71
71
  }
72
72
  export function __wbindgen_cast_0000000000000001(arg0) {
package/xwing_bg.wasm CHANGED
Binary file