SerpentEngineBase.smali
.class public abstract Lorg/spongycastle/crypto/engines/SerpentEngineBase;
.super Ljava/lang/Object;
.source "SerpentEngineBase.java"
# interfaces
.implements Lorg/spongycastle/crypto/BlockCipher;
# static fields
.field protected static final BLOCK_SIZE:I = 0x10
.field static final PHI:I = -0x61c88647
.field static final ROUNDS:I = 0x20
# instance fields
.field protected X0:I
.field protected X1:I
.field protected X2:I
.field protected X3:I
.field protected encrypting:Z
.field protected wKey:[I
# direct methods
.method constructor <init>()V
.registers 1
.prologue
.line 23
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 25
return-void
.end method
.method protected static rotateLeft(II)I
.registers 4
.prologue
.line 113
shl-int v0, p0, p1
neg-int v1, p1
ushr-int v1, p0, v1
or-int/2addr v0, v1
return v0
.end method
.method protected static rotateRight(II)I
.registers 4
.prologue
.line 120
ushr-int v0, p0, p1
neg-int v1, p1
shl-int v1, p0, v1
or-int/2addr v0, v1
return v0
.end method
# virtual methods
.method protected final LT()V
.registers 6
.prologue
.line 455
iget v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
const/16 v1, 0xd
invoke-static {v0, v1}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateLeft(II)I
move-result v0
.line 456
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
const/4 v2, 0x3
invoke-static {v1, v2}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateLeft(II)I
move-result v1
.line 457
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
xor-int/2addr v2, v0
xor-int/2addr v2, v1
.line 458
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v3, v1
shl-int/lit8 v4, v0, 0x3
xor-int/2addr v3, v4
.line 460
const/4 v4, 0x1
invoke-static {v2, v4}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateLeft(II)I
move-result v2
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 461
const/4 v2, 0x7
invoke-static {v3, v2}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateLeft(II)I
move-result v2
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 462
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
xor-int/2addr v0, v2
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v0, v2
const/4 v2, 0x5
invoke-static {v0, v2}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateLeft(II)I
move-result v0
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 463
iget v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v0, v1
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
shl-int/lit8 v1, v1, 0x7
xor-int/2addr v0, v1
const/16 v1, 0x16
invoke-static {v0, v1}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateLeft(II)I
move-result v0
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 464
return-void
.end method
.method protected abstract decryptBlock([BI[BI)V
.end method
.method protected abstract encryptBlock([BI[BI)V
.end method
.method public getAlgorithmName()Ljava/lang/String;
.registers 2
.prologue
.line 51
const-string v0, "Serpent"
return-object v0
.end method
.method public getBlockSize()I
.registers 2
.prologue
.line 56
const/16 v0, 0x10
return v0
.end method
.method protected final ib0(IIII)V
.registers 10
.prologue
.line 167
xor-int/lit8 v0, p1, -0x1
.line 168
xor-int v1, p1, p2
.line 169
or-int v2, v0, v1
xor-int/2addr v2, p4
.line 170
xor-int v3, p3, v2
.line 171
xor-int v4, v1, v3
iput v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 172
and-int/2addr v1, p4
xor-int/2addr v0, v1
.line 173
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
and-int/2addr v1, v0
xor-int/2addr v1, v2
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 174
and-int v1, p1, v2
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
or-int/2addr v2, v3
xor-int/2addr v1, v2
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 175
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v0, v3
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 176
return-void
.end method
.method protected final ib1(IIII)V
.registers 9
.prologue
.line 199
xor-int v0, p2, p4
.line 200
and-int v1, p2, v0
xor-int/2addr v1, p1
.line 201
xor-int v2, v0, v1
.line 202
xor-int v3, p3, v2
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 203
and-int/2addr v0, v1
xor-int/2addr v0, p2
.line 204
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
or-int/2addr v3, v0
.line 205
xor-int/2addr v1, v3
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 206
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
xor-int/lit8 v1, v1, -0x1
.line 207
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v0, v3
.line 208
xor-int v3, v1, v0
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 209
or-int/2addr v0, v1
xor-int/2addr v0, v2
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 210
return-void
.end method
.method protected final ib2(IIII)V
.registers 10
.prologue
.line 234
xor-int v0, p2, p4
.line 235
xor-int/lit8 v1, v0, -0x1
.line 236
xor-int v2, p1, p3
.line 237
xor-int v3, p3, v0
.line 238
and-int v4, p2, v3
.line 239
xor-int/2addr v4, v2
iput v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 240
or-int/2addr v1, p1
.line 241
xor-int/2addr v1, p4
.line 242
or-int/2addr v1, v2
.line 243
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 244
xor-int/lit8 v0, v3, -0x1
.line 245
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
or-int/2addr v1, v3
.line 246
xor-int v3, v0, v1
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 247
and-int/2addr v0, p4
xor-int/2addr v1, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 248
return-void
.end method
.method protected final ib3(IIII)V
.registers 11
.prologue
.line 276
or-int v0, p1, p2
.line 277
xor-int v1, p2, p3
.line 278
and-int v2, p2, v1
.line 279
xor-int/2addr v2, p1
.line 280
xor-int v3, p3, v2
.line 281
or-int v4, p4, v2
.line 282
xor-int v5, v1, v4
iput v5, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 283
or-int/2addr v1, v4
.line 284
xor-int/2addr v1, p4
.line 285
xor-int/2addr v3, v1
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 286
xor-int/2addr v0, v1
.line 287
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
and-int/2addr v1, v0
.line 288
xor-int/2addr v1, v2
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 289
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
xor-int/2addr v0, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 290
return-void
.end method
.method protected final ib4(IIII)V
.registers 9
.prologue
.line 317
or-int v0, p3, p4
.line 318
and-int/2addr v0, p1
.line 319
xor-int/2addr v0, p2
.line 320
and-int v1, p1, v0
.line 321
xor-int/2addr v1, p3
.line 322
xor-int v2, p4, v1
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 323
xor-int/lit8 v2, p1, -0x1
.line 324
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
and-int/2addr v1, v3
.line 325
xor-int/2addr v1, v0
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 326
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
or-int/2addr v1, v2
.line 327
xor-int/2addr v1, p4
.line 328
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v3, v1
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 329
and-int/2addr v0, v1
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
xor-int/2addr v1, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 330
return-void
.end method
.method protected final ib5(IIII)V
.registers 10
.prologue
.line 358
xor-int/lit8 v0, p3, -0x1
.line 359
and-int v1, p2, v0
.line 360
xor-int/2addr v1, p4
.line 361
and-int v2, p1, v1
.line 362
xor-int v3, p2, v0
.line 363
xor-int/2addr v3, v2
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 364
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
or-int/2addr v3, p2
.line 365
and-int v4, p1, v3
.line 366
xor-int/2addr v1, v4
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 367
or-int v1, p1, p4
.line 368
xor-int/2addr v0, v3
.line 369
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 370
and-int v0, p2, v1
xor-int v1, p1, p3
or-int/2addr v1, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 371
return-void
.end method
.method protected final ib6(IIII)V
.registers 10
.prologue
.line 398
xor-int/lit8 v0, p1, -0x1
.line 399
xor-int v1, p1, p2
.line 400
xor-int v2, p3, v1
.line 401
or-int v3, p3, v0
.line 402
xor-int/2addr v3, p4
.line 403
xor-int v4, v2, v3
iput v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 404
and-int v4, v2, v3
.line 405
xor-int/2addr v1, v4
.line 406
or-int v4, p2, v1
.line 407
xor-int/2addr v3, v4
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 408
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
or-int/2addr v3, p2
.line 409
xor-int/2addr v1, v3
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 410
and-int/2addr v0, p4
xor-int v1, v2, v3
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 411
return-void
.end method
.method protected final ib7(IIII)V
.registers 9
.prologue
.line 439
and-int v0, p1, p2
or-int/2addr v0, p3
.line 440
or-int v1, p1, p2
and-int/2addr v1, p4
.line 441
xor-int v2, v0, v1
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 442
xor-int/lit8 v2, p4, -0x1
.line 443
xor-int/2addr v1, p2
.line 444
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v2, v3
or-int/2addr v2, v1
.line 445
xor-int/2addr v2, p1
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 446
xor-int/2addr v1, p3
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
or-int/2addr v2, p4
xor-int/2addr v1, v2
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 447
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
xor-int/2addr v0, v1
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
and-int/2addr v2, p1
xor-int/2addr v1, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 448
return-void
.end method
.method public init(ZLorg/spongycastle/crypto/CipherParameters;)V
.registers 6
.prologue
.line 39
instance-of v0, p2, Lorg/spongycastle/crypto/params/KeyParameter;
if-eqz v0, :cond_13
.line 41
iput-boolean p1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->encrypting:Z
.line 42
check-cast p2, Lorg/spongycastle/crypto/params/KeyParameter;
invoke-virtual {p2}, Lorg/spongycastle/crypto/params/KeyParameter;->getKey()[B
move-result-object v0
invoke-virtual {p0, v0}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->makeWorkingKey([B)[I
move-result-object v0
iput-object v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->wKey:[I
.line 43
return-void
.line 46
:cond_13
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "invalid parameter passed to "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->getAlgorithmName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, " init - "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method protected final inverseLT()V
.registers 6
.prologue
.line 471
iget v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
const/16 v1, 0x16
invoke-static {v0, v1}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateRight(II)I
move-result v0
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v0, v1
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
shl-int/lit8 v1, v1, 0x7
xor-int/2addr v0, v1
.line 472
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
const/4 v2, 0x5
invoke-static {v1, v2}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateRight(II)I
move-result v1
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
xor-int/2addr v1, v2
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v1, v2
.line 473
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
const/4 v3, 0x7
invoke-static {v2, v3}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateRight(II)I
move-result v2
.line 474
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
const/4 v4, 0x1
invoke-static {v3, v4}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateRight(II)I
move-result v3
.line 475
xor-int/2addr v2, v0
shl-int/lit8 v4, v1, 0x3
xor-int/2addr v2, v4
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 476
xor-int v2, v3, v1
xor-int/2addr v2, v0
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 477
const/4 v2, 0x3
invoke-static {v0, v2}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateRight(II)I
move-result v0
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 478
const/16 v0, 0xd
invoke-static {v1, v0}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->rotateRight(II)I
move-result v0
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 479
return-void
.end method
.method protected abstract makeWorkingKey([B)[I
.end method
.method public final processBlock([BI[BI)I
.registers 8
.prologue
.line 78
iget-object v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->wKey:[I
if-nez v0, :cond_21
.line 80
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->getAlgorithmName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, " not initialised"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 83
:cond_21
add-int/lit8 v0, p2, 0x10
array-length v1, p1
if-le v0, v1, :cond_2e
.line 85
new-instance v0, Lorg/spongycastle/crypto/DataLengthException;
const-string v1, "input buffer too short"
invoke-direct {v0, v1}, Lorg/spongycastle/crypto/DataLengthException;-><init>(Ljava/lang/String;)V
throw v0
.line 88
:cond_2e
add-int/lit8 v0, p4, 0x10
array-length v1, p3
if-le v0, v1, :cond_3b
.line 90
new-instance v0, Lorg/spongycastle/crypto/OutputLengthException;
const-string v1, "output buffer too short"
invoke-direct {v0, v1}, Lorg/spongycastle/crypto/OutputLengthException;-><init>(Ljava/lang/String;)V
throw v0
.line 93
:cond_3b
iget-boolean v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->encrypting:Z
if-eqz v0, :cond_45
.line 95
invoke-virtual {p0, p1, p2, p3, p4}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->encryptBlock([BI[BI)V
.line 102
:goto_42
const/16 v0, 0x10
return v0
.line 99
:cond_45
invoke-virtual {p0, p1, p2, p3, p4}, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->decryptBlock([BI[BI)V
goto :goto_42
.end method
.method public reset()V
.registers 1
.prologue
.line 107
return-void
.end method
.method protected final sb0(IIII)V
.registers 9
.prologue
.line 151
xor-int v0, p1, p4
.line 152
xor-int v1, p3, v0
.line 153
xor-int v2, p2, v1
.line 154
and-int v3, p1, p4
xor-int/2addr v3, v2
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 155
and-int/2addr v0, p2
xor-int/2addr v0, p1
.line 156
or-int v3, p3, v0
xor-int/2addr v2, v3
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 157
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int v3, v1, v0
and-int/2addr v2, v3
.line 158
xor-int/lit8 v1, v1, -0x1
xor-int/2addr v1, v2
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 159
xor-int/lit8 v0, v0, -0x1
xor-int/2addr v0, v2
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 160
return-void
.end method
.method protected final sb1(IIII)V
.registers 9
.prologue
.line 183
xor-int/lit8 v0, p1, -0x1
xor-int/2addr v0, p2
.line 184
or-int v1, p1, v0
xor-int/2addr v1, p3
.line 185
xor-int v2, p4, v1
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 186
or-int v2, p4, v0
xor-int/2addr v2, p2
.line 187
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
xor-int/2addr v0, v3
.line 188
and-int v3, v1, v2
xor-int/2addr v3, v0
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 189
xor-int/2addr v2, v1
.line 190
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v3, v2
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 191
and-int/2addr v0, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 192
return-void
.end method
.method protected final sb2(IIII)V
.registers 10
.prologue
.line 217
xor-int/lit8 v0, p1, -0x1
.line 218
xor-int v1, p2, p4
.line 219
and-int v2, p3, v0
.line 220
xor-int/2addr v2, v1
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 221
xor-int v2, p3, v0
.line 222
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
xor-int/2addr v3, p3
.line 223
and-int/2addr v3, p2
.line 224
xor-int v4, v2, v3
iput v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 225
or-int/2addr v3, p4
iget v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
or-int/2addr v2, v4
and-int/2addr v2, v3
xor-int/2addr v2, p1
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 226
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
xor-int/2addr v1, v2
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
or-int/2addr v0, p4
xor-int/2addr v0, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 227
return-void
.end method
.method protected final sb3(IIII)V
.registers 10
.prologue
.line 255
xor-int v0, p1, p2
.line 256
and-int v1, p1, p3
.line 257
or-int v2, p1, p4
.line 258
xor-int v3, p3, p4
.line 259
and-int v4, v0, v2
.line 260
or-int/2addr v1, v4
.line 261
xor-int v4, v3, v1
iput v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 262
xor-int/2addr v2, p2
.line 263
xor-int/2addr v1, v2
.line 264
and-int v2, v3, v1
.line 265
xor-int/2addr v0, v2
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 266
iget v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
and-int/2addr v0, v2
.line 267
xor-int/2addr v1, v0
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 268
or-int v1, p2, p4
xor-int/2addr v0, v3
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 269
return-void
.end method
.method protected final sb4(IIII)V
.registers 10
.prologue
.line 297
xor-int v0, p1, p4
.line 298
and-int v1, p4, v0
.line 299
xor-int/2addr v1, p3
.line 300
or-int v2, p2, v1
.line 301
xor-int v3, v0, v2
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 302
xor-int/lit8 v3, p2, -0x1
.line 303
or-int v4, v0, v3
.line 304
xor-int/2addr v4, v1
iput v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 305
iget v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
and-int/2addr v4, p1
.line 306
xor-int/2addr v0, v3
.line 307
and-int/2addr v2, v0
.line 308
xor-int/2addr v2, v4
iput v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 309
xor-int/2addr v1, p1
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
and-int/2addr v0, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 310
return-void
.end method
.method protected final sb5(IIII)V
.registers 10
.prologue
.line 337
xor-int/lit8 v0, p1, -0x1
.line 338
xor-int v1, p1, p2
.line 339
xor-int v2, p1, p4
.line 340
xor-int v3, p3, v0
.line 341
or-int v4, v1, v2
.line 342
xor-int/2addr v3, v4
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 343
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
and-int/2addr v3, p4
.line 344
iget v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
xor-int/2addr v4, v1
.line 345
xor-int/2addr v4, v3
iput v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 346
iget v4, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
or-int/2addr v0, v4
.line 347
or-int/2addr v1, v3
.line 348
xor-int/2addr v0, v2
.line 349
xor-int/2addr v1, v0
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 350
xor-int v1, p2, v3
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
and-int/2addr v0, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 351
return-void
.end method
.method protected final sb6(IIII)V
.registers 9
.prologue
.line 378
xor-int/lit8 v0, p1, -0x1
.line 379
xor-int v1, p1, p4
.line 380
xor-int v2, p2, v1
.line 381
or-int/2addr v0, v1
.line 382
xor-int/2addr v0, p3
.line 383
xor-int v3, p2, v0
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 384
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
or-int/2addr v1, v3
.line 385
xor-int/2addr v1, p4
.line 386
and-int v3, v0, v1
.line 387
xor-int/2addr v3, v2
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 388
xor-int/2addr v1, v0
.line 389
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
xor-int/2addr v3, v1
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 390
xor-int/lit8 v0, v0, -0x1
and-int/2addr v1, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 391
return-void
.end method
.method protected final sb7(IIII)V
.registers 10
.prologue
.line 418
xor-int v0, p2, p3
.line 419
and-int v1, p3, v0
.line 420
xor-int/2addr v1, p4
.line 421
xor-int v2, p1, v1
.line 422
or-int v3, p4, v0
.line 423
and-int/2addr v3, v2
.line 424
xor-int/2addr v3, p2
iput v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
.line 425
iget v3, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X1:I
or-int/2addr v3, v1
.line 426
and-int v4, p1, v2
.line 427
xor-int/2addr v0, v4
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
.line 428
xor-int v0, v2, v3
.line 429
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
and-int/2addr v2, v0
.line 430
xor-int/2addr v1, v2
iput v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
.line 431
xor-int/lit8 v0, v0, -0x1
iget v1, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X3:I
iget v2, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X2:I
and-int/2addr v1, v2
xor-int/2addr v0, v1
iput v0, p0, Lorg/spongycastle/crypto/engines/SerpentEngineBase;->X0:I
.line 432
return-void
.end method