cv.smali
.class public final Lcom/loc/cv;
.super Ljava/lang/Object;
# direct methods
.method public static a(Ljava/lang/String;)Ljava/lang/String;
.registers 7
const/4 v0, 0x0
:try_start_1
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_8
:cond_7
:goto_7
return-object v0
:cond_8
new-instance v1, Ljava/io/File;
invoke-direct {v1, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v1}, Ljava/io/File;->isFile()Z
move-result v2
if-eqz v2, :cond_7
invoke-virtual {v1}, Ljava/io/File;->exists()Z
move-result v2
if-eqz v2, :cond_7
const/16 v2, 0x800
new-array v3, v2, [B
const-string/jumbo v2, "MD5"
invoke-static {v2}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object v4
new-instance v2, Ljava/io/FileInputStream;
invoke-direct {v2, v1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
:try_end_29
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_29} :catch_7d
.catchall {:try_start_1 .. :try_end_29} :catchall_67
:goto_29
:try_start_29
invoke-virtual {v2, v3}, Ljava/io/FileInputStream;->read([B)I
move-result v1
const/4 v5, -0x1
if-eq v1, v5, :cond_50
const/4 v5, 0x0
invoke-virtual {v4, v3, v5, v1}, Ljava/security/MessageDigest;->update([BII)V
:try_end_34
.catch Ljava/lang/Throwable; {:try_start_29 .. :try_end_34} :catch_35
.catchall {:try_start_29 .. :try_end_34} :catchall_7b
goto :goto_29
:catch_35
move-exception v1
:goto_36
:try_start_36
const-string/jumbo v3, "MD5"
const-string/jumbo v4, "getMd5FromFile"
invoke-static {v1, v3, v4}, Lcom/loc/dc;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
:try_end_3f
.catchall {:try_start_36 .. :try_end_3f} :catchall_7b
if-eqz v2, :cond_7
:try_start_41
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
:try_end_44
.catch Ljava/io/IOException; {:try_start_41 .. :try_end_44} :catch_45
goto :goto_7
:catch_45
move-exception v1
const-string/jumbo v2, "MD5"
const-string/jumbo v3, "getMd5FromFile"
invoke-static {v1, v2, v3}, Lcom/loc/dc;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_7
:cond_50
:try_start_50
invoke-virtual {v4}, Ljava/security/MessageDigest;->digest()[B
move-result-object v1
invoke-static {v1}, Lcom/loc/cz;->d([B)Ljava/lang/String;
:try_end_57
.catch Ljava/lang/Throwable; {:try_start_50 .. :try_end_57} :catch_35
.catchall {:try_start_50 .. :try_end_57} :catchall_7b
move-result-object v0
:try_start_58
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
:try_end_5b
.catch Ljava/io/IOException; {:try_start_58 .. :try_end_5b} :catch_5c
goto :goto_7
:catch_5c
move-exception v1
const-string/jumbo v2, "MD5"
const-string/jumbo v3, "getMd5FromFile"
invoke-static {v1, v2, v3}, Lcom/loc/dc;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_7
:catchall_67
move-exception v1
move-object v2, v0
move-object v0, v1
:goto_6a
if-eqz v2, :cond_6f
:try_start_6c
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
:try_end_6f
.catch Ljava/io/IOException; {:try_start_6c .. :try_end_6f} :catch_70
:cond_6f
:goto_6f
throw v0
:catch_70
move-exception v1
const-string/jumbo v2, "MD5"
const-string/jumbo v3, "getMd5FromFile"
invoke-static {v1, v2, v3}, Lcom/loc/dc;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_6f
:catchall_7b
move-exception v0
goto :goto_6a
:catch_7d
move-exception v1
move-object v2, v0
goto :goto_36
.end method
.method public static a([B)Ljava/lang/String;
.registers 2
const-string/jumbo v0, "MD5"
invoke-static {p0, v0}, Lcom/loc/cv;->a([BLjava/lang/String;)[B
move-result-object v0
invoke-static {v0}, Lcom/loc/cz;->d([B)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static a([BLjava/lang/String;)[B
.registers 6
const/4 v0, 0x0
:try_start_1
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/security/MessageDigest;->update([B)V
invoke-virtual {v1}, Ljava/security/MessageDigest;->digest()[B
:try_end_b
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_b} :catch_d
move-result-object v0
:goto_c
return-object v0
:catch_d
move-exception v1
const-string/jumbo v2, "MD5"
const-string/jumbo v3, "getMd5Bytes1"
invoke-static {v1, v2, v3}, Lcom/loc/dc;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_c
.end method
.method public static b(Ljava/lang/String;)Ljava/lang/String;
.registers 2
if-nez p0, :cond_4
const/4 v0, 0x0
:goto_3
return-object v0
:cond_4
invoke-static {p0}, Lcom/loc/cv;->d(Ljava/lang/String;)[B
move-result-object v0
invoke-static {v0}, Lcom/loc/cz;->d([B)Ljava/lang/String;
move-result-object v0
goto :goto_3
.end method
.method public static c(Ljava/lang/String;)Ljava/lang/String;
.registers 2
invoke-static {p0}, Lcom/loc/cv;->e(Ljava/lang/String;)[B
move-result-object v0
invoke-static {v0}, Lcom/loc/cz;->e([B)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private static d(Ljava/lang/String;)[B
.registers 4
:try_start_0
invoke-static {p0}, Lcom/loc/cv;->f(Ljava/lang/String;)[B
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_3} :catch_5
move-result-object v0
:goto_4
return-object v0
:catch_5
move-exception v0
const-string/jumbo v1, "MD5"
const-string/jumbo v2, "getMd5Bytes"
invoke-static {v0, v1, v2}, Lcom/loc/dc;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
const/4 v0, 0x0
new-array v0, v0, [B
goto :goto_4
.end method
.method private static e(Ljava/lang/String;)[B
.registers 2
:try_start_0
invoke-static {p0}, Lcom/loc/cv;->f(Ljava/lang/String;)[B
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_3} :catch_5
move-result-object v0
:goto_4
return-object v0
:catch_5
move-exception v0
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
const/4 v0, 0x0
new-array v0, v0, [B
goto :goto_4
.end method
.method private static f(Ljava/lang/String;)[B
.registers 3
if-nez p0, :cond_4
const/4 v0, 0x0
:goto_3
return-object v0
:cond_4
const-string/jumbo v0, "MD5"
invoke-static {v0}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object v0
invoke-static {p0}, Lcom/loc/cz;->a(Ljava/lang/String;)[B
move-result-object v1
invoke-virtual {v0, v1}, Ljava/security/MessageDigest;->update([B)V
invoke-virtual {v0}, Ljava/security/MessageDigest;->digest()[B
move-result-object v0
goto :goto_3
.end method