Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

474 B
Raw Blame
import { expose } from "comlink";
import { decryptBlobBytes } from "ente-base/crypto/libsodium";
import type { BytesOrB64, EncryptedBlob } from "ente-base/crypto/types";
import { logUnhandledErrorsAndRejectionsInWorker } from "ente-base/log-web";

export class ThumbnailCryptoWorker {
    decryptBlobBytes(blob: EncryptedBlob, key: BytesOrB64) {
        return decryptBlobBytes(blob, key);
    }
}

expose(ThumbnailCryptoWorker);

logUnhandledErrorsAndRejectionsInWorker();