CryptHandler.smali
.class public Lcom/cmcm/support/jni/CryptHandler;
.super Ljava/lang/Object;
# static fields
.field private static final CIPHER_ALGORITHM:Ljava/lang/String; = "AES/CBC/PKCS5Padding"
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static decrypt([B[B)[B
.registers 4
const/4 v0, 0x0
:try_start_1
const-string/jumbo v1, "AES/CBC/PKCS5Padding"
invoke-static {p1, p0, p0, v1}, Lcom/cmcm/support/util/AESCoder;->decrypt([B[B[BLjava/lang/String;)[B
:try_end_7
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_7} :catch_9
move-result-object v0
:goto_8
return-object v0
:catch_9
move-exception v1
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_8
.end method
.method public static encrypt([B[B)[B
.registers 4
const/4 v0, 0x0
:try_start_1
const-string/jumbo v1, "AES/CBC/PKCS5Padding"
invoke-static {p1, p0, p0, v1}, Lcom/cmcm/support/util/AESCoder;->encrypt([B[B[BLjava/lang/String;)[B
:try_end_7
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_7} :catch_9
move-result-object v0
:goto_8
return-object v0
:catch_9
move-exception v1
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_8
.end method