diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml index 117a037..8eb6598 100644 --- a/.github/workflows/jsr.yml +++ b/.github/workflows/jsr.yml @@ -20,4 +20,4 @@ jobs: run: bun i - name: Publish package - run: bunx --bun jsr publish \ No newline at end of file + run: bunx --bun jsr publish --allow-slow-types \ No newline at end of file diff --git a/src/crapto1.ts b/src/crapto1.ts index 0901ca9..6aa41c8 100644 --- a/src/crapto1.ts +++ b/src/crapto1.ts @@ -13,7 +13,7 @@ export class Crapto1 { rresp2: number = 0; key: bigint = -1n; - static CraptoData = class{ + static CraptoData = class { uid: number = 0; chal: number[] = []; rchal: number[] = []; @@ -256,7 +256,7 @@ export class Crapto1 { return ret; } - crypto1_get_lfsr(state: Crypto1State[], t: number, lfsr: bigint) { + crypto1_get_lfsr(state: Crypto1State[], t: number, lfsr: bigint): bigint { let i: number; for (lfsr = 0n, i = 23; i >= 0; --i) { lfsr = lfsr << 1n | BigInt(this.bit(state[t].odd, i ^ 3));