decord/alpha/source/modules/remote_auth/RemoteAuthCrypto.android.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

53 lines
1.9 KiB
TypeScript

// Module ID: 15831
// Function ID: 15832
// Name: RemoteAuthCrypto
// Dependencies: [5, 15832, 2]
// Module 15831 (RemoteAuthCrypto)
import NativeRemoteAuthCryptoModuleDefault from "NativeRemoteAuthCryptoModule" /* 15832 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
let closure_3 = {};
class AndroidRemoteAuthCrypto {
}
const prototype = AndroidRemoteAuthCrypto.prototype;
prototype["generateRsaKeyPair"] = function generateRsaKeyPair() {
return (async () => {
closure_0 = tmp4;
await NativeRemoteAuthCryptoModuleDefault.generateKeyPair();
return closure_128_3;
})();
};
prototype["serializePublicKey"] = function serializePublicKey() {
return NativeRemoteAuthCryptoModuleDefault.getEncodedPublicKey();
};
prototype["publicKeyFingerprint"] = function publicKeyFingerprint() {
return NativeRemoteAuthCryptoModuleDefault.getPublicKeyFingerprint();
};
prototype["decryptEncodedCiphertext"] = function decryptEncodedCiphertext(current, encrypted_token) {
closure_0 = encrypted_token;
return (async () => {
closure_128_0 = await tmp2(c1[1]).decrypt(tmp2);
const _Uint8Array = Uint8Array;
const _atob = atob;
closure_128_1 = Uint8Array.from(atob(closure_128_0), (str) => str.charCodeAt(0));
const _TextDecoder = TextDecoder;
const decoder = new TextDecoder();
return decoder.decode(closure_128_1);
})();
};
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, "-"));
return arg1;
})();
};
prototype["release"] = function release() {
NativeRemoteAuthCryptoModuleDefault.releaseKeyPair();
};
const size = fn(2);
const result = size.fileFinishedImporting("modules/remote_auth/RemoteAuthCrypto.android.tsx");
export default Object.create(AndroidRemoteAuthCrypto.prototype);