/opt/canhelp/node_modules/jose/dist/webapi/lib
NameSizeModeActions
aesgcmkw.js6000644editdlrm
aeskw.js11890644editdlrm
asn1.js87170644editdlrm
base64.js6730644editdlrm
buffer_utils.js13450644editdlrm
check_key_type.js47680644editdlrm
content_encryption.js76360644editdlrm
crypto_key.js45660644editdlrm
deflate.js15250644editdlrm
ecdhes.js20290644editdlrm
helpers.js5960644editdlrm
invalid_key_input.js9740644editdlrm
is_key_like.js4930644editdlrm
jwk_to_key.js40090644editdlrm
jwt_claims_set.js82080644editdlrm
key_management.js80750644editdlrm
key_to_jwk.js9430644editdlrm
normalize_key.js52830644editdlrm
pbes2kw.js16140644editdlrm
rsaes.js9300644editdlrm
signing.js25210644editdlrm
type_checks.js14700644editdlrm
validate_algorithms.js3560644editdlrm
validate_crit.js15830644editdlrm
Edit: /opt/canhelp/node_modules/jose/dist/webapi/lib/buffer_utils.js (1345B)
export const encoder = new TextEncoder(); export const decoder = new TextDecoder(); const MAX_INT32 = 2 ** 32; export function concat(...buffers) { const size = buffers.reduce((acc, { length }) => acc + length, 0); const buf = new Uint8Array(size); let i = 0; for (const buffer of buffers) { buf.set(buffer, i); i += buffer.length; } return buf; } function writeUInt32BE(buf, value, offset) { if (value < 0 || value >= MAX_INT32) { throw new RangeError(`value must be >= 0 and <= ${MAX_INT32 - 1}. Received ${value}`); } buf.set([value >>> 24, value >>> 16, value >>> 8, value & 0xff], offset); } export function uint64be(value) { const high = Math.floor(value / MAX_INT32); const low = value % MAX_INT32; const buf = new Uint8Array(8); writeUInt32BE(buf, high, 0); writeUInt32BE(buf, low, 4); return buf; } export function uint32be(value) { const buf = new Uint8Array(4); writeUInt32BE(buf, value); return buf; } export function encode(string) { const bytes = new Uint8Array(string.length); for (let i = 0; i < string.length; i++) { const code = string.charCodeAt(i); if (code > 127) { throw new TypeError('non-ASCII string encountered in encode()'); } bytes[i] = code; } return bytes; }