PageSourceSearch

https://mail.pulib.sk/webmail/scripts/noise/constants.js?v=1750385317

js pulib.sk collected 2026-09-25 02:59:55 UTC 2,119 bytes, 63 lines download raw bytes

1// Generated by LiveScript 1.5.0
2/**
3 * @package noise-c.wasm
4 * @author  Nazar Mokrynskyi <[email protected]>
5 * @license 0BSD
6 */
7(function(){
8  /**
9   * Obtained using `vendor/include/noise/protocol/constants.h` converted to JavaScript and post-processed with Prepack to eliminate runtime computations
10   *
11   * There are many constants exposed by the library, but only subset of them is used in production, so the rest are still here, uncomment when/if needed
12   * for debugging or other purposes
13   */
14  var constants;
15  constants = {
16    NOISE_CIPHER_NONE: 0,
17    NOISE_CIPHER_CHACHAPOLY: 17153,
18    NOISE_CIPHER_AESGCM: 17154,
19    NOISE_HASH_BLAKE2s: 18433,
20    NOISE_HASH_BLAKE2b: 18434,
21    NOISE_HASH_SHA256: 18435,
22    NOISE_HASH_SHA512: 18436,
23    NOISE_DH_CURVE25519: 17409,
24    NOISE_DH_CURVE448: 17410,
25    NOISE_PATTERN_XX_FALLBACK: 20496,
26    NOISE_PATTERN_XX_FALLBACK_HFS: 20540,
27    NOISE_ROLE_INITIATOR: 20993,
28    NOISE_ROLE_RESPONDER: 20994,
29    NOISE_ACTION_NONE: 0,
30    NOISE_ACTION_WRITE_MESSAGE: 16641,
31    NOISE_ACTION_READ_MESSAGE: 16642,
32    NOISE_ACTION_FAILED: 16643,
33    NOISE_ACTION_SPLIT: 16644,
34    NOISE_ERROR_NONE: 0,
35    NOISE_ERROR_NO_MEMORY: 17665,
36    NOISE_ERROR_UNKNOWN_ID: 17666,
37    NOISE_ERROR_UNKNOWN_NAME: 17667,
38    NOISE_ERROR_MAC_FAILURE: 17668,
39    NOISE_ERROR_NOT_APPLICABLE: 17669,
40    NOISE_ERROR_SYSTEM: 17670,
41    NOISE_ERROR_REMOTE_KEY_REQUIRED: 17671,
42    NOISE_ERROR_LOCAL_KEY_REQUIRED: 17672,
43    NOISE_ERROR_PSK_REQUIRED: 17673,
44    NOISE_ERROR_INVALID_LENGTH: 17674,
45    NOISE_ERROR_INVALID_PARAM: 17675,
46    NOISE_ERROR_INVALID_STATE: 17676,
47    NOISE_ERROR_INVALID_NONCE: 17677,
48    NOISE_ERROR_INVALID_PRIVATE_KEY: 17678,
49    NOISE_ERROR_INVALID_PUBLIC_KEY: 17679,
50    NOISE_ERROR_INVALID_FORMAT: 17680,
51    NOISE_ERROR_INVALID_SIGNATURE: 17681,
52    NOISE_MAX_PAYLOAD_LEN: 65535
53  };
54  if (typeof define === 'function' && define['amd']) {
55    define(function(){
56      return constants;
57    });
58  } else if (typeof exports === 'object') {
59    module.exports = constants;
60  } else {
61    this['__noise_c_wasm_constants'] = constants;
62  }
63}).call(this);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.