- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
211 lines
5.0 KiB
Smali
211 lines
5.0 KiB
Smali
.class public final Lcom/google/android/gms/internal/ads/zzguj;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/internal/ads/zzgvg;
|
|
|
|
|
|
# static fields
|
|
.field private static final zza:Ljava/lang/ThreadLocal;
|
|
|
|
|
|
# instance fields
|
|
.field private final zzb:Ljavax/crypto/spec/SecretKeySpec;
|
|
|
|
.field private final zzc:I
|
|
|
|
.field private final zzd:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/gms/internal/ads/zzgui;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/internal/ads/zzgui;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/internal/ads/zzguj;->zza:Ljava/lang/ThreadLocal;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>([BI)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/security/GeneralSecurityException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/internal/ads/zzgks;->zza(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
array-length v0, p1
|
|
|
|
.line 3
|
|
invoke-static {v0}, Lcom/google/android/gms/internal/ads/zzgvm;->zza(I)V
|
|
|
|
.line 4
|
|
new-instance v0, Ljavax/crypto/spec/SecretKeySpec;
|
|
|
|
const-string v1, "AES"
|
|
|
|
invoke-direct {v0, p1, v1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzb:Ljavax/crypto/spec/SecretKeySpec;
|
|
|
|
sget-object p1, Lcom/google/android/gms/internal/ads/zzguj;->zza:Ljava/lang/ThreadLocal;
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljavax/crypto/Cipher;
|
|
|
|
invoke-virtual {p1}, Ljavax/crypto/Cipher;->getBlockSize()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzd:I
|
|
|
|
if-gt p2, p1, :cond_0
|
|
|
|
iput p2, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzc:I
|
|
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string p2, "invalid IV size"
|
|
|
|
invoke-direct {p1, p2}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 2
|
|
:cond_1
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string p2, "Can not use AES-CTR in FIPS-mode, as BoringCrypto module is not available."
|
|
|
|
invoke-direct {p1, p2}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final zza([B)[B
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/security/GeneralSecurityException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
array-length v0, p1
|
|
|
|
iget v1, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzc:I
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 2
|
|
new-array v2, v1, [B
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 3
|
|
invoke-static {p1, v3, v2, v3, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
iget v6, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzc:I
|
|
|
|
sub-int/2addr v0, v6
|
|
|
|
.line 4
|
|
new-array v1, v0, [B
|
|
|
|
sget-object v4, Lcom/google/android/gms/internal/ads/zzguj;->zza:Ljava/lang/ThreadLocal;
|
|
|
|
.line 5
|
|
invoke-virtual {v4}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljavax/crypto/Cipher;
|
|
|
|
iget v5, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzd:I
|
|
|
|
iget v7, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzc:I
|
|
|
|
.line 6
|
|
new-array v5, v5, [B
|
|
|
|
.line 7
|
|
invoke-static {v2, v3, v5, v3, v7}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 8
|
|
new-instance v2, Ljavax/crypto/spec/IvParameterSpec;
|
|
|
|
invoke-direct {v2, v5}, Ljavax/crypto/spec/IvParameterSpec;-><init>([B)V
|
|
|
|
const/4 v3, 0x2
|
|
|
|
iget-object v5, p0, Lcom/google/android/gms/internal/ads/zzguj;->zzb:Ljavax/crypto/spec/SecretKeySpec;
|
|
|
|
.line 9
|
|
invoke-virtual {v4, v3, v5, v2}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v5, p1
|
|
|
|
move v7, v0
|
|
|
|
move-object v8, v1
|
|
|
|
.line 10
|
|
invoke-virtual/range {v4 .. v9}, Ljavax/crypto/Cipher;->doFinal([BII[BI)I
|
|
|
|
move-result p1
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
.line 11
|
|
:cond_0
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string v0, "stored output\'s length does not match input\'s length"
|
|
|
|
invoke-direct {p1, v0}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 2
|
|
:cond_1
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string v0, "ciphertext too short"
|
|
|
|
invoke-direct {p1, v0}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|