CAST6Engine.smali

.class public final Lorg/spongycastle/crypto/engines/CAST6Engine;
.super Lorg/spongycastle/crypto/engines/CAST5Engine;
.source "CAST6Engine.java"


# static fields
.field protected static final BLOCK_SIZE:I = 0x10

.field protected static final ROUNDS:I = 0xc


# instance fields
.field protected _Km:[I

.field protected _Kr:[I

.field protected _Tm:[I

.field protected _Tr:[I

.field private _workingKey:[I


# direct methods
.method public constructor <init>()V
    .registers 4

    .prologue
    const/16 v2, 0xc0

    const/16 v1, 0x30

    .line 40
    invoke-direct {p0}, Lorg/spongycastle/crypto/engines/CAST5Engine;-><init>()V

    .line 28
    new-array v0, v1, [I

    iput-object v0, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    .line 29
    new-array v0, v1, [I

    iput-object v0, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    .line 34
    new-array v0, v2, [I

    iput-object v0, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    .line 35
    new-array v0, v2, [I

    iput-object v0, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    .line 37
    const/16 v0, 0x8

    new-array v0, v0, [I

    iput-object v0, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    .line 41
    return-void
.end method


# virtual methods
.method protected final CAST_Decipher(IIII[I)V
    .registers 15

    .prologue
    .line 268
    const/4 v0, 0x0

    move v1, p4

    move v2, p3

    move v3, p2

    move v4, p1

    :goto_5
    const/4 v5, 0x6

    if-ge v0, v5, :cond_4f

    .line 270
    rsub-int/lit8 v5, v0, 0xb

    shl-int/lit8 v5, v5, 0x2

    .line 272
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    aget v6, v6, v5

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    aget v7, v7, v5

    invoke-virtual {p0, v1, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v6

    xor-int/2addr v2, v6

    .line 273
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x1

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x1

    aget v7, v7, v8

    invoke-virtual {p0, v2, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v6

    xor-int/2addr v3, v6

    .line 274
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x2

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x2

    aget v7, v7, v8

    invoke-virtual {p0, v3, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v6

    xor-int/2addr v4, v6

    .line 275
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x3

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v5, v5, 0x3

    aget v5, v7, v5

    invoke-virtual {p0, v4, v6, v5}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v1, v5

    .line 268
    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    .line 279
    :cond_4f
    const/4 v0, 0x6

    :goto_50
    const/16 v5, 0xc

    if-ge v0, v5, :cond_9b

    .line 281
    rsub-int/lit8 v5, v0, 0xb

    shl-int/lit8 v5, v5, 0x2

    .line 283
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x3

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x3

    aget v7, v7, v8

    invoke-virtual {p0, v4, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v6

    xor-int/2addr v1, v6

    .line 284
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x2

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x2

    aget v7, v7, v8

    invoke-virtual {p0, v3, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v6

    xor-int/2addr v4, v6

    .line 285
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x1

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x1

    aget v7, v7, v8

    invoke-virtual {p0, v2, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v6

    xor-int/2addr v3, v6

    .line 286
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    aget v6, v6, v5

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    aget v5, v7, v5

    invoke-virtual {p0, v1, v6, v5}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v2, v5

    .line 279
    add-int/lit8 v0, v0, 0x1

    goto :goto_50

    .line 290
    :cond_9b
    const/4 v0, 0x0

    aput v4, p5, v0

    .line 291
    const/4 v0, 0x1

    aput v3, p5, v0

    .line 292
    const/4 v0, 0x2

    aput v2, p5, v0

    .line 293
    const/4 v0, 0x3

    aput v1, p5, v0

    .line 294
    return-void
.end method

.method protected final CAST_Encipher(IIII[I)V
    .registers 15

    .prologue
    .line 228
    const/4 v0, 0x0

    move v1, p4

    move v2, p3

    move v3, p2

    move v4, p1

    :goto_5
    const/4 v5, 0x6

    if-ge v0, v5, :cond_4d

    .line 230
    shl-int/lit8 v5, v0, 0x2

    .line 232
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    aget v6, v6, v5

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    aget v7, v7, v5

    invoke-virtual {p0, v1, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v6

    xor-int/2addr v2, v6

    .line 233
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x1

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x1

    aget v7, v7, v8

    invoke-virtual {p0, v2, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v6

    xor-int/2addr v3, v6

    .line 234
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x2

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x2

    aget v7, v7, v8

    invoke-virtual {p0, v3, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v6

    xor-int/2addr v4, v6

    .line 235
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x3

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v5, v5, 0x3

    aget v5, v7, v5

    invoke-virtual {p0, v4, v6, v5}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v1, v5

    .line 228
    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    .line 239
    :cond_4d
    const/4 v0, 0x6

    :goto_4e
    const/16 v5, 0xc

    if-ge v0, v5, :cond_97

    .line 241
    shl-int/lit8 v5, v0, 0x2

    .line 243
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x3

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x3

    aget v7, v7, v8

    invoke-virtual {p0, v4, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v6

    xor-int/2addr v1, v6

    .line 244
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x2

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x2

    aget v7, v7, v8

    invoke-virtual {p0, v3, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v6

    xor-int/2addr v4, v6

    .line 245
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    add-int/lit8 v7, v5, 0x1

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    add-int/lit8 v8, v5, 0x1

    aget v7, v7, v8

    invoke-virtual {p0, v2, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v6

    xor-int/2addr v3, v6

    .line 246
    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    aget v6, v6, v5

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    aget v5, v7, v5

    invoke-virtual {p0, v1, v6, v5}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v2, v5

    .line 239
    add-int/lit8 v0, v0, 0x1

    goto :goto_4e

    .line 250
    :cond_97
    const/4 v0, 0x0

    aput v4, p5, v0

    .line 251
    const/4 v0, 0x1

    aput v3, p5, v0

    .line 252
    const/4 v0, 0x2

    aput v2, p5, v0

    .line 253
    const/4 v0, 0x3

    aput v1, p5, v0

    .line 254
    return-void
.end method

.method protected final decryptBlock([BI[BI)I
    .registers 11

    .prologue
    .line 196
    const/4 v0, 0x4

    new-array v5, v0, [I

    .line 200
    invoke-virtual {p0, p1, p2}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v1

    .line 201
    add-int/lit8 v0, p2, 0x4

    invoke-virtual {p0, p1, v0}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v2

    .line 202
    add-int/lit8 v0, p2, 0x8

    invoke-virtual {p0, p1, v0}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v3

    .line 203
    add-int/lit8 v0, p2, 0xc

    invoke-virtual {p0, p1, v0}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v4

    move-object v0, p0

    .line 205
    invoke-virtual/range {v0 .. v5}, Lorg/spongycastle/crypto/engines/CAST6Engine;->CAST_Decipher(IIII[I)V

    .line 208
    const/4 v0, 0x0

    aget v0, v5, v0

    invoke-virtual {p0, v0, p3, p4}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 209
    const/4 v0, 0x1

    aget v0, v5, v0

    add-int/lit8 v1, p4, 0x4

    invoke-virtual {p0, v0, p3, v1}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 210
    const/4 v0, 0x2

    aget v0, v5, v0

    add-int/lit8 v1, p4, 0x8

    invoke-virtual {p0, v0, p3, v1}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 211
    const/4 v0, 0x3

    aget v0, v5, v0

    add-int/lit8 v1, p4, 0xc

    invoke-virtual {p0, v0, p3, v1}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 213
    const/16 v0, 0x10

    return v0
.end method

.method protected final encryptBlock([BI[BI)I
    .registers 11

    .prologue
    .line 160
    const/4 v0, 0x4

    new-array v5, v0, [I

    .line 165
    invoke-virtual {p0, p1, p2}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v1

    .line 166
    add-int/lit8 v0, p2, 0x4

    invoke-virtual {p0, p1, v0}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v2

    .line 167
    add-int/lit8 v0, p2, 0x8

    invoke-virtual {p0, p1, v0}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v3

    .line 168
    add-int/lit8 v0, p2, 0xc

    invoke-virtual {p0, p1, v0}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v4

    move-object v0, p0

    .line 170
    invoke-virtual/range {v0 .. v5}, Lorg/spongycastle/crypto/engines/CAST6Engine;->CAST_Encipher(IIII[I)V

    .line 173
    const/4 v0, 0x0

    aget v0, v5, v0

    invoke-virtual {p0, v0, p3, p4}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 174
    const/4 v0, 0x1

    aget v0, v5, v0

    add-int/lit8 v1, p4, 0x4

    invoke-virtual {p0, v0, p3, v1}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 175
    const/4 v0, 0x2

    aget v0, v5, v0

    add-int/lit8 v1, p4, 0x8

    invoke-virtual {p0, v0, p3, v1}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 176
    const/4 v0, 0x3

    aget v0, v5, v0

    add-int/lit8 v1, p4, 0xc

    invoke-virtual {p0, v0, p3, v1}, Lorg/spongycastle/crypto/engines/CAST6Engine;->Bits32ToBytes(I[BI)V

    .line 178
    const/16 v0, 0x10

    return v0
.end method

.method public final getAlgorithmName()Ljava/lang/String;
    .registers 2

    .prologue
    .line 45
    const-string v0, "CAST6"

    return-object v0
.end method

.method public final getBlockSize()I
    .registers 2

    .prologue
    .line 54
    const/16 v0, 0x10

    return v0
.end method

.method public final reset()V
    .registers 1

    .prologue
    .line 50
    return-void
.end method

.method protected final setKey([B)V
    .registers 16

    .prologue
    const/4 v13, 0x4

    const/4 v12, 0x3

    const/4 v11, 0x2

    const/4 v10, 0x1

    const/4 v1, 0x0

    .line 69
    const v2, 0x5a827999

    .line 71
    const/16 v0, 0x13

    move v4, v1

    .line 81
    :goto_b
    const/16 v3, 0x18

    if-ge v4, v3, :cond_35

    move v3, v2

    move v2, v0

    move v0, v1

    .line 83
    :goto_12
    const/16 v5, 0x8

    if-ge v0, v5, :cond_2f

    .line 85
    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    shl-int/lit8 v6, v4, 0x3

    add-int/2addr v6, v0

    aput v3, v5, v6

    .line 86
    const v5, 0x6ed9eba1

    add-int/2addr v3, v5

    .line 88
    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    shl-int/lit8 v6, v4, 0x3

    add-int/2addr v6, v0

    aput v2, v5, v6

    .line 89
    add-int/lit8 v2, v2, 0x11

    and-int/lit8 v2, v2, 0x1f

    .line 83
    add-int/lit8 v0, v0, 0x1

    goto :goto_12

    .line 81
    :cond_2f
    add-int/lit8 v0, v4, 0x1

    move v4, v0

    move v0, v2

    move v2, v3

    goto :goto_b

    .line 93
    :cond_35
    const/16 v0, 0x40

    new-array v2, v0, [B

    .line 94
    array-length v0, p1

    .line 95
    invoke-static {p1, v1, v2, v1, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    move v0, v1

    .line 98
    :goto_3e
    const/16 v3, 0x8

    if-ge v0, v3, :cond_4f

    .line 100
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    shl-int/lit8 v4, v0, 0x2

    invoke-virtual {p0, v2, v4}, Lorg/spongycastle/crypto/engines/CAST6Engine;->BytesTo32bits([BI)I

    move-result v4

    aput v4, v3, v0

    .line 98
    add-int/lit8 v0, v0, 0x1

    goto :goto_3e

    :cond_4f
    move v0, v1

    .line 104
    :goto_50
    const/16 v2, 0xc

    if-ge v0, v2, :cond_27d

    .line 107
    shl-int/lit8 v2, v0, 0x1

    shl-int/lit8 v2, v2, 0x3

    .line 108
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v4, 0x6

    aget v5, v3, v4

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v7, 0x7

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    aget v7, v7, v2

    iget-object v8, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    aget v8, v8, v2

    invoke-virtual {p0, v6, v7, v8}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v6

    xor-int/2addr v5, v6

    aput v5, v3, v4

    .line 109
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v4, 0x5

    aget v5, v3, v4

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v7, 0x6

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v8, v2, 0x1

    aget v7, v7, v8

    iget-object v8, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v9, v2, 0x1

    aget v8, v8, v9

    invoke-virtual {p0, v6, v7, v8}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v6

    xor-int/2addr v5, v6

    aput v5, v3, v4

    .line 110
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v13

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v6, 0x5

    aget v5, v5, v6

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x2

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x2

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v13

    .line 111
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v12

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v13

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x3

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x3

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v12

    .line 112
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v11

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v12

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x4

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x4

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v11

    .line 113
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v10

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v11

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x5

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x5

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v10

    .line 114
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v1

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v10

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x6

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x6

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v1

    .line 115
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v4, 0x7

    aget v5, v3, v4

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v6, v6, v1

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v8, v2, 0x7

    aget v7, v7, v8

    iget-object v8, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v2, v2, 0x7

    aget v2, v8, v2

    invoke-virtual {p0, v6, v7, v2}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v2

    xor-int/2addr v2, v5

    aput v2, v3, v4

    .line 118
    shl-int/lit8 v2, v0, 0x1

    add-int/lit8 v2, v2, 0x1

    shl-int/lit8 v2, v2, 0x3

    .line 119
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v4, 0x6

    aget v5, v3, v4

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v7, 0x7

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    aget v7, v7, v2

    iget-object v8, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    aget v8, v8, v2

    invoke-virtual {p0, v6, v7, v8}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v6

    xor-int/2addr v5, v6

    aput v5, v3, v4

    .line 120
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v4, 0x5

    aget v5, v3, v4

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v7, 0x6

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v8, v2, 0x1

    aget v7, v7, v8

    iget-object v8, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v9, v2, 0x1

    aget v8, v8, v9

    invoke-virtual {p0, v6, v7, v8}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v6

    xor-int/2addr v5, v6

    aput v5, v3, v4

    .line 121
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v13

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v6, 0x5

    aget v5, v5, v6

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x2

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x2

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v13

    .line 122
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v12

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v13

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x3

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x3

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v12

    .line 123
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v11

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v12

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x4

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x4

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v11

    .line 124
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v10

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v11

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x5

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x5

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F3(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v10

    .line 125
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v3, v1

    iget-object v5, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v5, v5, v10

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v7, v2, 0x6

    aget v6, v6, v7

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v8, v2, 0x6

    aget v7, v7, v8

    invoke-virtual {p0, v5, v6, v7}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F1(III)I

    move-result v5

    xor-int/2addr v4, v5

    aput v4, v3, v1

    .line 126
    iget-object v3, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v4, 0x7

    aget v5, v3, v4

    iget-object v6, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v6, v6, v1

    iget-object v7, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tm:[I

    add-int/lit8 v8, v2, 0x7

    aget v7, v7, v8

    iget-object v8, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Tr:[I

    add-int/lit8 v2, v2, 0x7

    aget v2, v8, v2

    invoke-virtual {p0, v6, v7, v2}, Lorg/spongycastle/crypto/engines/CAST6Engine;->F2(III)I

    move-result v2

    xor-int/2addr v2, v5

    aput v2, v3, v4

    .line 129
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    shl-int/lit8 v3, v0, 0x2

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v4, v1

    and-int/lit8 v4, v4, 0x1f

    aput v4, v2, v3

    .line 130
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    shl-int/lit8 v3, v0, 0x2

    add-int/lit8 v3, v3, 0x1

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v4, v11

    and-int/lit8 v4, v4, 0x1f

    aput v4, v2, v3

    .line 131
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    shl-int/lit8 v3, v0, 0x2

    add-int/lit8 v3, v3, 0x2

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v4, v13

    and-int/lit8 v4, v4, 0x1f

    aput v4, v2, v3

    .line 132
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Kr:[I

    shl-int/lit8 v3, v0, 0x2

    add-int/lit8 v3, v3, 0x3

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v5, 0x6

    aget v4, v4, v5

    and-int/lit8 v4, v4, 0x1f

    aput v4, v2, v3

    .line 136
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    shl-int/lit8 v3, v0, 0x2

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v5, 0x7

    aget v4, v4, v5

    aput v4, v2, v3

    .line 137
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    shl-int/lit8 v3, v0, 0x2

    add-int/lit8 v3, v3, 0x1

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    const/4 v5, 0x5

    aget v4, v4, v5

    aput v4, v2, v3

    .line 138
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    shl-int/lit8 v3, v0, 0x2

    add-int/lit8 v3, v3, 0x2

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v4, v12

    aput v4, v2, v3

    .line 139
    iget-object v2, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_Km:[I

    shl-int/lit8 v3, v0, 0x2

    add-int/lit8 v3, v3, 0x3

    iget-object v4, p0, Lorg/spongycastle/crypto/engines/CAST6Engine;->_workingKey:[I

    aget v4, v4, v10

    aput v4, v2, v3

    .line 104
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_50

    .line 142
    :cond_27d
    return-void
.end method