Yokan / rebuild
Course 1 8624561

CryptoBridge.wasm.kt

composeApp/src/wasmJsMain/kotlin/eu/friedcutlet/yokan/services/extensions/js/CryptoBridge.wasm.kt

implementation12 lines
1package eu.friedcutlet.yokan.services.extensions.js23// ponytail: WebCrypto (the only browser crypto, also what cryptography-kotlin wraps on wasm) is4// async-only, so these synchronous JS-bridge functions cannot use it: AES returns null and the5// digests are pure Kotlin. Upgrade path: a suspending/async crypto bridge for extensions.6// AES is only used by anime-extractor deobfuscation paths; callers treat null7// as "cipher unavailable" and fall back.8actual fun aesEncryptBlock(key: ByteArray, block: ByteArray): ByteArray? = null910actual fun aesEncrypt(key: ByteArray, iv: ByteArray, data: ByteArray): ByteArray? = null1112actual fun aesDecrypt(key: ByteArray, iv: ByteArray, data: ByteArray): ByteArray? = null13

Search chapters, reference and source filenames.