mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
fix: build errors
This commit is contained in:
parent
1d11cf3f99
commit
8ef2b18424
11 changed files with 28 additions and 64 deletions
|
|
@ -19,7 +19,9 @@ import { ThreeDsTomodachiLifeMii, HairDyeMode } from "./three-ds-tomodachi-life-
|
|||
/** Private _ctrMode function defined here: {@link https://github.com/bitwiseshiftleft/sjcl/blob/85caa53c281eeeb502310013312c775d35fe0867/core/ccm.js#L194} */
|
||||
const sjclCcmCtrMode:
|
||||
| ((prf: sjcl.SjclCipher, data: sjcl.BitArray, iv: sjcl.BitArray, tag: sjcl.BitArray, tlen: number, L: number) => { data: sjcl.BitArray; tag: sjcl.BitArray })
|
||||
| undefined = sjcl.mode.ccm.u; // NOTE: This may need to be changed with a different sjcl build. Read above
|
||||
| undefined =
|
||||
// @ts-ignore -- Referencing a private function that is not in the types.
|
||||
sjcl.mode.ccm.u; // NOTE: This may need to be changed with a different sjcl build. Read above
|
||||
|
||||
export function convertQrCode(bytes: Uint8Array): { mii: Mii; tomodachiLifeMii: ThreeDsTomodachiLifeMii } | never {
|
||||
// Decrypt 96 byte 3DS/Wii U format Mii data from the QR code.
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { TOMODACHI_LIFE_DECRYPTION_KEY } from "./constants";
|
|||
// @ts-ignore
|
||||
import sjcl from "sjcl-with-all";
|
||||
|
||||
// @ts-ignore - This is not in the types, but it's a function needed to enable CTR mode.
|
||||
sjcl.beware["CTR mode is dangerous because it doesn't protect message integrity."]();
|
||||
|
||||
// Converts hair dye to studio color
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue