- 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
281 lines
6.5 KiB
Smali
281 lines
6.5 KiB
Smali
.class abstract Lcom/google/android/gms/internal/ads/zzgjz;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private final zza:Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
.field private final zzb:Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>([B)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, 0x1
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/internal/ads/zzgks;->zza(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/gms/internal/ads/zzgjz;->zza([BI)Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/ads/zzgjz;->zza:Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/gms/internal/ads/zzgjz;->zza([BI)Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/ads/zzgjz;->zzb:Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string v0, "Can not use ChaCha20Poly1305 in FIPS-mode."
|
|
|
|
invoke-direct {p1, v0}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract zza([BI)Lcom/google/android/gms/internal/ads/zzgjx;
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/security/InvalidKeyException;
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public final zzb(Ljava/nio/ByteBuffer;[B[B)[B
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/security/GeneralSecurityException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/nio/Buffer;->remaining()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_4
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Ljava/nio/Buffer;->position()I
|
|
|
|
move-result v0
|
|
|
|
new-array v1, v1, [B
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x10
|
|
|
|
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;
|
|
|
|
.line 6
|
|
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
.line 7
|
|
invoke-virtual {p1}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x10
|
|
|
|
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
new-array p3, v2, [B
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object v3, p0, Lcom/google/android/gms/internal/ads/zzgjz;->zzb:Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
.line 8
|
|
invoke-virtual {v3, p2, v2}, Lcom/google/android/gms/internal/ads/zzgjx;->zzc([BI)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v2
|
|
|
|
const/16 v3, 0x20
|
|
|
|
new-array v3, v3, [B
|
|
|
|
.line 9
|
|
invoke-virtual {v2, v3}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;
|
|
|
|
array-length v2, p3
|
|
|
|
and-int/lit8 v4, v2, 0xf
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
move v5, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
add-int/lit8 v5, v2, 0x10
|
|
|
|
sub-int/2addr v5, v4
|
|
|
|
.line 10
|
|
:goto_0
|
|
invoke-virtual {p1}, Ljava/nio/Buffer;->remaining()I
|
|
|
|
move-result v4
|
|
|
|
rem-int/lit8 v6, v4, 0x10
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
move v7, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int/lit8 v7, v4, 0x10
|
|
|
|
sub-int/2addr v7, v6
|
|
|
|
:goto_1
|
|
add-int/2addr v7, v5
|
|
|
|
add-int/lit8 v6, v7, 0x10
|
|
|
|
.line 11
|
|
invoke-static {v6}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v6
|
|
|
|
sget-object v8, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-virtual {v6, v8}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v6
|
|
|
|
.line 12
|
|
invoke-virtual {v6, p3}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;
|
|
|
|
.line 13
|
|
invoke-virtual {v6, v5}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
.line 14
|
|
invoke-virtual {v6, p1}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
|
|
|
|
.line 15
|
|
invoke-virtual {v6, v7}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
int-to-long v7, v2
|
|
|
|
.line 16
|
|
invoke-virtual {v6, v7, v8}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
|
|
|
|
int-to-long v4, v4
|
|
|
|
.line 17
|
|
invoke-virtual {v6, v4, v5}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
|
|
|
|
.line 18
|
|
invoke-virtual {v6}, Ljava/nio/ByteBuffer;->array()[B
|
|
|
|
move-result-object p3
|
|
|
|
.line 19
|
|
invoke-static {v3, p3}, Lcom/google/android/gms/internal/ads/zzgkd;->zza([B[B)[B
|
|
|
|
move-result-object p3
|
|
|
|
.line 20
|
|
invoke-static {p3, v1}, Ljava/security/MessageDigest;->isEqual([B[B)Z
|
|
|
|
move-result p3
|
|
:try_end_0
|
|
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
.line 21
|
|
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
iget-object p3, p0, Lcom/google/android/gms/internal/ads/zzgjz;->zza:Lcom/google/android/gms/internal/ads/zzgjx;
|
|
|
|
.line 22
|
|
invoke-virtual {p3, p2, p1}, Lcom/google/android/gms/internal/ads/zzgjx;->zzd([BLjava/nio/ByteBuffer;)[B
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 23
|
|
:cond_3
|
|
:try_start_1
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string p2, "invalid MAC"
|
|
|
|
invoke-direct {p1, p2}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
:try_end_1
|
|
.catch Ljava/security/GeneralSecurityException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 24
|
|
new-instance p2, Ljavax/crypto/AEADBadTagException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljavax/crypto/AEADBadTagException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
|
|
.line 2
|
|
:cond_4
|
|
new-instance p1, Ljava/security/GeneralSecurityException;
|
|
|
|
const-string p2, "ciphertext too short"
|
|
|
|
invoke-direct {p1, p2}, Ljava/security/GeneralSecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|