144 lines
2.6 KiB
Smali
144 lines
2.6 KiB
Smali
.class public Lcom/amazonaws/internal/SdkDigestInputStream;
|
|
.super Ljava/security/DigestInputStream;
|
|
.source "SdkDigestInputStream.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/amazonaws/internal/MetricAware;
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $assertionsDisabled:Z = false
|
|
|
|
.field private static final SKIP_BUF_SIZE:I = 0x800
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-class v0, Lcom/amazonaws/internal/SdkDigestInputStream;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/io/InputStream;Ljava/security/MessageDigest;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Ljava/security/DigestInputStream;-><init>(Ljava/io/InputStream;Ljava/security/MessageDigest;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final isMetricActivated()Z
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ljava/security/DigestInputStream;->in:Ljava/io/InputStream;
|
|
|
|
instance-of v0, v0, Lcom/amazonaws/internal/MetricAware;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ljava/security/DigestInputStream;->in:Ljava/io/InputStream;
|
|
|
|
check-cast v0, Lcom/amazonaws/internal/MetricAware;
|
|
|
|
.line 3
|
|
invoke-interface {v0}, Lcom/amazonaws/internal/MetricAware;->isMetricActivated()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final skip(J)J
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-gtz v2, :cond_0
|
|
|
|
return-wide p1
|
|
|
|
:cond_0
|
|
const-wide/16 v2, 0x800
|
|
|
|
.line 1
|
|
invoke-static {v2, v3, p1, p2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
long-to-int v2, v2
|
|
|
|
new-array v3, v2, [B
|
|
|
|
move-wide v4, p1
|
|
|
|
:goto_0
|
|
cmp-long v6, v4, v0
|
|
|
|
if-lez v6, :cond_3
|
|
|
|
const/4 v6, 0x0
|
|
|
|
int-to-long v7, v2
|
|
|
|
.line 2
|
|
invoke-static {v4, v5, v7, v8}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v7
|
|
|
|
long-to-int v7, v7
|
|
|
|
invoke-virtual {p0, v3, v6, v7}, Ljava/security/DigestInputStream;->read([BII)I
|
|
|
|
move-result v6
|
|
|
|
const/4 v7, -0x1
|
|
|
|
if-ne v6, v7, :cond_2
|
|
|
|
cmp-long v0, v4, p1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-wide/16 p1, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sub-long/2addr p1, v4
|
|
|
|
:goto_1
|
|
return-wide p1
|
|
|
|
:cond_2
|
|
int-to-long v6, v6
|
|
|
|
sub-long/2addr v4, v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-wide p1
|
|
.end method
|