mirror of
https://github.com/JonasunderscoreJones/aka-worker.git
synced 2025-10-23 18:09:19 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
parent
8cb86120f1
commit
fff961078a
1777 changed files with 1011798 additions and 0 deletions
24
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-fn.d.ts
generated
vendored
Normal file
24
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-fn.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
/// <reference types="node" />
|
||||
import { BaseHashInput, IBaseHashOptions } from '../base/hash-fn';
|
||||
/**
|
||||
* Input used for node-based hashes.
|
||||
*/
|
||||
export declare type HashInput = BaseHashInput | string;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export declare const normalizeInput: (input: HashInput, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined) => Uint8Array;
|
||||
/**
|
||||
* Returns a blake3 hash of the input, returning the binary hash data.
|
||||
*/
|
||||
export declare function hash(input: HashInput, { length }?: IBaseHashOptions): Buffer | string;
|
||||
/**
|
||||
* Given cryptographic key material and a context string, services a subkey of
|
||||
* any length. See {@link https://docs.rs/blake3/0.1.3/blake3/fn.derive_key.html}
|
||||
* for more information.
|
||||
*/
|
||||
export declare function deriveKey(context: string, material: HashInput, { length }?: IBaseHashOptions): Buffer;
|
||||
/**
|
||||
* The keyed hash function. See {@link https://docs.rs/blake3/0.1.3/blake3/fn.keyed_hash.html}.
|
||||
*/
|
||||
export declare function keyedHash(key: Buffer, input: HashInput, { length }?: IBaseHashOptions): Buffer;
|
40
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-fn.js
generated
vendored
Normal file
40
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-fn.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
import { inputToArray, defaultHashLength } from '../base/hash-fn.js';
|
||||
import { hash as rawHash, create_derive as createDerive, create_keyed as createKeyed, } from '../../dist/wasm/nodejs/blake3_js.js';
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export const normalizeInput = (input, encoding) => inputToArray(typeof input === 'string' ? Buffer.from(input, encoding) : input);
|
||||
/**
|
||||
* Returns a blake3 hash of the input, returning the binary hash data.
|
||||
*/
|
||||
export function hash(input, { length = defaultHashLength } = {}) {
|
||||
const result = Buffer.alloc(length);
|
||||
rawHash(normalizeInput(input), result);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Given cryptographic key material and a context string, services a subkey of
|
||||
* any length. See {@link https://docs.rs/blake3/0.1.3/blake3/fn.derive_key.html}
|
||||
* for more information.
|
||||
*/
|
||||
export function deriveKey(context, material, { length = defaultHashLength } = {}) {
|
||||
const derive = createDerive(context);
|
||||
derive.update(normalizeInput(material));
|
||||
const result = Buffer.alloc(length);
|
||||
derive.digest(result);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* The keyed hash function. See {@link https://docs.rs/blake3/0.1.3/blake3/fn.keyed_hash.html}.
|
||||
*/
|
||||
export function keyedHash(key, input, { length = defaultHashLength } = {}) {
|
||||
if (key.length !== 32) {
|
||||
throw new Error(`key provided to keyedHash must be 32 bytes, got ${key.length}`);
|
||||
}
|
||||
const derive = createKeyed(key);
|
||||
derive.update(normalizeInput(input));
|
||||
const result = Buffer.alloc(length);
|
||||
derive.digest(result);
|
||||
return result;
|
||||
}
|
||||
//# sourceMappingURL=hash-fn.js.map
|
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-fn.js.map
generated
vendored
Normal file
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-fn.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"hash-fn.js","sourceRoot":"","sources":["../../ts/node/hash-fn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAoB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,EACL,IAA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AAC,GAAG,CAAC,CAAC;IAChC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IACrC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
75
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-instance.d.ts
generated
vendored
Normal file
75
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-instance.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,75 @@
|
|||
/// <reference types="node" />
|
||||
import { HashInput } from './hash-fn';
|
||||
import { IHasher, IInternalHash, IHasherDigestOptions } from '../base/index';
|
||||
import { Transform, TransformCallback } from 'stream';
|
||||
import { IBaseHashOptions } from '../base/hash-fn';
|
||||
import { NodeHashReader } from './hash-reader';
|
||||
export interface INodeHash extends IHasher<Buffer> {
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @override
|
||||
*/
|
||||
update(data: HashInput, encoding?: BufferEncoding): this;
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @override
|
||||
*/
|
||||
digest(options?: IBaseHashOptions): Buffer;
|
||||
/**
|
||||
* Returns a digest of the hash with the given set of hash options.
|
||||
*/
|
||||
digest(encoding: undefined, options: IBaseHashOptions): Buffer;
|
||||
/**
|
||||
* Returns a digest of the hash with the given encoding.
|
||||
*/
|
||||
digest(encoding: BufferEncoding, options?: IBaseHashOptions): string;
|
||||
}
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
export declare class NodeHash<Reader> extends Transform implements IHasher<Buffer> {
|
||||
private readonly hash;
|
||||
constructor(implementation: IInternalHash<Reader>, getReader: (r: Reader) => NodeHashReader);
|
||||
/**
|
||||
* @reader
|
||||
*/
|
||||
reader(options?: {
|
||||
dispose?: boolean;
|
||||
}): NodeHashReader;
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
update(data: HashInput, encoding?: BufferEncoding): this;
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
digest(encoding?: IHasherDigestOptions): Buffer;
|
||||
digest(encoding: undefined, options: IHasherDigestOptions): Buffer;
|
||||
digest(encoding: BufferEncoding, options?: IHasherDigestOptions): string;
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
dispose(): void;
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @hidden
|
||||
*/
|
||||
_transform(chunk: Buffer | string, encoding: string, callback: TransformCallback): void;
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @hidden
|
||||
*/
|
||||
_flush(callback: TransformCallback): void;
|
||||
}
|
||||
/**
|
||||
* A Node.js crypto-like createHash method.
|
||||
*/
|
||||
export declare const createHash: () => NodeHash<import("../../dist/wasm/nodejs/blake3_js").HashReader>;
|
||||
/**
|
||||
* Construct a new Hasher for the keyed hash function.
|
||||
*/
|
||||
export declare const createKeyed: (key: Buffer) => NodeHash<import("../../dist/wasm/nodejs/blake3_js").HashReader>;
|
||||
/**
|
||||
* Construct a new Hasher for the key derivation function.
|
||||
*/
|
||||
export declare const createDeriveKey: (context: string) => NodeHash<import("../../dist/wasm/nodejs/blake3_js").HashReader>;
|
76
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-instance.js
generated
vendored
Normal file
76
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-instance.js
generated
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
import { normalizeInput } from './hash-fn.js';
|
||||
import { BaseHash } from '../base/index.js';
|
||||
import { Transform } from 'stream.js';
|
||||
import { getWasm } from './wasm.js';
|
||||
import { NodeHashReader } from './hash-reader.js';
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
export class NodeHash extends Transform {
|
||||
constructor(implementation, getReader) {
|
||||
super();
|
||||
this.hash = new BaseHash(implementation, l => Buffer.alloc(l), getReader);
|
||||
}
|
||||
/**
|
||||
* @reader
|
||||
*/
|
||||
reader(options) {
|
||||
const reader = this.hash.reader(options);
|
||||
return reader;
|
||||
}
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
update(data, encoding) {
|
||||
this.hash.update(normalizeInput(data, encoding));
|
||||
return this;
|
||||
}
|
||||
digest(encoding, options) {
|
||||
let resolvedOpts;
|
||||
let resolvedEnc;
|
||||
if (encoding && typeof encoding === 'object') {
|
||||
resolvedOpts = encoding;
|
||||
resolvedEnc = undefined;
|
||||
}
|
||||
else {
|
||||
resolvedOpts = options;
|
||||
resolvedEnc = encoding;
|
||||
}
|
||||
const result = this.hash.digest(resolvedOpts);
|
||||
return resolvedEnc ? result.toString(resolvedEnc) : result;
|
||||
}
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
dispose() {
|
||||
this.hash.dispose();
|
||||
}
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @hidden
|
||||
*/
|
||||
_transform(chunk, encoding, callback) {
|
||||
this.update(chunk, encoding);
|
||||
callback();
|
||||
}
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @hidden
|
||||
*/
|
||||
_flush(callback) {
|
||||
callback(null, this.digest());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* A Node.js crypto-like createHash method.
|
||||
*/
|
||||
export const createHash = () => new NodeHash(getWasm().create_hasher(), r => new NodeHashReader(r));
|
||||
/**
|
||||
* Construct a new Hasher for the keyed hash function.
|
||||
*/
|
||||
export const createKeyed = (key) => new NodeHash(getWasm().create_keyed(key), r => new NodeHashReader(r));
|
||||
/**
|
||||
* Construct a new Hasher for the key derivation function.
|
||||
*/
|
||||
export const createDeriveKey = (context) => new NodeHash(getWasm().create_derive(context), r => new NodeHashReader(r));
|
||||
//# sourceMappingURL=hash-instance.js.map
|
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-instance.js.map
generated
vendored
Normal file
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-instance.js.map
generated
vendored
Normal file
|
@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al file
16
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-reader.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
/// <reference types="node" />
|
||||
import { BaseHashReader } from '../base/hash-reader';
|
||||
/**
|
||||
* A hash reader for WebAssembly targets.
|
||||
*/
|
||||
export declare class NodeHashReader extends BaseHashReader<Buffer> {
|
||||
/**
|
||||
* Converts first 32 bytes of the hash to a string with the given encoding.
|
||||
*/
|
||||
toString(encoding?: BufferEncoding): string;
|
||||
/**
|
||||
* Converts first 32 bytes of the hash to an array.
|
||||
*/
|
||||
toBuffer(): Buffer;
|
||||
protected alloc(bytes: number): Buffer;
|
||||
}
|
24
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-reader.js
generated
vendored
Normal file
24
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-reader.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { BaseHashReader } from '../base/hash-reader.js';
|
||||
import { defaultHashLength } from '../base/hash-fn.js';
|
||||
/**
|
||||
* A hash reader for WebAssembly targets.
|
||||
*/
|
||||
export class NodeHashReader extends BaseHashReader {
|
||||
/**
|
||||
* Converts first 32 bytes of the hash to a string with the given encoding.
|
||||
*/
|
||||
toString(encoding = 'hex') {
|
||||
return this.toBuffer().toString(encoding);
|
||||
}
|
||||
/**
|
||||
* Converts first 32 bytes of the hash to an array.
|
||||
*/
|
||||
toBuffer() {
|
||||
this.position = BigInt(0);
|
||||
return this.read(defaultHashLength);
|
||||
}
|
||||
alloc(bytes) {
|
||||
return Buffer.alloc(bytes);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=hash-reader.js.map
|
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-reader.js.map
generated
vendored
Normal file
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/hash-reader.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"hash-reader.js","sourceRoot":"","sources":["../../ts/node/hash-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,cAAsB;IACxD;;OAEG;IACI,QAAQ,CAAC,WAA2B,KAAK;QAC9C,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACI,QAAQ;QACb,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACtC,CAAC;IAES,KAAK,CAAC,KAAa;QAC3B,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;CACF"}
|
4
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/index.d.ts
generated
vendored
Normal file
4
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
export { hash, deriveKey, keyedHash, HashInput } from './hash-fn';
|
||||
export * from './hash-instance';
|
||||
export * from './hash-reader';
|
||||
export * from '../base/index';
|
5
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/index.js
generated
vendored
Normal file
5
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/index.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
export { hash, deriveKey, keyedHash } from './hash-fn.js';
|
||||
export * from './hash-instance.js';
|
||||
export * from './hash-reader.js';
|
||||
export * from '../base/index.js';
|
||||
//# sourceMappingURL=index.js.map
|
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/index.js.map
generated
vendored
Normal file
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/index.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,WAAW,CAAC;AAClE,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
6
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/wasm.d.ts
generated
vendored
Normal file
6
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/wasm.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
import * as wasm from '../../dist/wasm/nodejs/blake3_js';
|
||||
/**
|
||||
* Lazyily get the WebAssembly module. Used to avoid unnecessarily importing
|
||||
* the wasm when extending the WebAssembly node code for native bindings.
|
||||
*/
|
||||
export declare const getWasm: () => typeof wasm;
|
12
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/wasm.js
generated
vendored
Normal file
12
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/wasm.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
let w;
|
||||
/**
|
||||
* Lazyily get the WebAssembly module. Used to avoid unnecessarily importing
|
||||
* the wasm when extending the WebAssembly node code for native bindings.
|
||||
*/
|
||||
export const getWasm = () => {
|
||||
if (!w) {
|
||||
w = require('../../dist/wasm/nodejs/blake3_js');
|
||||
}
|
||||
return w;
|
||||
};
|
||||
//# sourceMappingURL=wasm.js.map
|
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/wasm.js.map
generated
vendored
Normal file
1
cool-dawn-3d3b/node_modules/blake3-wasm/esm/node/wasm.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"wasm.js","sourceRoot":"","sources":["../../ts/node/wasm.ts"],"names":[],"mappings":"AAEA,IAAI,CAA0B,CAAC;AAE/B;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE;IAC1B,IAAI,CAAC,CAAC,EAAE;QACN,CAAC,GAAG,OAAO,CAAC,kCAAkC,CAAgB,CAAC;KAChE;IAED,OAAO,CAAC,CAAC;AACX,CAAC,CAAC"}
|
Loading…
Add table
Add a link
Reference in a new issue