node-red-contrib-tak-registration 0.11.5 → 0.12.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/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +88 -44
- package/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/node/buffer.d.ts +37 -36
- package/node_modules/@types/node/child_process.d.ts +38 -34
- package/node_modules/@types/node/cluster.d.ts +165 -19
- package/node_modules/@types/node/console.d.ts +64 -27
- package/node_modules/@types/node/crypto.d.ts +139 -72
- package/node_modules/@types/node/dgram.d.ts +24 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +365 -2
- package/node_modules/@types/node/dns/promises.d.ts +79 -28
- package/node_modules/@types/node/dns.d.ts +124 -69
- package/node_modules/@types/node/dom-events.d.ts +2 -0
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +115 -63
- package/node_modules/@types/node/fs/promises.d.ts +18 -12
- package/node_modules/@types/node/fs.d.ts +72 -46
- package/node_modules/@types/node/globals.d.ts +27 -0
- package/node_modules/@types/node/http.d.ts +75 -55
- package/node_modules/@types/node/http2.d.ts +83 -47
- package/node_modules/@types/node/https.d.ts +3 -3
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +5 -6
- package/node_modules/@types/node/module.d.ts +14 -0
- package/node_modules/@types/node/net.d.ts +66 -16
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +320 -54
- package/node_modules/@types/node/process.d.ts +265 -50
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +21 -9
- package/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/stream/web.d.ts +18 -1
- package/node_modules/@types/node/stream.d.ts +62 -56
- package/node_modules/@types/node/string_decoder.d.ts +5 -5
- package/node_modules/@types/node/test.d.ts +445 -109
- package/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/node/tls.d.ts +40 -33
- package/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/node/url.d.ts +73 -48
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +183 -10
- package/node_modules/@types/node/vm.d.ts +43 -22
- package/node_modules/@types/node/wasi.d.ts +38 -15
- package/node_modules/@types/node/worker_threads.d.ts +19 -16
- package/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/adm-zip/README.md +2 -1
- package/node_modules/adm-zip/adm-zip.js +46 -45
- package/node_modules/adm-zip/headers/entryHeader.js +14 -12
- package/node_modules/adm-zip/headers/mainHeader.js +1 -1
- package/node_modules/adm-zip/methods/inflater.js +6 -3
- package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
- package/node_modules/adm-zip/package.json +2 -2
- package/node_modules/adm-zip/util/errors.js +1 -0
- package/node_modules/adm-zip/zipEntry.js +64 -43
- package/node_modules/adm-zip/zipFile.js +35 -35
- package/node_modules/axios/CHANGELOG.md +873 -711
- package/node_modules/axios/README.md +98 -8
- package/node_modules/axios/dist/axios.js +1461 -350
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +710 -306
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +710 -306
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +628 -250
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +6 -3
- package/node_modules/axios/index.d.ts +6 -3
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/http.js +7 -3
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +28 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +7 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
- package/node_modules/axios/lib/helpers/combineURLs.js +1 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +5 -3
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/platform/common/utils.js +4 -1
- package/node_modules/axios/lib/utils.js +7 -2
- package/node_modules/axios/package.json +27 -26
- package/node_modules/call-bind/CHANGELOG.md +16 -0
- package/node_modules/call-bind/index.js +2 -11
- package/node_modules/call-bind/package.json +11 -6
- package/node_modules/define-data-property/CHANGELOG.md +29 -0
- package/node_modules/define-data-property/index.d.ts +12 -3
- package/node_modules/define-data-property/index.js +4 -16
- package/node_modules/define-data-property/package.json +26 -33
- package/node_modules/define-data-property/test/index.js +10 -10
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +15 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +16 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +55 -0
- package/node_modules/es-define-property/tsconfig.json +50 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +17 -0
- package/node_modules/fast-xml-parser/README.md +9 -15
- package/node_modules/fast-xml-parser/package.json +4 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +365 -71
- package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
- package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
- package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
- package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
- package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
- package/node_modules/fast-xml-parser/src/validator.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +18 -9
- package/node_modules/follow-redirects/index.js +115 -76
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
- package/node_modules/get-intrinsic/index.js +15 -7
- package/node_modules/get-intrinsic/package.json +12 -12
- package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
- package/node_modules/has-property-descriptors/index.js +3 -14
- package/node_modules/has-property-descriptors/package.json +5 -5
- package/node_modules/has-proto/CHANGELOG.md +15 -0
- package/node_modules/has-proto/index.d.ts +3 -0
- package/node_modules/has-proto/index.js +5 -1
- package/node_modules/has-proto/package.json +9 -5
- package/node_modules/has-proto/tsconfig.json +49 -0
- package/node_modules/has-tostringtag/.eslintrc +0 -6
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +1 -0
- package/node_modules/has-tostringtag/package.json +37 -13
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +1 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
- package/node_modules/has-tostringtag/test/tests.js +2 -1
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/index.d.ts +3 -3
- package/node_modules/hasown/index.js +1 -1
- package/node_modules/hasown/package.json +16 -15
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/object-is/.eslintrc +1 -1
- package/node_modules/object-is/.nycrc +0 -4
- package/node_modules/object-is/CHANGELOG.md +25 -0
- package/node_modules/object-is/README.md +20 -20
- package/node_modules/object-is/package.json +23 -14
- package/node_modules/polygon-clipping/README.md +29 -26
- package/node_modules/polygon-clipping/dist/polygon-clipping.cjs.js +1398 -1421
- package/node_modules/polygon-clipping/dist/polygon-clipping.d.ts +13 -10
- package/node_modules/polygon-clipping/dist/polygon-clipping.esm.js +1139 -1427
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.js +1770 -1831
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js +22 -8
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js.map +1 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/LICENSE +24 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/README.md +82 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/util.js +138 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.d.ts +49 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.js +5 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/package.json +75 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.js +908 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.js +914 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.js +280 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.js +601 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.js +2328 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.min.js +1 -0
- package/node_modules/polygon-clipping/package.json +30 -25
- package/node_modules/protobufjs/LICENSE +39 -39
- package/node_modules/protobufjs/README.md +727 -740
- package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/debug/README.md +4 -4
- package/node_modules/protobufjs/ext/debug/index.js +71 -71
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
- package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
- package/node_modules/protobufjs/google/LICENSE +27 -27
- package/node_modules/protobufjs/google/README.md +1 -1
- package/node_modules/protobufjs/google/api/annotations.json +82 -82
- package/node_modules/protobufjs/google/api/annotations.proto +10 -10
- package/node_modules/protobufjs/google/api/http.json +85 -85
- package/node_modules/protobufjs/google/api/http.proto +30 -30
- package/node_modules/protobufjs/google/protobuf/api.json +117 -117
- package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
- package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
- package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
- package/node_modules/protobufjs/google/protobuf/type.json +201 -201
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
- package/node_modules/protobufjs/index.d.ts +2741 -2741
- package/node_modules/protobufjs/index.js +4 -4
- package/node_modules/protobufjs/light.d.ts +2 -2
- package/node_modules/protobufjs/light.js +3 -3
- package/node_modules/protobufjs/minimal.d.ts +2 -2
- package/node_modules/protobufjs/minimal.js +4 -4
- package/node_modules/protobufjs/package.json +111 -111
- package/node_modules/protobufjs/scripts/postinstall.js +32 -32
- package/node_modules/protobufjs/src/common.js +399 -399
- package/node_modules/protobufjs/src/converter.js +301 -301
- package/node_modules/protobufjs/src/decoder.js +129 -129
- package/node_modules/protobufjs/src/encoder.js +100 -100
- package/node_modules/protobufjs/src/enum.js +198 -198
- package/node_modules/protobufjs/src/field.js +377 -377
- package/node_modules/protobufjs/src/index-light.js +104 -104
- package/node_modules/protobufjs/src/index-minimal.js +36 -36
- package/node_modules/protobufjs/src/index.js +12 -12
- package/node_modules/protobufjs/src/mapfield.js +126 -126
- package/node_modules/protobufjs/src/message.js +138 -138
- package/node_modules/protobufjs/src/method.js +160 -160
- package/node_modules/protobufjs/src/namespace.js +433 -433
- package/node_modules/protobufjs/src/object.js +243 -243
- package/node_modules/protobufjs/src/oneof.js +203 -203
- package/node_modules/protobufjs/src/parse.js +889 -872
- package/node_modules/protobufjs/src/reader.js +416 -416
- package/node_modules/protobufjs/src/reader_buffer.js +51 -51
- package/node_modules/protobufjs/src/root.js +368 -368
- package/node_modules/protobufjs/src/roots.js +18 -18
- package/node_modules/protobufjs/src/rpc/service.js +142 -142
- package/node_modules/protobufjs/src/rpc.js +36 -36
- package/node_modules/protobufjs/src/service.js +167 -167
- package/node_modules/protobufjs/src/tokenize.js +416 -416
- package/node_modules/protobufjs/src/type.js +589 -589
- package/node_modules/protobufjs/src/types.js +196 -196
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
- package/node_modules/protobufjs/src/util/longbits.js +200 -200
- package/node_modules/protobufjs/src/util/minimal.js +438 -438
- package/node_modules/protobufjs/src/util.js +212 -212
- package/node_modules/protobufjs/src/verifier.js +176 -176
- package/node_modules/protobufjs/src/wrappers.js +102 -102
- package/node_modules/protobufjs/src/writer.js +465 -465
- package/node_modules/protobufjs/src/writer_buffer.js +85 -85
- package/node_modules/protobufjs/tsconfig.json +7 -7
- package/node_modules/regexp.prototype.flags/CHANGELOG.md +13 -0
- package/node_modules/regexp.prototype.flags/implementation.js +2 -2
- package/node_modules/regexp.prototype.flags/package.json +11 -10
- package/node_modules/regexp.prototype.flags/test/tests.js +13 -13
- package/node_modules/set-function-length/CHANGELOG.md +29 -0
- package/node_modules/set-function-length/env.d.ts +9 -0
- package/node_modules/set-function-length/env.js +10 -4
- package/node_modules/set-function-length/index.d.ts +7 -0
- package/node_modules/set-function-length/index.js +4 -3
- package/node_modules/set-function-length/package.json +29 -11
- package/node_modules/set-function-length/tsconfig.json +9 -0
- package/node_modules/set-function-name/.eslintrc +1 -0
- package/node_modules/set-function-name/CHANGELOG.md +9 -0
- package/node_modules/set-function-name/index.d.ts +5 -0
- package/node_modules/set-function-name/index.js +4 -3
- package/node_modules/set-function-name/package.json +28 -9
- package/node_modules/set-function-name/tsconfig.json +59 -0
- package/node_modules/uuid/CHANGELOG.md +18 -0
- package/node_modules/uuid/README.md +134 -16
- package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
- package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
- package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
- package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
- package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
- package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
- package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
- package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
- package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
- package/node_modules/uuid/dist/esm-browser/index.js +9 -4
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
- package/node_modules/uuid/dist/esm-browser/native.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
- package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -3
- package/node_modules/uuid/dist/esm-node/index.js +9 -4
- package/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/node_modules/uuid/dist/esm-node/md5.js +1 -4
- package/node_modules/uuid/dist/esm-node/native.js +1 -1
- package/node_modules/uuid/dist/esm-node/parse.js +11 -9
- package/node_modules/uuid/dist/esm-node/regex.js +1 -1
- package/node_modules/uuid/dist/esm-node/rng.js +1 -3
- package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
- package/node_modules/uuid/dist/esm-node/v1.js +66 -36
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-node/v35.js +8 -19
- package/node_modules/uuid/dist/esm-node/v4.js +4 -8
- package/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/node_modules/uuid/dist/esm-node/validate.js +0 -2
- package/node_modules/uuid/dist/esm-node/version.js +0 -3
- package/node_modules/uuid/dist/index.js +40 -15
- package/node_modules/uuid/dist/max.js +7 -0
- package/node_modules/uuid/dist/md5-browser.js +8 -31
- package/node_modules/uuid/dist/md5.js +4 -10
- package/node_modules/uuid/dist/native-browser.js +2 -3
- package/node_modules/uuid/dist/native.js +5 -9
- package/node_modules/uuid/dist/nil.js +1 -2
- package/node_modules/uuid/dist/parse.js +13 -14
- package/node_modules/uuid/dist/regex.js +1 -2
- package/node_modules/uuid/dist/rng-browser.js +1 -3
- package/node_modules/uuid/dist/rng.js +3 -10
- package/node_modules/uuid/dist/sha1-browser.js +1 -23
- package/node_modules/uuid/dist/sha1.js +4 -10
- package/node_modules/uuid/dist/stringify.js +8 -14
- package/node_modules/uuid/dist/uuid-bin.js +12 -22
- package/node_modules/uuid/dist/v1.js +66 -42
- package/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/v3.js +2 -7
- package/node_modules/uuid/dist/v35.js +11 -28
- package/node_modules/uuid/dist/v4.js +6 -17
- package/node_modules/uuid/dist/v5.js +2 -7
- package/node_modules/uuid/dist/v6.js +38 -0
- package/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/v7.js +152 -0
- package/node_modules/uuid/dist/validate.js +2 -7
- package/node_modules/uuid/dist/version.js +2 -8
- package/node_modules/uuid/package.json +41 -34
- package/node_modules/uuid/wrapper.mjs +5 -0
- package/package.json +6 -6
- package/tak-ingest.js +5 -1
- package/tak-registration.js +8 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4291
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -301
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/define-data-property/index.d.ts.map +0 -1
- package/node_modules/hasown/index.d.ts.map +0 -1
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/polygon-clipping/CHANGELOG.md +0 -129
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* // Prints:
|
|
15
15
|
* // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
|
|
16
16
|
* ```
|
|
17
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
17
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/crypto.js)
|
|
18
18
|
*/
|
|
19
19
|
declare module "crypto" {
|
|
20
20
|
import * as stream from "node:stream";
|
|
@@ -27,7 +27,7 @@ declare module "crypto" {
|
|
|
27
27
|
* should not use this element anymore.
|
|
28
28
|
*
|
|
29
29
|
* The `node:crypto` module provides the `Certificate` class for working with SPKAC
|
|
30
|
-
* data. The most common usage is handling output generated by the HTML5`<keygen>` element. Node.js uses [OpenSSL's SPKAC
|
|
30
|
+
* data. The most common usage is handling output generated by the HTML5 `<keygen>` element. Node.js uses [OpenSSL's SPKAC
|
|
31
31
|
* implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally.
|
|
32
32
|
* @since v0.11.8
|
|
33
33
|
*/
|
|
@@ -100,11 +100,13 @@ declare module "crypto" {
|
|
|
100
100
|
const OPENSSL_VERSION_NUMBER: number;
|
|
101
101
|
/** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
|
|
102
102
|
const SSL_OP_ALL: number;
|
|
103
|
+
/** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */
|
|
104
|
+
const SSL_OP_ALLOW_NO_DHE_KEX: number;
|
|
103
105
|
/** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
|
|
104
106
|
const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
|
|
105
107
|
/** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
|
|
106
108
|
const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
|
|
107
|
-
/** Instructs OpenSSL to use Cisco's
|
|
109
|
+
/** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */
|
|
108
110
|
const SSL_OP_CISCO_ANYCONNECT: number;
|
|
109
111
|
/** Instructs OpenSSL to turn on cookie exchange. */
|
|
110
112
|
const SSL_OP_COOKIE_EXCHANGE: number;
|
|
@@ -116,15 +118,29 @@ declare module "crypto" {
|
|
|
116
118
|
const SSL_OP_LEGACY_SERVER_CONNECT: number;
|
|
117
119
|
/** Instructs OpenSSL to disable support for SSL/TLS compression. */
|
|
118
120
|
const SSL_OP_NO_COMPRESSION: number;
|
|
121
|
+
/** Instructs OpenSSL to disable encrypt-then-MAC. */
|
|
122
|
+
const SSL_OP_NO_ENCRYPT_THEN_MAC: number;
|
|
119
123
|
const SSL_OP_NO_QUERY_MTU: number;
|
|
124
|
+
/** Instructs OpenSSL to disable renegotiation. */
|
|
125
|
+
const SSL_OP_NO_RENEGOTIATION: number;
|
|
120
126
|
/** Instructs OpenSSL to always start a new session when performing renegotiation. */
|
|
121
127
|
const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
|
|
128
|
+
/** Instructs OpenSSL to turn off SSL v2 */
|
|
122
129
|
const SSL_OP_NO_SSLv2: number;
|
|
130
|
+
/** Instructs OpenSSL to turn off SSL v3 */
|
|
123
131
|
const SSL_OP_NO_SSLv3: number;
|
|
132
|
+
/** Instructs OpenSSL to disable use of RFC4507bis tickets. */
|
|
124
133
|
const SSL_OP_NO_TICKET: number;
|
|
134
|
+
/** Instructs OpenSSL to turn off TLS v1 */
|
|
125
135
|
const SSL_OP_NO_TLSv1: number;
|
|
136
|
+
/** Instructs OpenSSL to turn off TLS v1.1 */
|
|
126
137
|
const SSL_OP_NO_TLSv1_1: number;
|
|
138
|
+
/** Instructs OpenSSL to turn off TLS v1.2 */
|
|
127
139
|
const SSL_OP_NO_TLSv1_2: number;
|
|
140
|
+
/** Instructs OpenSSL to turn off TLS v1.3 */
|
|
141
|
+
const SSL_OP_NO_TLSv1_3: number;
|
|
142
|
+
/** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */
|
|
143
|
+
const SSL_OP_PRIORITIZE_CHACHA: number;
|
|
128
144
|
/** Instructs OpenSSL to disable version rollback attack detection. */
|
|
129
145
|
const SSL_OP_TLS_ROLLBACK_BUG: number;
|
|
130
146
|
const ENGINE_METHOD_RSA: number;
|
|
@@ -363,7 +379,7 @@ declare module "crypto" {
|
|
|
363
379
|
* @since v13.1.0
|
|
364
380
|
* @param options `stream.transform` options
|
|
365
381
|
*/
|
|
366
|
-
copy(options?:
|
|
382
|
+
copy(options?: HashOptions): Hash;
|
|
367
383
|
/**
|
|
368
384
|
* Updates the hash content with the given `data`, the encoding of which
|
|
369
385
|
* is given in `inputEncoding`.
|
|
@@ -454,6 +470,7 @@ declare module "crypto" {
|
|
|
454
470
|
* // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
|
|
455
471
|
* ```
|
|
456
472
|
* @since v0.1.94
|
|
473
|
+
* @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances.
|
|
457
474
|
*/
|
|
458
475
|
class Hmac extends stream.Transform {
|
|
459
476
|
private constructor();
|
|
@@ -637,6 +654,13 @@ declare module "crypto" {
|
|
|
637
654
|
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
638
655
|
export(options?: KeyExportOptions<"der">): Buffer;
|
|
639
656
|
export(options?: JwkKeyExportOptions): JsonWebKey;
|
|
657
|
+
/**
|
|
658
|
+
* Returns `true` or `false` depending on whether the keys have exactly the same
|
|
659
|
+
* type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
|
|
660
|
+
* @since v17.7.0, v16.15.0
|
|
661
|
+
* @param otherKeyObject A `KeyObject` with which to compare `keyObject`.
|
|
662
|
+
*/
|
|
663
|
+
equals(otherKeyObject: KeyObject): boolean;
|
|
640
664
|
/**
|
|
641
665
|
* For secret keys, this property represents the size of the key in bytes. This
|
|
642
666
|
* property is `undefined` for asymmetric keys.
|
|
@@ -665,7 +689,7 @@ declare module "crypto" {
|
|
|
665
689
|
authTagLength: number;
|
|
666
690
|
}
|
|
667
691
|
/**
|
|
668
|
-
* Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
|
|
692
|
+
* Creates and returns a `Cipher` object that uses the given `algorithm` and `password`.
|
|
669
693
|
*
|
|
670
694
|
* The `options` argument controls stream behavior and is optional except when a
|
|
671
695
|
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
|
|
@@ -883,8 +907,8 @@ declare module "crypto" {
|
|
|
883
907
|
private constructor();
|
|
884
908
|
/**
|
|
885
909
|
* Updates the cipher with `data`. If the `inputEncoding` argument is given,
|
|
886
|
-
* the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or`DataView`. If `data` is a `Buffer`,
|
|
887
|
-
* `TypedArray`, or `DataView`, then`inputEncoding` is ignored.
|
|
910
|
+
* the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`,
|
|
911
|
+
* `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
|
|
888
912
|
*
|
|
889
913
|
* The `outputEncoding` specifies the output format of the enciphered
|
|
890
914
|
* data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
|
|
@@ -954,10 +978,10 @@ declare module "crypto" {
|
|
|
954
978
|
getAuthTag(): Buffer;
|
|
955
979
|
}
|
|
956
980
|
/**
|
|
957
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
|
|
981
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
|
|
958
982
|
*
|
|
959
983
|
* The `options` argument controls stream behavior and is optional except when a
|
|
960
|
-
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
|
|
984
|
+
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
|
|
961
985
|
* authentication tag in bytes, see `CCM mode`.
|
|
962
986
|
* For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
|
|
963
987
|
*
|
|
@@ -985,11 +1009,11 @@ declare module "crypto" {
|
|
|
985
1009
|
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
986
1010
|
function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
|
|
987
1011
|
/**
|
|
988
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`).
|
|
1012
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
|
|
989
1013
|
*
|
|
990
1014
|
* The `options` argument controls stream behavior and is optional except when a
|
|
991
|
-
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
|
|
992
|
-
* authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to restrict accepted authentication tags
|
|
1015
|
+
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
|
|
1016
|
+
* authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags
|
|
993
1017
|
* to those with the specified length.
|
|
994
1018
|
* For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
|
|
995
1019
|
*
|
|
@@ -1149,11 +1173,11 @@ declare module "crypto" {
|
|
|
1149
1173
|
private constructor();
|
|
1150
1174
|
/**
|
|
1151
1175
|
* Updates the decipher with `data`. If the `inputEncoding` argument is given,
|
|
1152
|
-
* the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
|
|
1176
|
+
* the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
|
|
1153
1177
|
* ignored.
|
|
1154
1178
|
*
|
|
1155
1179
|
* The `outputEncoding` specifies the output format of the enciphered
|
|
1156
|
-
* data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
|
|
1180
|
+
* data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned.
|
|
1157
1181
|
*
|
|
1158
1182
|
* The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error
|
|
1159
1183
|
* being thrown.
|
|
@@ -1176,7 +1200,7 @@ declare module "crypto" {
|
|
|
1176
1200
|
final(): Buffer;
|
|
1177
1201
|
final(outputEncoding: BufferEncoding): string;
|
|
1178
1202
|
/**
|
|
1179
|
-
* When data has been encrypted without standard block padding, calling`decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
|
|
1203
|
+
* When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
|
|
1180
1204
|
* removing padding.
|
|
1181
1205
|
*
|
|
1182
1206
|
* Turning auto padding off will only work if the input data's length is a
|
|
@@ -1230,7 +1254,7 @@ declare module "crypto" {
|
|
|
1230
1254
|
encoding?: string | undefined;
|
|
1231
1255
|
}
|
|
1232
1256
|
/**
|
|
1233
|
-
* Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
|
|
1257
|
+
* Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
|
|
1234
1258
|
*
|
|
1235
1259
|
* ```js
|
|
1236
1260
|
* const {
|
|
@@ -1256,7 +1280,7 @@ declare module "crypto" {
|
|
|
1256
1280
|
callback: (err: Error | null, key: KeyObject) => void,
|
|
1257
1281
|
): void;
|
|
1258
1282
|
/**
|
|
1259
|
-
* Synchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
|
|
1283
|
+
* Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
|
|
1260
1284
|
*
|
|
1261
1285
|
* ```js
|
|
1262
1286
|
* const {
|
|
@@ -1284,7 +1308,7 @@ declare module "crypto" {
|
|
|
1284
1308
|
}
|
|
1285
1309
|
/**
|
|
1286
1310
|
* Creates and returns a new key object containing a private key. If `key` is a
|
|
1287
|
-
* string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`must be an object with the properties described above.
|
|
1311
|
+
* string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above.
|
|
1288
1312
|
*
|
|
1289
1313
|
* If the private key is encrypted, a `passphrase` must be specified. The length
|
|
1290
1314
|
* of the passphrase is limited to 1024 bytes.
|
|
@@ -1293,7 +1317,7 @@ declare module "crypto" {
|
|
|
1293
1317
|
function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
|
|
1294
1318
|
/**
|
|
1295
1319
|
* Creates and returns a new key object containing a public key. If `key` is a
|
|
1296
|
-
* string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject`with type `'private'`, the public key is derived from the given private key;
|
|
1320
|
+
* string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key;
|
|
1297
1321
|
* otherwise, `key` must be an object with the properties described above.
|
|
1298
1322
|
*
|
|
1299
1323
|
* If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
|
|
@@ -1301,7 +1325,7 @@ declare module "crypto" {
|
|
|
1301
1325
|
* Because public keys can be derived from private keys, a private key may be
|
|
1302
1326
|
* passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the
|
|
1303
1327
|
* returned `KeyObject` will be `'public'` and that the private key cannot be
|
|
1304
|
-
* extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type`'private'` is given, a new `KeyObject` with type `'public'` will be returned
|
|
1328
|
+
* extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned
|
|
1305
1329
|
* and it will be impossible to extract the private key from the returned object.
|
|
1306
1330
|
* @since v11.6.0
|
|
1307
1331
|
*/
|
|
@@ -1426,7 +1450,7 @@ declare module "crypto" {
|
|
|
1426
1450
|
/**
|
|
1427
1451
|
* Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
|
|
1428
1452
|
*
|
|
1429
|
-
* If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
|
|
1453
|
+
* If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
|
|
1430
1454
|
* object, the following additional properties can be passed:
|
|
1431
1455
|
*
|
|
1432
1456
|
* If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
|
@@ -1444,7 +1468,7 @@ declare module "crypto" {
|
|
|
1444
1468
|
/**
|
|
1445
1469
|
* Creates and returns a `Verify` object that uses the given algorithm.
|
|
1446
1470
|
* Use {@link getHashes} to obtain an array of names of the available
|
|
1447
|
-
* signing algorithms. Optional `options` argument controls the`stream.Writable` behavior.
|
|
1471
|
+
* signing algorithms. Optional `options` argument controls the `stream.Writable` behavior.
|
|
1448
1472
|
*
|
|
1449
1473
|
* In some cases, a `Verify` instance can be created using the name of a signature
|
|
1450
1474
|
* algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
|
|
@@ -1464,7 +1488,7 @@ declare module "crypto" {
|
|
|
1464
1488
|
* * Using the `verify.update()` and `verify.verify()` methods to verify
|
|
1465
1489
|
* the signature.
|
|
1466
1490
|
*
|
|
1467
|
-
* The {@link createVerify} method is used to create `Verify` instances
|
|
1491
|
+
* The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword.
|
|
1468
1492
|
*
|
|
1469
1493
|
* See `Sign` for examples.
|
|
1470
1494
|
* @since v0.1.92
|
|
@@ -1475,7 +1499,7 @@ declare module "crypto" {
|
|
|
1475
1499
|
* Updates the `Verify` content with the given `data`, the encoding of which
|
|
1476
1500
|
* is given in `inputEncoding`.
|
|
1477
1501
|
* If `inputEncoding` is not provided, and the `data` is a string, an
|
|
1478
|
-
* encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
|
|
1502
|
+
* encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
|
|
1479
1503
|
*
|
|
1480
1504
|
* This can be called many times with new data as it is streamed.
|
|
1481
1505
|
* @since v0.1.92
|
|
@@ -1486,13 +1510,13 @@ declare module "crypto" {
|
|
|
1486
1510
|
/**
|
|
1487
1511
|
* Verifies the provided data using the given `object` and `signature`.
|
|
1488
1512
|
*
|
|
1489
|
-
* If `object` is not a `KeyObject`, this function behaves as if`object` had been passed to {@link createPublicKey}. If it is an
|
|
1513
|
+
* If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
|
|
1490
1514
|
* object, the following additional properties can be passed:
|
|
1491
1515
|
*
|
|
1492
1516
|
* The `signature` argument is the previously calculated signature for the data, in
|
|
1493
1517
|
* the `signatureEncoding`.
|
|
1494
1518
|
* If a `signatureEncoding` is specified, the `signature` is expected to be a
|
|
1495
|
-
* string; otherwise `signature` is expected to be a `Buffer
|
|
1519
|
+
* string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1496
1520
|
*
|
|
1497
1521
|
* The `verify` object can not be used again after `verify.verify()` has been
|
|
1498
1522
|
* called. Multiple calls to `verify.verify()` will result in an error being
|
|
@@ -1516,7 +1540,7 @@ declare module "crypto" {
|
|
|
1516
1540
|
* Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
|
|
1517
1541
|
* optional specific `generator`.
|
|
1518
1542
|
*
|
|
1519
|
-
* The `generator` argument can be a number, string, or `Buffer`. If`generator` is not specified, the value `2` is used.
|
|
1543
|
+
* The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used.
|
|
1520
1544
|
*
|
|
1521
1545
|
* If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
|
|
1522
1546
|
* a `Buffer`, `TypedArray`, or `DataView` is expected.
|
|
@@ -1602,7 +1626,7 @@ declare module "crypto" {
|
|
|
1602
1626
|
* key is interpreted using the specified `inputEncoding`, and secret is
|
|
1603
1627
|
* encoded using specified `outputEncoding`.
|
|
1604
1628
|
* If the `inputEncoding` is not
|
|
1605
|
-
* provided, `otherPublicKey` is expected to be a `Buffer
|
|
1629
|
+
* provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1606
1630
|
*
|
|
1607
1631
|
* If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
|
|
1608
1632
|
* @since v0.5.0
|
|
@@ -1658,7 +1682,7 @@ declare module "crypto" {
|
|
|
1658
1682
|
getPrivateKey(): Buffer;
|
|
1659
1683
|
getPrivateKey(encoding: BinaryToTextEncoding): string;
|
|
1660
1684
|
/**
|
|
1661
|
-
* Sets the Diffie-Hellman public key. If the `encoding` argument is provided
|
|
1685
|
+
* Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected
|
|
1662
1686
|
* to be a string. If no `encoding` is provided, `publicKey` is expected
|
|
1663
1687
|
* to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1664
1688
|
* @since v0.5.0
|
|
@@ -1761,10 +1785,10 @@ declare module "crypto" {
|
|
|
1761
1785
|
/**
|
|
1762
1786
|
* Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
|
|
1763
1787
|
* implementation. A selected HMAC digest algorithm specified by `digest` is
|
|
1764
|
-
* applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
|
|
1788
|
+
* applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
|
|
1765
1789
|
*
|
|
1766
|
-
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set;
|
|
1767
|
-
* otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be
|
|
1790
|
+
* The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
|
|
1791
|
+
* otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be
|
|
1768
1792
|
* thrown if any of the input arguments specify invalid values or types.
|
|
1769
1793
|
*
|
|
1770
1794
|
* The `iterations` argument must be a number set as high as possible. The
|
|
@@ -1804,7 +1828,7 @@ declare module "crypto" {
|
|
|
1804
1828
|
/**
|
|
1805
1829
|
* Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
|
|
1806
1830
|
* implementation. A selected HMAC digest algorithm specified by `digest` is
|
|
1807
|
-
* applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
|
|
1831
|
+
* applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
|
|
1808
1832
|
*
|
|
1809
1833
|
* If an error occurs an `Error` will be thrown, otherwise the derived key will be
|
|
1810
1834
|
* returned as a `Buffer`.
|
|
@@ -1843,7 +1867,7 @@ declare module "crypto" {
|
|
|
1843
1867
|
*
|
|
1844
1868
|
* If a `callback` function is provided, the bytes are generated asynchronously
|
|
1845
1869
|
* and the `callback` function is invoked with two arguments: `err` and `buf`.
|
|
1846
|
-
* If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The`buf` argument is a `Buffer` containing the generated bytes.
|
|
1870
|
+
* If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes.
|
|
1847
1871
|
*
|
|
1848
1872
|
* ```js
|
|
1849
1873
|
* // Asynchronous
|
|
@@ -1897,7 +1921,7 @@ declare module "crypto" {
|
|
|
1897
1921
|
* Return a random integer `n` such that `min <= n < max`. This
|
|
1898
1922
|
* implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
|
|
1899
1923
|
*
|
|
1900
|
-
* The range (`max - min`) must be less than
|
|
1924
|
+
* The range (`max - min`) must be less than 2**48. `min` and `max` must
|
|
1901
1925
|
* be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
|
|
1902
1926
|
*
|
|
1903
1927
|
* If the `callback` function is not provided, the random integer is
|
|
@@ -2014,7 +2038,7 @@ declare module "crypto" {
|
|
|
2014
2038
|
* });
|
|
2015
2039
|
* ```
|
|
2016
2040
|
*
|
|
2017
|
-
* Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as`buffer`.
|
|
2041
|
+
* Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`.
|
|
2018
2042
|
*
|
|
2019
2043
|
* While this includes instances of `Float32Array` and `Float64Array`, this
|
|
2020
2044
|
* function should not be used to generate random floating-point numbers. The
|
|
@@ -2094,7 +2118,7 @@ declare module "crypto" {
|
|
|
2094
2118
|
*
|
|
2095
2119
|
* When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
|
|
2096
2120
|
*
|
|
2097
|
-
* The `callback` function is called with two arguments: `err` and `derivedKey
|
|
2121
|
+
* The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the
|
|
2098
2122
|
* callback as a `Buffer`.
|
|
2099
2123
|
*
|
|
2100
2124
|
* An exception is thrown when any of the input arguments specify invalid values
|
|
@@ -2180,8 +2204,8 @@ declare module "crypto" {
|
|
|
2180
2204
|
* Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
|
|
2181
2205
|
* the corresponding private key, for example using {@link privateDecrypt}.
|
|
2182
2206
|
*
|
|
2183
|
-
* If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
|
|
2184
|
-
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
|
|
2207
|
+
* If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
|
|
2208
|
+
* object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
|
|
2185
2209
|
*
|
|
2186
2210
|
* Because RSA public keys can be derived from private keys, a private key may
|
|
2187
2211
|
* be passed instead of a public key.
|
|
@@ -2192,8 +2216,8 @@ declare module "crypto" {
|
|
|
2192
2216
|
* Decrypts `buffer` with `key`.`buffer` was previously encrypted using
|
|
2193
2217
|
* the corresponding private key, for example using {@link privateEncrypt}.
|
|
2194
2218
|
*
|
|
2195
|
-
* If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
|
|
2196
|
-
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
|
|
2219
|
+
* If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
|
|
2220
|
+
* object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
|
|
2197
2221
|
*
|
|
2198
2222
|
* Because RSA public keys can be derived from private keys, a private key may
|
|
2199
2223
|
* be passed instead of a public key.
|
|
@@ -2204,8 +2228,8 @@ declare module "crypto" {
|
|
|
2204
2228
|
* Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
|
|
2205
2229
|
* the corresponding public key, for example using {@link publicEncrypt}.
|
|
2206
2230
|
*
|
|
2207
|
-
* If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
|
|
2208
|
-
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
|
|
2231
|
+
* If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
|
|
2232
|
+
* object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
|
|
2209
2233
|
* @since v0.11.14
|
|
2210
2234
|
*/
|
|
2211
2235
|
function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
|
@@ -2213,8 +2237,8 @@ declare module "crypto" {
|
|
|
2213
2237
|
* Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
|
|
2214
2238
|
* the corresponding public key, for example using {@link publicDecrypt}.
|
|
2215
2239
|
*
|
|
2216
|
-
* If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
|
|
2217
|
-
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
|
|
2240
|
+
* If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
|
|
2241
|
+
* object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
|
|
2218
2242
|
* @since v1.1.0
|
|
2219
2243
|
*/
|
|
2220
2244
|
function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
|
@@ -2309,9 +2333,9 @@ declare module "crypto" {
|
|
|
2309
2333
|
* On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
|
|
2310
2334
|
* the name and description of each available elliptic curve.
|
|
2311
2335
|
*
|
|
2312
|
-
* If `format` is not specified the point will be returned in `'uncompressed'`format.
|
|
2336
|
+
* If `format` is not specified the point will be returned in `'uncompressed'` format.
|
|
2313
2337
|
*
|
|
2314
|
-
* If the `inputEncoding` is not provided, `key` is expected to be a `Buffer
|
|
2338
|
+
* If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
2315
2339
|
*
|
|
2316
2340
|
* Example (uncompressing a key):
|
|
2317
2341
|
*
|
|
@@ -2352,7 +2376,7 @@ declare module "crypto" {
|
|
|
2352
2376
|
* the public key in the specified `format` and `encoding`. This key should be
|
|
2353
2377
|
* transferred to the other party.
|
|
2354
2378
|
*
|
|
2355
|
-
* The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
|
|
2379
|
+
* The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
|
|
2356
2380
|
*
|
|
2357
2381
|
* If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
|
2358
2382
|
* @since v0.11.14
|
|
@@ -2367,11 +2391,11 @@ declare module "crypto" {
|
|
|
2367
2391
|
* key is interpreted using specified `inputEncoding`, and the returned secret
|
|
2368
2392
|
* is encoded using the specified `outputEncoding`.
|
|
2369
2393
|
* If the `inputEncoding` is not
|
|
2370
|
-
* provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or`DataView`.
|
|
2394
|
+
* provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
2371
2395
|
*
|
|
2372
2396
|
* If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
|
|
2373
2397
|
*
|
|
2374
|
-
* `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey`lies outside of the elliptic curve. Since `otherPublicKey` is
|
|
2398
|
+
* `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is
|
|
2375
2399
|
* usually supplied from a remote user over an insecure network,
|
|
2376
2400
|
* be sure to handle this exception accordingly.
|
|
2377
2401
|
* @since v0.11.14
|
|
@@ -2396,7 +2420,7 @@ declare module "crypto" {
|
|
|
2396
2420
|
getPrivateKey(): Buffer;
|
|
2397
2421
|
getPrivateKey(encoding: BinaryToTextEncoding): string;
|
|
2398
2422
|
/**
|
|
2399
|
-
* The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
|
|
2423
|
+
* The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
|
|
2400
2424
|
*
|
|
2401
2425
|
* If `encoding` is specified, a string is returned; otherwise a `Buffer` is
|
|
2402
2426
|
* returned.
|
|
@@ -2410,7 +2434,7 @@ declare module "crypto" {
|
|
|
2410
2434
|
/**
|
|
2411
2435
|
* Sets the EC Diffie-Hellman private key.
|
|
2412
2436
|
* If `encoding` is provided, `privateKey` is expected
|
|
2413
|
-
* to be a string; otherwise `privateKey` is expected to be a `Buffer
|
|
2437
|
+
* to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
2414
2438
|
*
|
|
2415
2439
|
* If `privateKey` is not valid for the curve specified when the `ECDH` object was
|
|
2416
2440
|
* created, an error is thrown. Upon setting the private key, the associated
|
|
@@ -2430,7 +2454,7 @@ declare module "crypto" {
|
|
|
2430
2454
|
*/
|
|
2431
2455
|
function createECDH(curveName: string): ECDH;
|
|
2432
2456
|
/**
|
|
2433
|
-
* This function compares the underlying bytes that represent the given`ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
|
|
2457
|
+
* This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
|
|
2434
2458
|
* algorithm.
|
|
2435
2459
|
*
|
|
2436
2460
|
* This function does not leak timing information that
|
|
@@ -2445,8 +2469,8 @@ declare module "crypto" {
|
|
|
2445
2469
|
* entry, such as `Uint16Array`, the result will be computed using the platform
|
|
2446
2470
|
* byte order.
|
|
2447
2471
|
*
|
|
2448
|
-
* **When both of the inputs are `Float32Array`s or`Float64Array`s, this function might return unexpected results due to IEEE 754**
|
|
2449
|
-
* **encoding of floating-point numbers. In particular, neither `x === y` nor`Object.is(x, y)` implies that the byte representations of two floating-point**
|
|
2472
|
+
* **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754**
|
|
2473
|
+
* **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point**
|
|
2450
2474
|
* **numbers `x` and `y` are equal.**
|
|
2451
2475
|
*
|
|
2452
2476
|
* Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
|
|
@@ -2475,6 +2499,10 @@ declare module "crypto" {
|
|
|
2475
2499
|
* Name of the curve to use
|
|
2476
2500
|
*/
|
|
2477
2501
|
namedCurve: string;
|
|
2502
|
+
/**
|
|
2503
|
+
* Must be `'named'` or `'explicit'`. Default: `'named'`.
|
|
2504
|
+
*/
|
|
2505
|
+
paramEncoding?: "explicit" | "named" | undefined;
|
|
2478
2506
|
}
|
|
2479
2507
|
interface RSAKeyPairKeyObjectOptions {
|
|
2480
2508
|
/**
|
|
@@ -2585,11 +2613,7 @@ declare module "crypto" {
|
|
|
2585
2613
|
type: "pkcs8";
|
|
2586
2614
|
};
|
|
2587
2615
|
}
|
|
2588
|
-
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2589
|
-
/**
|
|
2590
|
-
* Name of the curve to use.
|
|
2591
|
-
*/
|
|
2592
|
-
namedCurve: string;
|
|
2616
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
|
|
2593
2617
|
publicKeyEncoding: {
|
|
2594
2618
|
type: "pkcs1" | "spki";
|
|
2595
2619
|
format: PubF;
|
|
@@ -2823,7 +2847,7 @@ declare module "crypto" {
|
|
|
2823
2847
|
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
|
2824
2848
|
* the respective part of the key is returned as a `KeyObject`.
|
|
2825
2849
|
*
|
|
2826
|
-
* It is recommended to encode public keys as `'spki'` and private keys as`'pkcs8'` with encryption for long-term storage:
|
|
2850
|
+
* It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage:
|
|
2827
2851
|
*
|
|
2828
2852
|
* ```js
|
|
2829
2853
|
* const {
|
|
@@ -2847,7 +2871,7 @@ declare module "crypto" {
|
|
|
2847
2871
|
* });
|
|
2848
2872
|
* ```
|
|
2849
2873
|
*
|
|
2850
|
-
* On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
|
|
2874
|
+
* On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
|
|
2851
2875
|
*
|
|
2852
2876
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
2853
2877
|
* a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
|
|
@@ -3321,7 +3345,7 @@ declare module "crypto" {
|
|
|
3321
3345
|
callback: (error: Error | null, data: Buffer) => void,
|
|
3322
3346
|
): void;
|
|
3323
3347
|
/**
|
|
3324
|
-
* Verifies the given signature for `data` using the given key and algorithm. If`algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
|
|
3348
|
+
* Verifies the given signature for `data` using the given key and algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
|
|
3325
3349
|
* key type (especially Ed25519 and Ed448).
|
|
3326
3350
|
*
|
|
3327
3351
|
* If `key` is not a `KeyObject`, this function behaves as if `key` had been
|
|
@@ -3351,10 +3375,45 @@ declare module "crypto" {
|
|
|
3351
3375
|
): void;
|
|
3352
3376
|
/**
|
|
3353
3377
|
* Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
|
|
3354
|
-
* Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
|
|
3378
|
+
* Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
|
|
3355
3379
|
* @since v13.9.0, v12.17.0
|
|
3356
3380
|
*/
|
|
3357
3381
|
function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
|
|
3382
|
+
/**
|
|
3383
|
+
* A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
|
|
3384
|
+
* (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
|
|
3385
|
+
* is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
|
|
3386
|
+
* of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
|
|
3387
|
+
*
|
|
3388
|
+
* Example:
|
|
3389
|
+
*
|
|
3390
|
+
* ```js
|
|
3391
|
+
* const crypto = require('node:crypto');
|
|
3392
|
+
* const { Buffer } = require('node:buffer');
|
|
3393
|
+
*
|
|
3394
|
+
* // Hashing a string and return the result as a hex-encoded string.
|
|
3395
|
+
* const string = 'Node.js';
|
|
3396
|
+
* // 10b3493287f831e81a438811a1ffba01f8cec4b7
|
|
3397
|
+
* console.log(crypto.hash('sha1', string));
|
|
3398
|
+
*
|
|
3399
|
+
* // Encode a base64-encoded string into a Buffer, hash it and return
|
|
3400
|
+
* // the result as a buffer.
|
|
3401
|
+
* const base64 = 'Tm9kZS5qcw==';
|
|
3402
|
+
* // <Buffer 10 b3 49 32 87 f8 31 e8 1a 43 88 11 a1 ff ba 01 f8 ce c4 b7>
|
|
3403
|
+
* console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
|
|
3404
|
+
* ```
|
|
3405
|
+
* @since v21.7.0, v20.12.0
|
|
3406
|
+
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
|
|
3407
|
+
* could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
|
|
3408
|
+
* @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v20.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
|
|
3409
|
+
*/
|
|
3410
|
+
function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
|
|
3411
|
+
function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
|
|
3412
|
+
function hash(
|
|
3413
|
+
algorithm: string,
|
|
3414
|
+
data: BinaryLike,
|
|
3415
|
+
outputEncoding?: BinaryToTextEncoding | "buffer",
|
|
3416
|
+
): string | Buffer;
|
|
3358
3417
|
type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
|
|
3359
3418
|
interface CipherInfoOptions {
|
|
3360
3419
|
/**
|
|
@@ -3407,9 +3466,9 @@ declare module "crypto" {
|
|
|
3407
3466
|
*/
|
|
3408
3467
|
function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
|
|
3409
3468
|
/**
|
|
3410
|
-
* HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm
|
|
3469
|
+
* HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
|
|
3411
3470
|
*
|
|
3412
|
-
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
|
3471
|
+
* The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
|
3413
3472
|
* otherwise `err` will be `null`. The successfully generated `derivedKey` will
|
|
3414
3473
|
* be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
|
|
3415
3474
|
* of the input arguments specify invalid values or types.
|
|
@@ -3443,7 +3502,7 @@ declare module "crypto" {
|
|
|
3443
3502
|
): void;
|
|
3444
3503
|
/**
|
|
3445
3504
|
* Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
|
|
3446
|
-
* given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes.
|
|
3505
|
+
* given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
|
|
3447
3506
|
*
|
|
3448
3507
|
* The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
|
|
3449
3508
|
*
|
|
@@ -3772,7 +3831,7 @@ declare module "crypto" {
|
|
|
3772
3831
|
/**
|
|
3773
3832
|
* Generates a pseudorandom prime of `size` bits.
|
|
3774
3833
|
*
|
|
3775
|
-
* If `options.safe` is `true`, the prime will be a safe prime -- that is
|
|
3834
|
+
* If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
|
|
3776
3835
|
*
|
|
3777
3836
|
* The `options.add` and `options.rem` parameters can be used to enforce additional
|
|
3778
3837
|
* requirements, e.g., for Diffie-Hellman:
|
|
@@ -3788,7 +3847,7 @@ declare module "crypto" {
|
|
|
3788
3847
|
* * `options.rem` is ignored if `options.add` is not given.
|
|
3789
3848
|
*
|
|
3790
3849
|
* Both `options.add` and `options.rem` must be encoded as big-endian sequences
|
|
3791
|
-
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
|
|
3850
|
+
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
|
|
3792
3851
|
*
|
|
3793
3852
|
* By default, the prime is encoded as a big-endian sequence of octets
|
|
3794
3853
|
* in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
|
|
@@ -3815,7 +3874,7 @@ declare module "crypto" {
|
|
|
3815
3874
|
/**
|
|
3816
3875
|
* Generates a pseudorandom prime of `size` bits.
|
|
3817
3876
|
*
|
|
3818
|
-
* If `options.safe` is `true`, the prime will be a safe prime -- that is
|
|
3877
|
+
* If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
|
|
3819
3878
|
*
|
|
3820
3879
|
* The `options.add` and `options.rem` parameters can be used to enforce additional
|
|
3821
3880
|
* requirements, e.g., for Diffie-Hellman:
|
|
@@ -3831,7 +3890,7 @@ declare module "crypto" {
|
|
|
3831
3890
|
* * `options.rem` is ignored if `options.add` is not given.
|
|
3832
3891
|
*
|
|
3833
3892
|
* Both `options.add` and `options.rem` must be encoded as big-endian sequences
|
|
3834
|
-
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
|
|
3893
|
+
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
|
|
3835
3894
|
*
|
|
3836
3895
|
* By default, the prime is encoded as a big-endian sequence of octets
|
|
3837
3896
|
* in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
|
|
@@ -3877,7 +3936,7 @@ declare module "crypto" {
|
|
|
3877
3936
|
*
|
|
3878
3937
|
* `engine` could be either an id or a path to the engine's shared library.
|
|
3879
3938
|
*
|
|
3880
|
-
* The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags`is a bit field taking one of or a mix of the following flags (defined in`crypto.constants`):
|
|
3939
|
+
* The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
|
|
3881
3940
|
*
|
|
3882
3941
|
* * `crypto.constants.ENGINE_METHOD_RSA`
|
|
3883
3942
|
* * `crypto.constants.ENGINE_METHOD_DSA`
|
|
@@ -4450,6 +4509,14 @@ declare module "crypto" {
|
|
|
4450
4509
|
): Promise<ArrayBuffer>;
|
|
4451
4510
|
}
|
|
4452
4511
|
}
|
|
4512
|
+
|
|
4513
|
+
global {
|
|
4514
|
+
var crypto: typeof globalThis extends {
|
|
4515
|
+
crypto: infer T;
|
|
4516
|
+
onmessage: any;
|
|
4517
|
+
} ? T
|
|
4518
|
+
: webcrypto.Crypto;
|
|
4519
|
+
}
|
|
4453
4520
|
}
|
|
4454
4521
|
declare module "node:crypto" {
|
|
4455
4522
|
export * from "crypto";
|