final class sun.security.ssl.MAC extends sun.security.ssl.Authenticator
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.MAC
super_class: sun.security.ssl.Authenticator
{
static final sun.security.ssl.MAC TLS_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 javax.crypto.Mac mac;
descriptor: Ljavax/crypto/Mac;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new sun.security.ssl.MAC
dup
iconst_0
invokespecial sun.security.ssl.MAC.<init>:(Z)V
putstatic sun.security.ssl.MAC.TLS_NULL:Lsun/security/ssl/MAC;
1: iconst_0
newarray 8
putstatic sun.security.ssl.MAC.nullMAC:[B
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial sun.security.ssl.Authenticator.<init>:(Z)V
1: aload 0
getstatic sun.security.ssl.CipherSuite$MacAlg.M_NULL:Lsun/security/ssl/CipherSuite$MacAlg;
putfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
2: aload 0
aconst_null
putfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ssl/MAC;
0 4 1 isDTLS Z
MethodParameters:
Name Flags
isDTLS
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
aload 2
invokespecial sun.security.ssl.Authenticator.<init>:(Lsun/security/ssl/ProtocolVersion;)V
1: aload 0
aload 1
putfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
2: 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_icmpge 3
iconst_1
goto 4
StackMap locals: sun.security.ssl.MAC sun.security.ssl.CipherSuite$MacAlg sun.security.ssl.ProtocolVersion javax.crypto.SecretKey
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 5
start local 5 5: aload 1
getstatic sun.security.ssl.CipherSuite$MacAlg.M_MD5:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 10
6: iload 5
ifeq 7
ldc "SslMacMD5"
goto 8
StackMap locals: sun.security.ssl.MAC sun.security.ssl.CipherSuite$MacAlg sun.security.ssl.ProtocolVersion javax.crypto.SecretKey top int
StackMap stack:
7: ldc "HmacMD5"
StackMap locals:
StackMap stack: java.lang.String
8: astore 4
start local 4 9: goto 22
end local 4 StackMap locals:
StackMap stack:
10: aload 1
getstatic sun.security.ssl.CipherSuite$MacAlg.M_SHA:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 15
11: iload 5
ifeq 12
ldc "SslMacSHA1"
goto 13
StackMap locals:
StackMap stack:
12: ldc "HmacSHA1"
StackMap locals:
StackMap stack: java.lang.String
13: astore 4
start local 4 14: goto 22
end local 4 StackMap locals:
StackMap stack:
15: aload 1
getstatic sun.security.ssl.CipherSuite$MacAlg.M_SHA256:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 18
16: ldc "HmacSHA256"
astore 4
start local 4 17: goto 22
end local 4 StackMap locals:
StackMap stack:
18: aload 1
getstatic sun.security.ssl.CipherSuite$MacAlg.M_SHA384:Lsun/security/ssl/CipherSuite$MacAlg;
if_acmpne 21
19: ldc "HmacSHA384"
astore 4
start local 4 20: goto 22
end local 4 21: 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 22: 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;
23: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 3
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
24: 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 25 0 this Lsun/security/ssl/MAC;
0 25 1 macAlg Lsun/security/ssl/CipherSuite$MacAlg;
0 25 2 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 25 3 key Ljavax/crypto/SecretKey;
9 10 4 algorithm Ljava/lang/String;
14 15 4 algorithm Ljava/lang/String;
17 18 4 algorithm Ljava/lang/String;
20 21 4 algorithm Ljava/lang/String;
22 25 4 algorithm Ljava/lang/String;
5 25 5 useSSLMac 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.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.size: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=4, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.size:I
ifne 2
1: getstatic sun.security.ssl.MAC.nullMAC:[B
areturn
2: StackMap locals:
StackMap stack:
iload 5
ifne 5
3: aload 0
iload 1
iload 4
aconst_null
invokevirtual sun.security.ssl.MAC.acquireAuthenticationBytes:(BI[B)[B
astore 6
start local 6 4: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 6
invokevirtual javax.crypto.Mac.update:([B)V
end local 6 5: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 2
iload 3
iload 4
invokevirtual javax.crypto.Mac.update:([BII)V
6: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
invokevirtual javax.crypto.Mac.doFinal:()[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 7 0 this Lsun/security/ssl/MAC;
0 7 1 type B
0 7 2 buf [B
0 7 3 offset I
0 7 4 len I
0 7 5 isSimulated Z
4 5 6 additional [B
MethodParameters:
Name Flags
type
buf
offset
len
isSimulated
final byte[] compute(byte, java.nio.ByteBuffer, byte[], boolean);
descriptor: (BLjava/nio/ByteBuffer;[BZ)[B
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield sun.security.ssl.MAC.macAlg:Lsun/security/ssl/CipherSuite$MacAlg;
getfield sun.security.ssl.CipherSuite$MacAlg.size:I
ifne 2
1: getstatic sun.security.ssl.MAC.nullMAC:[B
areturn
2: StackMap locals:
StackMap stack:
iload 4
ifne 6
3: aload 0
iload 1
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 3
invokevirtual sun.security.ssl.MAC.acquireAuthenticationBytes:(BI[B)[B
4: astore 5
start local 5 5: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 5
invokevirtual javax.crypto.Mac.update:([B)V
end local 5 6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
aload 2
invokevirtual javax.crypto.Mac.update:(Ljava/nio/ByteBuffer;)V
7: aload 0
getfield sun.security.ssl.MAC.mac:Ljavax/crypto/Mac;
invokevirtual javax.crypto.Mac.doFinal:()[B
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ssl/MAC;
0 8 1 type B
0 8 2 bb Ljava/nio/ByteBuffer;
0 8 3 sequence [B
0 8 4 isSimulated Z
5 6 5 additional [B
MethodParameters:
Name Flags
type
bb
sequence
isSimulated
final byte[] compute(byte, java.nio.ByteBuffer, boolean);
descriptor: (BLjava/nio/ByteBuffer;Z)[B
flags: (0x0010) ACC_FINAL
Code:
stack=5, 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
iload 3
invokevirtual sun.security.ssl.MAC.compute:(BLjava/nio/ByteBuffer;[BZ)[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
}
SourceFile: "MAC.java"
InnerClasses:
final MacAlg = sun.security.ssl.CipherSuite$MacAlg of sun.security.ssl.CipherSuite