decord/source/modules/remote_auth/RemoteAuthCrypto.android.tsx

54 lines
1.9 KiB
TypeScript
Raw Normal View History

// Module ID: 16085
// Function ID: 16086
// Name: RemoteAuthCrypto
// Dependencies: [5, 16086, 2]
2026-07-21 06:55:02 +00:00
// Module 16085 (RemoteAuthCrypto)
import NativeRemoteAuthCryptoModuleDefault from "NativeRemoteAuthCryptoModule" /* 16086 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let closure_3 = {};
class AndroidRemoteAuthCrypto {
}
const prototype = AndroidRemoteAuthCrypto.prototype;
prototype["generateRsaKeyPair"] = function generateRsaKeyPair() {
return (async () => {
2026-08-24 06:08:38 +00:00
closure_0 = tmp4;
await NativeRemoteAuthCryptoModuleDefault.generateKeyPair();
return closure_128_3;
2026-07-29 08:29:29 +00:00
})();
};
prototype["serializePublicKey"] = function serializePublicKey() {
return NativeRemoteAuthCryptoModuleDefault.getEncodedPublicKey();
2026-07-29 08:29:29 +00:00
};
prototype["publicKeyFingerprint"] = function publicKeyFingerprint() {
return NativeRemoteAuthCryptoModuleDefault.getPublicKeyFingerprint();
2026-07-29 08:29:29 +00:00
};
prototype["decryptEncodedCiphertext"] = function decryptEncodedCiphertext(current, encrypted_token) {
closure_0 = encrypted_token;
return (async () => {
closure_128_0 = await tmp2(c1[1]).decrypt(tmp2);
2026-08-04 21:03:28 +00:00
const _Uint8Array = Uint8Array;
const _atob = atob;
closure_128_1 = Uint8Array.from(atob(closure_128_0), (str) => str.charCodeAt(0));
2026-08-04 21:03:28 +00:00
const _TextDecoder = TextDecoder;
const decoder = new TextDecoder();
return decoder.decode(closure_128_1);
2026-07-29 08:29:29 +00:00
})();
};
prototype["decryptNonce"] = function decryptNonce(arg0, arg1) {
closure_0 = arg1;
return (async () => {
v3(dependencyMap[1]);
await v3(c1[1]).decrypt(closure_0).then((result) => result.replace(/\//g, "_").replace(/\+/g, "-"));
2026-08-04 21:03:28 +00:00
return arg1;
2026-07-29 08:29:29 +00:00
})();
};
prototype["release"] = function release() {
NativeRemoteAuthCryptoModuleDefault.releaseKeyPair();
2026-07-29 08:29:29 +00:00
};
const size = fn(2);
const result = size.fileFinishedImporting("modules/remote_auth/RemoteAuthCrypto.android.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default Object.create(AndroidRemoteAuthCrypto.prototype);