hpke 0.5.0 → 1.0.1
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/LICENSE.md +21 -0
- package/README.md +123 -58
- package/index.d.ts +1824 -0
- package/index.d.ts.map +1 -0
- package/index.js +4170 -0
- package/index.ts +4170 -0
- package/package.json +68 -38
- package/LICENSE +0 -375
- package/pkg/node/.gitignore +0 -1
- package/pkg/node/LICENSE +0 -375
- package/pkg/node/README.md +0 -83
- package/pkg/node/hpke_dispatch.d.ts +0 -241
- package/pkg/node/hpke_dispatch.js +0 -812
- package/pkg/node/hpke_dispatch_bg.wasm +0 -0
- package/pkg/node/hpke_dispatch_bg.wasm.d.ts +0 -32
- package/pkg/node/index.spec.ts +0 -82
- package/pkg/node/package.json +0 -21
- package/pkg/web/.gitignore +0 -1
- package/pkg/web/LICENSE +0 -375
- package/pkg/web/README.md +0 -83
- package/pkg/web/hpke_dispatch.d.ts +0 -297
- package/pkg/web/hpke_dispatch.js +0 -852
- package/pkg/web/hpke_dispatch_bg.wasm +0 -0
- package/pkg/web/hpke_dispatch_bg.wasm.d.ts +0 -32
- package/pkg/web/index.mjs +0 -2
- package/pkg/web/index.mjs.map +0 -7
- package/pkg/web/index.ts +0 -5
- package/pkg/web/package.json +0 -22
package/pkg/web/index.mjs.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["hpke_dispatch.js", "index.ts"],
|
|
4
|
-
"sourcesContent": ["\nlet wasm;\n\nconst heap = new Array(32).fill(undefined);\n\nheap.push(undefined, null, true, false);\n\nfunction getObject(idx) { return heap[idx]; }\n\nlet heap_next = heap.length;\n\nfunction dropObject(idx) {\n if (idx < 36) return;\n heap[idx] = heap_next;\n heap_next = idx;\n}\n\nfunction takeObject(idx) {\n const ret = getObject(idx);\n dropObject(idx);\n return ret;\n}\n\nfunction addHeapObject(obj) {\n if (heap_next === heap.length) heap.push(heap.length + 1);\n const idx = heap_next;\n heap_next = heap[idx];\n\n heap[idx] = obj;\n return idx;\n}\n\nconst cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n\ncachedTextDecoder.decode();\n\nlet cachedUint8Memory0 = new Uint8Array();\n\nfunction getUint8Memory0() {\n if (cachedUint8Memory0.byteLength === 0) {\n cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8Memory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));\n}\n\nlet cachedInt32Memory0 = new Int32Array();\n\nfunction getInt32Memory0() {\n if (cachedInt32Memory0.byteLength === 0) {\n cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);\n }\n return cachedInt32Memory0;\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nfunction passArray8ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 1);\n getUint8Memory0().set(arg, ptr / 1);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction _assertClass(instance, klass) {\n if (!(instance instanceof klass)) {\n throw new Error(`expected instance of ${klass.name}`);\n }\n return instance.ptr;\n}\n/**\n*\n*`base_mode_seal` provides an interface to [`hpke::single_shot_seal`]\n*that does not require compile time selection of an\n*algorithm. Instead, the selected algorithm is provided through the\n*[`Config`] passed as the first argument.\n*\n*Requires the `base-mode-seal` crate feature to be enabled.\n*\n*# Errors\n*\n*This will return an `Result::Err` variant if:\n*\n** we are unable to deserialize the recipient public key\n** there is an error in key encapsultion\n** there is an error in encryption\n*\n*\n* @param {Config} config\n* @param {Uint8Array} recipient_public_key\n* @param {Uint8Array} info\n* @param {Uint8Array} plaintext\n* @param {Uint8Array} aad\n* @returns {EncappedKeyAndCiphertext}\n*/\nexport function base_mode_seal(config, recipient_public_key, info, plaintext, aad) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n _assertClass(config, Config);\n const ptr0 = passArray8ToWasm0(recipient_public_key, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArray8ToWasm0(info, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArray8ToWasm0(aad, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n wasm.base_mode_seal(retptr, config.ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var r2 = getInt32Memory0()[retptr / 4 + 2];\n if (r2) {\n throw takeObject(r1);\n }\n return EncappedKeyAndCiphertext.__wrap(r0);\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n}\n\n/**\n*\n*`base_mode_open` provides an interface to [`hpke::single_shot_open`]\n*that does not require compile time selection of an algorithm. Instead,\n*the selected algorithm is provided through the [`Config`] passed as\n*the first argument.\n*\n*Requires the `base-mode-open` crate feature to be enabled.\n*\n*# Errors\n*\n*This will return an `Result::Err` variant if:\n*\n** we are unable to deserialize the private key or encapsulated key\n** there is an error in key decapsulation\n** there is an error in decryption\n*\n* @param {Config} config\n* @param {Uint8Array} private_key\n* @param {Uint8Array} encapped_key\n* @param {Uint8Array} info\n* @param {Uint8Array} ciphertext\n* @param {Uint8Array} aad\n* @returns {Uint8Array}\n*/\nexport function base_mode_open(config, private_key, encapped_key, info, ciphertext, aad) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n _assertClass(config, Config);\n const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArray8ToWasm0(encapped_key, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArray8ToWasm0(info, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n const ptr4 = passArray8ToWasm0(aad, wasm.__wbindgen_malloc);\n const len4 = WASM_VECTOR_LEN;\n wasm.base_mode_open(retptr, config.ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var r2 = getInt32Memory0()[retptr / 4 + 2];\n var r3 = getInt32Memory0()[retptr / 4 + 3];\n if (r3) {\n throw takeObject(r2);\n }\n var v5 = getArrayU8FromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 1);\n return v5;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n}\n\nfunction handleError(f, args) {\n try {\n return f.apply(this, args);\n } catch (e) {\n wasm.__wbindgen_exn_store(addHeapObject(e));\n }\n}\n/**\n*\n*Aead represents an authenticated encryption with additional data\n*encryption function, as per [RFC9180\u00A77.3](https://www.rfc-editor.org/rfc/rfc9180.html#section-7.3)\n*/\nexport const Aead = Object.freeze({\n/**\n* AES-128-GCM [GCM](https://doi.org/10.6028/nist.sp.800-38d)\n*/\nAesGcm128:1,\"1\":\"AesGcm128\",\n/**\n* AES-256-GCM [GCM](https://doi.org/10.6028/nist.sp.800-38d)\n*/\nAesGcm256:2,\"2\":\"AesGcm256\",\n/**\n* ChaCha20Poly1305 [RFC8439](https://www.rfc-editor.org/info/rfc8439)\n*/\nChaCha20Poly1305:3,\"3\":\"ChaCha20Poly1305\", });\n/**\n*\n*Kdf represents an key derivation function, as per\n*[RFC9180\u00A77.2](https://www.rfc-editor.org/rfc/rfc9180.html#section-7.2)\n*/\nexport const Kdf = Object.freeze({\n/**\n* Sha256 [RFC5869](https://www.rfc-editor.org/info/rfc5869)\n*/\nSha256:1,\"1\":\"Sha256\",\n/**\n* Sha384 [RFC5869](https://www.rfc-editor.org/info/rfc5869)\n*/\nSha384:2,\"2\":\"Sha384\",\n/**\n* Sha512 [RFC5869](https://www.rfc-editor.org/info/rfc5869)\n*/\nSha512:3,\"3\":\"Sha512\", });\n/**\n*\n*Kem represents an asymmetric key encapsulation mechanism, as per\n*[RFC9180\u00A77.1][section-7.1]. Currently only two of options listed in\n*the hpke draft are available.\n*\n*[section-7.1]: https://www.rfc-editor.org/rfc/rfc9180.html#section-7.1\n*/\nexport const Kem = Object.freeze({\n/**\n* DHKEM(P-256, HKDF-SHA256) [NISTCurves](https://doi.org/10.6028/nist.fips.186-4)\n*/\nDhP256HkdfSha256:16,\"16\":\"DhP256HkdfSha256\",\n/**\n* DHKEM(X25519, HKDF-SHA256) [RFC7748](https://www.rfc-editor.org/info/rfc7748)\n*/\nX25519HkdfSha256:32,\"32\":\"X25519HkdfSha256\", });\n/**\n*\n*Config is an open struct that contains an ([`Aead`], [`Kdf`], [`Kem`])\n*algorithmic triple. This can be used with [`Config::base_mode_seal`],\n*[`Config::base_mode_open`], [`base_mode_seal`], or [`base_mode_open`].\n*/\nexport class Config {\n\n static __wrap(ptr) {\n const obj = Object.create(Config.prototype);\n obj.ptr = ptr;\n\n return obj;\n }\n\n __destroy_into_raw() {\n const ptr = this.ptr;\n this.ptr = 0;\n\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_config_free(ptr);\n }\n /**\n * the [authenticated encryption with additional data encryption function](crate::Aead) to be used\n * @returns {number}\n */\n get aead() {\n const ret = wasm.__wbg_get_config_aead(this.ptr);\n return ret >>> 0;\n }\n /**\n * the [authenticated encryption with additional data encryption function](crate::Aead) to be used\n * @param {number} arg0\n */\n set aead(arg0) {\n wasm.__wbg_set_config_aead(this.ptr, arg0);\n }\n /**\n * the [key derivation function](crate::Kdf) to be used\n * @returns {number}\n */\n get kdf() {\n const ret = wasm.__wbg_get_config_kdf(this.ptr);\n return ret >>> 0;\n }\n /**\n * the [key derivation function](crate::Kdf) to be used\n * @param {number} arg0\n */\n set kdf(arg0) {\n wasm.__wbg_set_config_kdf(this.ptr, arg0);\n }\n /**\n * the [asymmetric key encapsulation mechanism](crate::Kem) to be used\n * @returns {number}\n */\n get kem() {\n const ret = wasm.__wbg_get_config_kem(this.ptr);\n return ret >>> 0;\n }\n /**\n * the [asymmetric key encapsulation mechanism](crate::Kem) to be used\n * @param {number} arg0\n */\n set kem(arg0) {\n wasm.__wbg_set_config_kem(this.ptr, arg0);\n }\n /**\n *\n * base_mode_seal provides an interface to [`hpke::single_shot_seal`] that does\n * not require compile time selection of an algorithm. Instead, the\n * selected algorithm is provided through the [`Config`] that this\n * method is called on.\n *\n * Requires the `base-mode-seal` crate feature to be enabled.\n *\n * # Errors\n *\n * This will return an `Result::Err` variant if:\n *\n * * we are unable to deserialize the recipient public key\n * * there is an error in key encapsultion\n * * there is an error in encryption\n *\n *\n * @param {Uint8Array} recipient_public_key\n * @param {Uint8Array} info\n * @param {Uint8Array} plaintext\n * @param {Uint8Array} aad\n * @returns {EncappedKeyAndCiphertext}\n */\n base_mode_seal(recipient_public_key, info, plaintext, aad) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passArray8ToWasm0(recipient_public_key, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArray8ToWasm0(info, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArray8ToWasm0(aad, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n wasm.config_base_mode_seal(retptr, this.ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var r2 = getInt32Memory0()[retptr / 4 + 2];\n if (r2) {\n throw takeObject(r1);\n }\n return EncappedKeyAndCiphertext.__wrap(r0);\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n *\n * base_mode_open provides an interface to [`hpke::single_shot_open`]\n * that does not require compile time selection of an\n * algorithm. Instead, the selected algorithm is provided through the\n * [`Config`] that this method is called on.\n *\n * Requires the `base-mode-open` crate feature to be enabled.\n *\n * # Errors\n *\n * This will return an `Result::Err` variant if:\n *\n * * we are unable to deserialize the private key or encapsulated key\n * * there is an error in key decapsulation\n * * there is an error in decryption\n *\n *\n * @param {Uint8Array} private_key\n * @param {Uint8Array} encapped_key\n * @param {Uint8Array} info\n * @param {Uint8Array} ciphertext\n * @param {Uint8Array} aad\n * @returns {Uint8Array}\n */\n base_mode_open(private_key, encapped_key, info, ciphertext, aad) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArray8ToWasm0(encapped_key, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArray8ToWasm0(info, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n const ptr4 = passArray8ToWasm0(aad, wasm.__wbindgen_malloc);\n const len4 = WASM_VECTOR_LEN;\n wasm.config_base_mode_open(retptr, this.ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var r2 = getInt32Memory0()[retptr / 4 + 2];\n var r3 = getInt32Memory0()[retptr / 4 + 3];\n if (r3) {\n throw takeObject(r2);\n }\n var v5 = getArrayU8FromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 1);\n return v5;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * Attempt to convert three u16 ids into a valid config. The id mappings are defined in the draft.\n * @param {number} aead_id\n * @param {number} kdf_id\n * @param {number} kem_id\n * @returns {Config}\n */\n static try_from_ids(aead_id, kdf_id, kem_id) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.config_try_from_ids(retptr, aead_id, kdf_id, kem_id);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var r2 = getInt32Memory0()[retptr / 4 + 2];\n if (r2) {\n throw takeObject(r1);\n }\n return Config.__wrap(r0);\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n}\n/**\n*\n*a simple struct to return the combined encapsulated key\n*and ciphertext from seal\n*/\nexport class EncappedKeyAndCiphertext {\n\n static __wrap(ptr) {\n const obj = Object.create(EncappedKeyAndCiphertext.prototype);\n obj.ptr = ptr;\n\n return obj;\n }\n\n __destroy_into_raw() {\n const ptr = this.ptr;\n this.ptr = 0;\n\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_encappedkeyandciphertext_free(ptr);\n }\n /**\n * the encapsulated encryption key\n * @returns {Uint8Array}\n */\n get encapped_key() {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.__wbg_get_encappedkeyandciphertext_encapped_key(retptr, this.ptr);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var v0 = getArrayU8FromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 1);\n return v0;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * the encapsulated encryption key\n * @param {Uint8Array} arg0\n */\n set encapped_key(arg0) {\n const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.__wbg_set_encappedkeyandciphertext_encapped_key(this.ptr, ptr0, len0);\n }\n /**\n * the ciphertext, encrypted with the key\n * @returns {Uint8Array}\n */\n get ciphertext() {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.__wbg_get_encappedkeyandciphertext_ciphertext(retptr, this.ptr);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var v0 = getArrayU8FromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 1);\n return v0;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * the ciphertext, encrypted with the key\n * @param {Uint8Array} arg0\n */\n set ciphertext(arg0) {\n const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.__wbg_set_encappedkeyandciphertext_ciphertext(this.ptr, ptr0, len0);\n }\n}\n/**\n*r\"\n* a newtype wrapper for HpkeError so we can use it in wasm_bindgen\n*\n*/\nexport class HpkeError {\n\n static __wrap(ptr) {\n const obj = Object.create(HpkeError.prototype);\n obj.ptr = ptr;\n\n return obj;\n }\n\n __destroy_into_raw() {\n const ptr = this.ptr;\n this.ptr = 0;\n\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_hpkeerror_free(ptr);\n }\n}\n/**\n*\n*A simple error type for failed id lookups\n*\n*/\nexport class IdLookupError {\n\n static __wrap(ptr) {\n const obj = Object.create(IdLookupError.prototype);\n obj.ptr = ptr;\n\n return obj;\n }\n\n __destroy_into_raw() {\n const ptr = this.ptr;\n this.ptr = 0;\n\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_idlookuperror_free(ptr);\n }\n}\n/**\n* An encoded keypair\n*/\nexport class Keypair {\n\n static __wrap(ptr) {\n const obj = Object.create(Keypair.prototype);\n obj.ptr = ptr;\n\n return obj;\n }\n\n __destroy_into_raw() {\n const ptr = this.ptr;\n this.ptr = 0;\n\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_keypair_free(ptr);\n }\n /**\n * the public key for this keypair\n * @returns {Uint8Array}\n */\n get public_key() {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.__wbg_get_keypair_public_key(retptr, this.ptr);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var v0 = getArrayU8FromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 1);\n return v0;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * the public key for this keypair\n * @param {Uint8Array} arg0\n */\n set public_key(arg0) {\n const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.__wbg_set_keypair_public_key(this.ptr, ptr0, len0);\n }\n /**\n * the private key for this keypair,\n * @returns {Uint8Array}\n */\n get private_key() {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.__wbg_get_keypair_private_key(retptr, this.ptr);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var v0 = getArrayU8FromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 1);\n return v0;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * the private key for this keypair,\n * @param {Uint8Array} arg0\n */\n set private_key(arg0) {\n const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.__wbg_set_keypair_private_key(this.ptr, ptr0, len0);\n }\n /**\n * generate a keypair from a [`Kem`]\n * @param {number} kem\n */\n constructor(kem) {\n const ret = wasm.keypair_new(kem);\n return Keypair.__wrap(ret);\n }\n}\n\nasync function load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n\n } catch (e) {\n if (module.headers.get('Content-Type') != 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n\n } else {\n return instance;\n }\n }\n}\n\nfunction getImports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbg_idlookuperror_new = function(arg0) {\n const ret = IdLookupError.__wrap(arg0);\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_hpkeerror_new = function(arg0) {\n const ret = HpkeError.__wrap(arg0);\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_process_0cc2ada8524d6f83 = function(arg0) {\n const ret = getObject(arg0).process;\n return addHeapObject(ret);\n };\n imports.wbg.__wbindgen_is_object = function(arg0) {\n const val = getObject(arg0);\n const ret = typeof(val) === 'object' && val !== null;\n return ret;\n };\n imports.wbg.__wbg_versions_c11acceab27a6c87 = function(arg0) {\n const ret = getObject(arg0).versions;\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_node_7ff1ce49caf23815 = function(arg0) {\n const ret = getObject(arg0).node;\n return addHeapObject(ret);\n };\n imports.wbg.__wbindgen_is_string = function(arg0) {\n const ret = typeof(getObject(arg0)) === 'string';\n return ret;\n };\n imports.wbg.__wbindgen_object_drop_ref = function(arg0) {\n takeObject(arg0);\n };\n imports.wbg.__wbg_crypto_2036bed7c44c25e7 = function(arg0) {\n const ret = getObject(arg0).crypto;\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_msCrypto_a21fc88caf1ecdc8 = function(arg0) {\n const ret = getObject(arg0).msCrypto;\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_static_accessor_NODE_MODULE_cf6401cc1091279e = function() {\n const ret = module;\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_require_a746e79b322b9336 = function() { return handleError(function (arg0, arg1, arg2) {\n const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_getRandomValues_b99eec4244a475bb = function() { return handleError(function (arg0, arg1) {\n getObject(arg0).getRandomValues(getObject(arg1));\n }, arguments) };\n imports.wbg.__wbg_randomFillSync_065afffde01daa66 = function() { return handleError(function (arg0, arg1, arg2) {\n getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));\n }, arguments) };\n imports.wbg.__wbg_newnoargs_b5b063fc6c2f0376 = function(arg0, arg1) {\n const ret = new Function(getStringFromWasm0(arg0, arg1));\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {\n const ret = getObject(arg0).call(getObject(arg1));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbindgen_object_clone_ref = function(arg0) {\n const ret = getObject(arg0);\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {\n const ret = self.self;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_window_f2557cc78490aceb = function() { return handleError(function () {\n const ret = window.window;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_globalThis_7f206bda628d5286 = function() { return handleError(function () {\n const ret = globalThis.globalThis;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(function () {\n const ret = global.global;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbindgen_is_undefined = function(arg0) {\n const ret = getObject(arg0) === undefined;\n return ret;\n };\n imports.wbg.__wbg_buffer_3f3d764d4747d564 = function(arg0) {\n const ret = getObject(arg0).buffer;\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_new_8c3f0052272a457a = function(arg0) {\n const ret = new Uint8Array(getObject(arg0));\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {\n getObject(arg0).set(getObject(arg1), arg2 >>> 0);\n };\n imports.wbg.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {\n const ret = getObject(arg0).length;\n return ret;\n };\n imports.wbg.__wbg_newwithlength_f5933855e4f48a19 = function(arg0) {\n const ret = new Uint8Array(arg0 >>> 0);\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_subarray_58ad4efbb5bcb886 = function(arg0, arg1, arg2) {\n const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);\n return addHeapObject(ret);\n };\n imports.wbg.__wbindgen_throw = function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n };\n imports.wbg.__wbindgen_memory = function() {\n const ret = wasm.memory;\n return addHeapObject(ret);\n };\n\n return imports;\n}\n\nfunction initMemory(imports, maybe_memory) {\n\n}\n\nfunction finalizeInit(instance, module) {\n wasm = instance.exports;\n init.__wbindgen_wasm_module = module;\n cachedInt32Memory0 = new Int32Array();\n cachedUint8Memory0 = new Uint8Array();\n\n\n return wasm;\n}\n\nfunction initSync(module) {\n const imports = getImports();\n\n initMemory(imports);\n\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n\n const instance = new WebAssembly.Instance(module, imports);\n\n return finalizeInit(instance, module);\n}\n\nasync function init(input) {\n if (typeof input === 'undefined') {\n input = new URL('hpke_dispatch_bg.wasm', import.meta.url);\n }\n const imports = getImports();\n\n if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {\n input = fetch(input);\n }\n\n initMemory(imports);\n\n const { instance, module } = await load(await input, imports);\n\n return finalizeInit(instance, module);\n}\n\nexport { initSync }\nexport default init;\n", "import wasm from \"./hpke_dispatch_bg.wasm\";\nimport init from \"./hpke_dispatch.js\";\n//this is exported so it doesn't get dead-code-eliminated\nexport const __wasm = init(wasm);\nexport * from \"./hpke_dispatch.js\";\n"],
|
|
5
|
-
"mappings": "+uohBACA,GAAI,GAEE,EAAO,GAAI,OAAM,EAAE,EAAE,KAAK,MAAS,EAEzC,EAAK,KAAK,OAAW,KAAM,GAAM,EAAK,EAEtC,WAAmB,EAAK,CAAE,MAAO,GAAK,EAAM,CAE5C,GAAI,GAAY,EAAK,OAErB,WAAoB,EAAK,CACrB,AAAI,EAAM,IACV,GAAK,GAAO,EACZ,EAAY,EAChB,CAEA,WAAoB,EAAK,CACrB,GAAM,GAAM,EAAU,CAAG,EACzB,SAAW,CAAG,EACP,CACX,CAEA,WAAuB,EAAK,CACxB,AAAI,IAAc,EAAK,QAAQ,EAAK,KAAK,EAAK,OAAS,CAAC,EACxD,GAAM,GAAM,EACZ,SAAY,EAAK,GAEjB,EAAK,GAAO,EACL,CACX,CAEA,GAAM,GAAoB,GAAI,aAAY,QAAS,CAAE,UAAW,GAAM,MAAO,EAAK,CAAC,EAEnF,EAAkB,OAAO,EAEzB,GAAI,GAAqB,GAAI,YAE7B,YAA2B,CACvB,MAAI,GAAmB,aAAe,GAClC,GAAqB,GAAI,YAAW,EAAK,OAAO,MAAM,GAEnD,CACX,CAEA,WAA4B,EAAK,EAAK,CAClC,MAAO,GAAkB,OAAO,EAAgB,EAAE,SAAS,EAAK,EAAM,CAAG,CAAC,CAC9E,CAEA,GAAI,GAAqB,GAAI,YAE7B,YAA2B,CACvB,MAAI,GAAmB,aAAe,GAClC,GAAqB,GAAI,YAAW,EAAK,OAAO,MAAM,GAEnD,CACX,CAEA,WAA6B,EAAK,EAAK,CACnC,MAAO,GAAgB,EAAE,SAAS,EAAM,EAAG,EAAM,EAAI,CAAG,CAC5D,CAEA,GAAI,GAAkB,EAEtB,WAA2B,EAAK,EAAQ,CACpC,GAAM,GAAM,EAAO,EAAI,OAAS,C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|
-
"names": []
|
|
7
|
-
}
|
package/pkg/web/index.ts
DELETED
package/pkg/web/package.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hpke-dispatch",
|
|
3
|
-
"description": "runtime algorithmic selection for hybrid public key encryption",
|
|
4
|
-
"version": "0.5.0",
|
|
5
|
-
"license": "MPL-2.0",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/divviup/hpke-dispatch"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"hpke_dispatch_bg.wasm",
|
|
12
|
-
"hpke_dispatch.js",
|
|
13
|
-
"hpke_dispatch.d.ts"
|
|
14
|
-
],
|
|
15
|
-
"module": "hpke_dispatch.js",
|
|
16
|
-
"types": "hpke_dispatch.d.ts",
|
|
17
|
-
"sideEffects": false,
|
|
18
|
-
"keywords": [
|
|
19
|
-
"hpke",
|
|
20
|
-
"encryption"
|
|
21
|
-
]
|
|
22
|
-
}
|