final class sun.security.ssl.MAC
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.MAC
super_class: java.lang.Object
{
static final sun.security.ssl.MAC NULL;
descriptor: Lsun/security/ssl/MAC;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final byte[] nullMAC;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final sun.security.ssl.CipherSuite$MacAlg macAlg;
descriptor: Lsun/security/ssl/CipherSuite$MacAlg;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int macSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javax.crypto.Mac mac;
descriptor: Ljavax/crypto/Mac;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] block;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int BLOCK_SIZE_SSL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private static final int BLOCK_SIZE_TLS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 13
private static final int BLOCK_OFFSET_TYPE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int BLOCK_OFFSET_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 9
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.security.ssl.MAC
dup
invokespecial sun.security.ssl.MAC.<init>:()V
putstatic sun.security.ssl.MAC.NULL:Lsun/security/ssl/MAC;
1: iconst_0
newarray 8
putstatic sun.security.ssl.MAC.nullMAC:[B
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield sun.security.ssl.MAC.macSize:I
2: aload 0
getstatic sun.security.ssl.CipherSuite.M_NULL:Lsun/security/ssl/CipherSuite$MacAlg;
putfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
3: aload 0
aconst_null
putfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
4: aload 0
aconst_null
putfield sun.security.ssl.MAC.block:[B
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ssl/MAC;
void <init>(sun.security.ssl.CipherSuite$MacAlg, sun.security.ssl.ProtocolVersion, javax.crypto.SecretKey);
descriptor: (Lsun/security/ssl/CipherSuite$MacAlg;Lsun/security/ssl/ProtocolVersion;Ljavax/crypto/SecretKey;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
2: aload 0
aload 1
getfield sun.security.ssl.CipherSuite$MacAlg.size:I
putfield sun.security.ssl.MAC.macSize:I
3: aload 2
getfield sun.security.ssl.ProtocolVersion.v:I
getstatic sun.security.ssl.ProtocolVersion.TLS10:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.v:I
if_icmplt 4
iconst_1
goto 5
StackMap locals: sun.security.ssl.MAC sun.security.ssl.CipherSuite$MacAlg sun.security.ssl.ProtocolVersion javax.crypto.SecretKey
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 5
start local 5 6: aload 1
getstatic sun.security.ssl.CipherSuite.M_MD5:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 11
7: iload 5
ifeq 8
ldc "HmacMD5"
goto 9
StackMap locals: sun.security.ssl.MAC sun.security.ssl.CipherSuite$MacAlg sun.security.ssl.ProtocolVersion javax.crypto.SecretKey top int
StackMap stack:
8: ldc "SslMacMD5"
StackMap locals:
StackMap stack: java.lang.String
9: astore 4
start local 4 10: goto 23
end local 4 StackMap locals:
StackMap stack:
11: aload 1
getstatic sun.security.ssl.CipherSuite.M_SHA:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 16
12: iload 5
ifeq 13
ldc "HmacSHA1"
goto 14
StackMap locals:
StackMap stack:
13: ldc "SslMacSHA1"
StackMap locals:
StackMap stack: java.lang.String
14: astore 4
start local 4 15: goto 23
end local 4 StackMap locals:
StackMap stack:
16: aload 1
getstatic sun.security.ssl.CipherSuite.M_SHA256:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 19
17: ldc "HmacSHA256"
astore 4
start local 4 18: goto 23
end local 4 StackMap locals:
StackMap stack:
19: aload 1
getstatic sun.security.ssl.CipherSuite.M_SHA384:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 22
20: ldc "HmacSHA384"
astore 4
start local 4 21: goto 23
end local 4 22: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Unknown Mac "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
start local 4 23: StackMap locals: sun.security.ssl.MAC sun.security.ssl.CipherSuite$MacAlg sun.security.ssl.ProtocolVersion javax.crypto.SecretKey java.lang.String int
StackMap stack:
aload 0
aload 4
invokestatic sun.security.ssl.JsseJce.getMac:(Ljava/lang/String;)Ljavax/crypto/Mac;
putfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
24: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 3
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
25: iload 5
ifeq 30
26: aload 0
bipush 13
newarray 8
putfield sun.security.ssl.MAC.block:[B
27: aload 0
getfield sun.security.ssl.MAC.block:[B
bipush 9
aload 2
getfield sun.security.ssl.ProtocolVersion.major:B
bastore
28: aload 0
getfield sun.security.ssl.MAC.block:[B
bipush 10
aload 2
getfield sun.security.ssl.ProtocolVersion.minor:B
bastore
29: goto 31
30: StackMap locals:
StackMap stack:
aload 0
bipush 11
newarray 8
putfield sun.security.ssl.MAC.block:[B
31: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lsun/security/ssl/MAC;
0 32 1 macAlg Lsun/security/ssl/CipherSuite$MacAlg;
0 32 2 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 32 3 key Ljavax/crypto/SecretKey;
10 11 4 algorithm Ljava/lang/String;
15 16 4 algorithm Ljava/lang/String;
18 19 4 algorithm Ljava/lang/String;
21 22 4 algorithm Ljava/lang/String;
23 32 4 algorithm Ljava/lang/String;
6 32 5 tls Z
Exceptions:
throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
MethodParameters:
Name Flags
macAlg
protocolVersion
key
int MAClen();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.MAC.macSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/MAC;
int hashBlockLen();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.hashBlockSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/MAC;
int minimalPaddingLen();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.minimalPaddingSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/MAC;
final byte[] compute(byte, byte[], int, int, boolean);
descriptor: (B[BIIZ)[B
flags: (0x0010) ACC_FINAL
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
iload 1
aconst_null
aload 2
iload 3
iload 4
iload 5
invokevirtual sun.security.ssl.MAC.compute:(BLjava/nio/ByteBuffer;[BIIZ)[B
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/MAC;
0 1 1 type B
0 1 2 buf [B
0 1 3 offset I
0 1 4 len I
0 1 5 isSimulated Z
MethodParameters:
Name Flags
type
buf
offset
len
isSimulated
final byte[] compute(byte, java.nio.ByteBuffer, boolean);
descriptor: (BLjava/nio/ByteBuffer;Z)[B
flags: (0x0010) ACC_FINAL
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
aload 2
aconst_null
iconst_0
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 3
invokevirtual sun.security.ssl.MAC.compute:(BLjava/nio/ByteBuffer;[BIIZ)[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/MAC;
0 1 1 type B
0 1 2 bb Ljava/nio/ByteBuffer;
0 1 3 isSimulated Z
MethodParameters:
Name Flags
type
bb
isSimulated
final boolean seqNumOverflow();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.MAC.block:[B
ifnull 6
aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
ifnull 6
1: aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_0
baload
iconst_m1
if_icmpne 6
aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_1
baload
iconst_m1
if_icmpne 6
2: aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_2
baload
iconst_m1
if_icmpne 6
aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_3
baload
iconst_m1
if_icmpne 6
3: aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_4
baload
iconst_m1
if_icmpne 6
aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_5
baload
iconst_m1
if_icmpne 6
4: aload 0
getfield sun.security.ssl.MAC.block:[B
bipush 6
baload
iconst_m1
if_icmpne 6
5: iconst_1
ireturn
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/MAC;
final boolean seqNumIsHuge();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.MAC.block:[B
ifnull 3
aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
ifnull 3
1: aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_0
baload
iconst_m1
if_icmpne 3
aload 0
getfield sun.security.ssl.MAC.block:[B
iconst_1
baload
iconst_m1
if_icmpne 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ssl/MAC;
private void incrementSequenceNumber();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: bipush 7
istore 1
start local 1 1: goto 3
2: StackMap locals: int
StackMap stack:
iinc 1 -1
3: StackMap locals:
StackMap stack:
iload 1
iflt 4
aload 0
getfield sun.security.ssl.MAC.block:[B
iload 1
dup2
baload
iconst_1
iadd
i2b
dup_x2
bastore
ifeq 2
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/MAC;
1 5 1 k I
private byte[] compute(byte, java.nio.ByteBuffer, byte[], int, int, boolean);
descriptor: (BLjava/nio/ByteBuffer;[BIIZ)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getfield sun.security.ssl.MAC.macSize:I
ifne 2
1: getstatic sun.security.ssl.MAC.nullMAC:[B
areturn
2: StackMap locals:
StackMap stack:
iload 6
ifne 8
3: aload 0
getfield sun.security.ssl.MAC.block:[B
bipush 8
iload 1
bastore
4: aload 0
getfield sun.security.ssl.MAC.block:[B
aload 0
getfield sun.security.ssl.MAC.block:[B
arraylength
iconst_2
isub
iload 5
bipush 8
ishr
i2b
bastore
5: aload 0
getfield sun.security.ssl.MAC.block:[B
aload 0
getfield sun.security.ssl.MAC.block:[B
arraylength
iconst_1
isub
iload 5
i2b
bastore
6: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 0
getfield sun.security.ssl.MAC.block:[B
invokevirtual javax.crypto.Mac.update:([B)V
7: aload 0
invokevirtual sun.security.ssl.MAC.incrementSequenceNumber:()V
8: StackMap locals:
StackMap stack:
aload 2
ifnull 11
9: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 2
invokevirtual javax.crypto.Mac.update:(Ljava/nio/ByteBuffer;)V
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 3
iload 4
iload 5
invokevirtual javax.crypto.Mac.update:([BII)V
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
invokevirtual javax.crypto.Mac.doFinal:()[B
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/security/ssl/MAC;
0 13 1 type B
0 13 2 bb Ljava/nio/ByteBuffer;
0 13 3 buf [B
0 13 4 offset I
0 13 5 len I
0 13 6 isSimulated Z
MethodParameters:
Name Flags
type
bb
buf
offset
len
isSimulated
}
SourceFile: "MAC.java"
InnerClasses:
final MacAlg = sun.security.ssl.CipherSuite$MacAlg of sun.security.ssl.CipherSuite