public class javax.crypto.Mac implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.crypto.Mac
super_class: java.lang.Object
{
private static final sun.security.util.Debug debug;
descriptor: Lsun/security/util/Debug;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final sun.security.util.Debug pdebug;
descriptor: Lsun/security/util/Debug;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean skipDebug;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.security.Provider provider;
descriptor: Ljava/security/Provider;
flags: (0x0002) ACC_PRIVATE
private javax.crypto.MacSpi spi;
descriptor: Ljavax/crypto/MacSpi;
flags: (0x0002) ACC_PRIVATE
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.security.Provider$Service firstService;
descriptor: Ljava/security/Provider$Service;
flags: (0x0002) ACC_PRIVATE
private java.util.Iterator<java.security.Provider$Service> serviceIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<Ljava/security/Provider$Service;>;
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static int warnCount;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "jca"
ldc "Mac"
invokestatic sun.security.util.Debug.getInstance:(Ljava/lang/String;Ljava/lang/String;)Lsun/security/util/Debug;
1: putstatic javax.crypto.Mac.debug:Lsun/security/util/Debug;
2: ldc "provider"
ldc "Provider"
invokestatic sun.security.util.Debug.getInstance:(Ljava/lang/String;Ljava/lang/String;)Lsun/security/util/Debug;
3: putstatic javax.crypto.Mac.pdebug:Lsun/security/util/Debug;
4: ldc "engine="
invokestatic sun.security.util.Debug.isOn:(Ljava/lang/String;)Z
ifeq 6
ldc "mac"
invokestatic sun.security.util.Debug.isOn:(Ljava/lang/String;)Z
ifne 6
5: iconst_1
goto 7
StackMap locals:
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: putstatic javax.crypto.Mac.skipDebug:Z
8: bipush 10
putstatic javax.crypto.Mac.warnCount:I
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(javax.crypto.MacSpi, java.security.Provider, java.lang.String);
descriptor: (Ljavax/crypto/MacSpi;Ljava/security/Provider;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, 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
iconst_0
putfield javax.crypto.Mac.initialized:Z
2: aload 0
aload 1
putfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
3: aload 0
aload 2
putfield javax.crypto.Mac.provider:Ljava/security/Provider;
4: aload 0
aload 3
putfield javax.crypto.Mac.algorithm:Ljava/lang/String;
5: aload 0
aconst_null
putfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
6: aload 0
aconst_null
putfield javax.crypto.Mac.lock:Ljava/lang/Object;
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/crypto/Mac;
0 8 1 macSpi Ljavax/crypto/MacSpi;
0 8 2 provider Ljava/security/Provider;
0 8 3 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
macSpi
provider
algorithm
private void <init>(java.security.Provider$Service, java.util.Iterator<java.security.Provider$Service>, java.lang.String);
descriptor: (Ljava/security/Provider$Service;Ljava/util/Iterator;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, 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
iconst_0
putfield javax.crypto.Mac.initialized:Z
2: aload 0
aload 1
putfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
3: aload 0
aload 2
putfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
4: aload 0
aload 3
putfield javax.crypto.Mac.algorithm:Ljava/lang/String;
5: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield javax.crypto.Mac.lock:Ljava/lang/Object;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/crypto/Mac;
0 7 1 s Ljava/security/Provider$Service;
0 7 2 t Ljava/util/Iterator<Ljava/security/Provider$Service;>;
0 7 3 algorithm Ljava/lang/String;
Signature: (Ljava/security/Provider$Service;Ljava/util/Iterator<Ljava/security/Provider$Service;>;Ljava/lang/String;)V
MethodParameters:
Name Flags
s
t
algorithm
public final java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.Mac.algorithm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/crypto/Mac;
public static final javax.crypto.Mac getInstance(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/crypto/Mac;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: ldc "Mac"
aload 0
invokestatic sun.security.jca.GetInstance.getServices:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
astore 1
start local 1 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
start local 2 3: goto 8
4: StackMap locals: java.util.List java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Provider$Service
astore 3
start local 3 5: aload 3
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
invokestatic javax.crypto.JceSecurity.canUseProvider:(Ljava/security/Provider;)Z
ifne 7
6: goto 8
7: StackMap locals: java.security.Provider$Service
StackMap stack:
new javax.crypto.Mac
dup
aload 3
aload 2
aload 0
invokespecial javax.crypto.Mac.<init>:(Ljava/security/Provider$Service;Ljava/util/Iterator;Ljava/lang/String;)V
areturn
end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: new java.security.NoSuchAlgorithmException
dup
10: new java.lang.StringBuilder
dup
ldc "Algorithm "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not available"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 algorithm Ljava/lang/String;
2 12 1 services Ljava/util/List<Ljava/security/Provider$Service;>;
3 12 2 t Ljava/util/Iterator<Ljava/security/Provider$Service;>;
5 8 3 s Ljava/security/Provider$Service;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
public static final javax.crypto.Mac getInstance(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/Mac;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: ldc "Mac"
ldc Ljavax/crypto/MacSpi;
aload 0
aload 1
2: invokestatic javax.crypto.JceSecurity.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)Lsun/security/jca/GetInstance$Instance;
astore 2
start local 2 3: new javax.crypto.Mac
dup
aload 2
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast javax.crypto.MacSpi
aload 2
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
invokespecial javax.crypto.Mac.<init>:(Ljavax/crypto/MacSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 algorithm Ljava/lang/String;
0 4 1 provider Ljava/lang/String;
3 4 2 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
MethodParameters:
Name Flags
algorithm
provider
public static final javax.crypto.Mac getInstance(java.lang.String, java.security.Provider);
descriptor: (Ljava/lang/String;Ljava/security/Provider;)Ljavax/crypto/Mac;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: ldc "Mac"
ldc Ljavax/crypto/MacSpi;
aload 0
aload 1
2: invokestatic javax.crypto.JceSecurity.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/security/Provider;)Lsun/security/jca/GetInstance$Instance;
astore 2
start local 2 3: new javax.crypto.Mac
dup
aload 2
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast javax.crypto.MacSpi
aload 2
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
invokespecial javax.crypto.Mac.<init>:(Ljavax/crypto/MacSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 algorithm Ljava/lang/String;
0 4 1 provider Ljava/security/Provider;
3 4 2 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
provider
void chooseFirstProvider();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
ifnonnull 1
aload 0
getfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
ifnonnull 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
3: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
ifnull 6
4: aload 1
monitorexit
5: return
6: StackMap locals: java.lang.Object
StackMap stack:
getstatic javax.crypto.Mac.debug:Lsun/security/util/Debug;
ifnull 13
7: getstatic javax.crypto.Mac.warnCount:I
iconst_1
isub
dup
putstatic javax.crypto.Mac.warnCount:I
istore 2
start local 2 8: iload 2
iflt 13
9: getstatic javax.crypto.Mac.debug:Lsun/security/util/Debug;
ldc "Mac.init() not first method called, disabling delayed provider selection"
invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
10: iload 2
ifne 12
11: getstatic javax.crypto.Mac.debug:Lsun/security/util/Debug;
ldc "Further warnings of this type will be suppressed"
invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
12: StackMap locals: int
StackMap stack:
new java.lang.Exception
dup
ldc "Call trace"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.Exception.printStackTrace:()V
end local 2 13: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 14: goto 33
15: StackMap locals: java.lang.Exception
StackMap stack:
aload 0
getfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
ifnull 19
16: aload 0
getfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
astore 3
start local 3 17: aload 0
aconst_null
putfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
18: goto 20
end local 3 19: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Provider$Service
astore 3
start local 3 20: StackMap locals: java.security.Provider$Service
StackMap stack:
aload 3
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
invokestatic javax.crypto.JceSecurity.canUseProvider:(Ljava/security/Provider;)Z
ifne 22
21: goto 33
22: StackMap locals:
StackMap stack:
aload 3
aconst_null
invokevirtual java.security.Provider$Service.newInstance:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 23: aload 4
instanceof javax.crypto.MacSpi
ifne 25
24: goto 33
25: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 4
checkcast javax.crypto.MacSpi
putfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
26: aload 0
aload 3
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
putfield javax.crypto.Mac.provider:Ljava/security/Provider;
27: aload 0
aconst_null
putfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
28: aload 0
aconst_null
putfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
29: aload 1
monitorexit
30: return
end local 4 31: StackMap locals: javax.crypto.Mac java.lang.Object java.lang.Exception java.security.Provider$Service
StackMap stack: java.security.NoSuchAlgorithmException
astore 4
start local 4 32: aload 4
astore 2
end local 4 end local 3 33: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
ifnonnull 15
aload 0
getfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
34: new java.security.ProviderException
dup
35: ldc "Could not construct MacSpi instance"
36: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
astore 3
start local 3 37: aload 2
ifnull 39
38: aload 3
aload 2
invokevirtual java.security.ProviderException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
39: StackMap locals: java.security.ProviderException
StackMap stack:
aload 3
athrow
end local 3 end local 2 40: StackMap locals: javax.crypto.Mac java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
41: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Ljavax/crypto/Mac;
8 13 2 w I
14 40 2 lastException Ljava/lang/Exception;
17 19 3 s Ljava/security/Provider$Service;
20 33 3 s Ljava/security/Provider$Service;
23 31 4 obj Ljava/lang/Object;
32 33 4 e Ljava/security/NoSuchAlgorithmException;
37 40 3 e Ljava/security/ProviderException;
Exception table:
from to target type
22 24 31 Class java.security.NoSuchAlgorithmException
25 29 31 Class java.security.NoSuchAlgorithmException
3 5 40 any
6 30 40 any
31 41 40 any
private void chooseProvider(java.security.Key, java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.crypto.Mac.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
ifnull 5
2: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
aload 1
aload 2
invokevirtual javax.crypto.MacSpi.engineInit:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
3: aload 3
monitorexit
4: return
5: StackMap locals: java.lang.Object
StackMap stack:
aconst_null
astore 4
start local 4 6: goto 27
7: StackMap locals: java.lang.Exception
StackMap stack:
aload 0
getfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
ifnull 11
8: aload 0
getfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
astore 5
start local 5 9: aload 0
aconst_null
putfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
10: goto 12
end local 5 11: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Provider$Service
astore 5
start local 5 12: StackMap locals: java.security.Provider$Service
StackMap stack:
aload 5
aload 1
invokevirtual java.security.Provider$Service.supportsParameter:(Ljava/lang/Object;)Z
ifne 14
13: goto 27
14: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
invokestatic javax.crypto.JceSecurity.canUseProvider:(Ljava/security/Provider;)Z
ifne 16
15: goto 27
16: StackMap locals:
StackMap stack:
aload 5
aconst_null
invokevirtual java.security.Provider$Service.newInstance:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.crypto.MacSpi
astore 6
start local 6 17: aload 6
aload 1
aload 2
invokevirtual javax.crypto.MacSpi.engineInit:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
18: aload 0
aload 5
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
putfield javax.crypto.Mac.provider:Ljava/security/Provider;
19: aload 0
aload 6
putfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
20: aload 0
aconst_null
putfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
21: aload 0
aconst_null
putfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
22: aload 3
monitorexit
23: return
end local 6 24: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 25: aload 4
ifnonnull 27
26: aload 6
astore 4
end local 6 end local 5 27: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.firstService:Ljava/security/Provider$Service;
ifnonnull 7
aload 0
getfield javax.crypto.Mac.serviceIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
28: aload 4
instanceof java.security.InvalidKeyException
ifeq 30
29: aload 4
checkcast java.security.InvalidKeyException
athrow
30: StackMap locals:
StackMap stack:
aload 4
instanceof java.security.InvalidAlgorithmParameterException
ifeq 32
31: aload 4
checkcast java.security.InvalidAlgorithmParameterException
athrow
32: StackMap locals:
StackMap stack:
aload 4
instanceof java.lang.RuntimeException
ifeq 34
33: aload 4
checkcast java.lang.RuntimeException
athrow
34: StackMap locals:
StackMap stack:
aload 1
ifnull 35
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
goto 36
StackMap locals:
StackMap stack:
35: ldc "(null)"
StackMap locals:
StackMap stack: java.lang.String
36: astore 5
start local 5 37: new java.security.InvalidKeyException
dup
38: new java.lang.StringBuilder
dup
ldc "No installed provider supports this key: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
39: aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
40: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
41: aload 4
42: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 43: StackMap locals: javax.crypto.Mac java.security.Key java.security.spec.AlgorithmParameterSpec java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
44: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Ljavax/crypto/Mac;
0 45 1 key Ljava/security/Key;
0 45 2 params Ljava/security/spec/AlgorithmParameterSpec;
6 43 4 lastException Ljava/lang/Exception;
9 11 5 s Ljava/security/Provider$Service;
12 27 5 s Ljava/security/Provider$Service;
17 24 6 spi Ljavax/crypto/MacSpi;
25 27 6 e Ljava/lang/Exception;
37 43 5 kName Ljava/lang/String;
Exception table:
from to target type
16 22 24 Class java.lang.Exception
1 4 43 any
5 23 43 any
24 44 43 any
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
key
params
public final java.security.Provider getProvider();
descriptor: ()Ljava/security/Provider;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.provider:Ljava/security/Provider;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/crypto/Mac;
public final int getMacLength();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
invokevirtual javax.crypto.MacSpi.engineGetMacLength:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/crypto/Mac;
private java.lang.String getProviderName();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.Mac.provider:Ljava/security/Provider;
ifnonnull 1
ldc "(no provider)"
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield javax.crypto.Mac.provider:Ljava/security/Provider;
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/crypto/Mac;
public final void init(java.security.Key);
descriptor: (Ljava/security/Key;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
ifnull 3
1: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
aload 1
aconst_null
invokevirtual javax.crypto.MacSpi.engineInit:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
2: goto 7
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aconst_null
invokevirtual javax.crypto.Mac.chooseProvider:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
4: goto 7
StackMap locals:
StackMap stack: java.security.InvalidAlgorithmParameterException
5: astore 2
start local 2 6: new java.security.InvalidKeyException
dup
ldc "init() failed"
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield javax.crypto.Mac.initialized:Z
8: getstatic javax.crypto.Mac.skipDebug:Z
ifne 12
getstatic javax.crypto.Mac.pdebug:Lsun/security/util/Debug;
ifnull 12
9: getstatic javax.crypto.Mac.pdebug:Lsun/security/util/Debug;
new java.lang.StringBuilder
dup
ldc "Mac."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.crypto.Mac.algorithm:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " algorithm from: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: aload 0
invokevirtual javax.crypto.Mac.getProviderName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/crypto/Mac;
0 13 1 key Ljava/security/Key;
6 7 2 e Ljava/security/InvalidAlgorithmParameterException;
Exception table:
from to target type
0 4 5 Class java.security.InvalidAlgorithmParameterException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
public final void init(java.security.Key, java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
ifnull 3
1: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
aload 1
aload 2
invokevirtual javax.crypto.MacSpi.engineInit:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual javax.crypto.Mac.chooseProvider:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
4: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield javax.crypto.Mac.initialized:Z
5: getstatic javax.crypto.Mac.skipDebug:Z
ifne 9
getstatic javax.crypto.Mac.pdebug:Lsun/security/util/Debug;
ifnull 9
6: getstatic javax.crypto.Mac.pdebug:Lsun/security/util/Debug;
new java.lang.StringBuilder
dup
ldc "Mac."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.crypto.Mac.algorithm:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " algorithm from: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 0
invokevirtual javax.crypto.Mac.getProviderName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/crypto/Mac;
0 10 1 key Ljava/security/Key;
0 10 2 params Ljava/security/spec/AlgorithmParameterSpec;
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
key
params
public final void update(byte);
descriptor: (B)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.initialized:Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "MAC not initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
iload 1
invokevirtual javax.crypto.MacSpi.engineUpdate:(B)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/crypto/Mac;
0 5 1 input B
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
input
public final void update(byte[]);
descriptor: ([B)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.initialized:Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "MAC not initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
ifnull 5
4: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
aload 1
iconst_0
aload 1
arraylength
invokevirtual javax.crypto.MacSpi.engineUpdate:([BII)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/crypto/Mac;
0 6 1 input [B
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
input
public final void update(byte[], int, int);
descriptor: ([BII)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.initialized:Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "MAC not initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
ifnull 7
4: iload 2
iflt 5
iload 3
aload 1
arraylength
iload 2
isub
if_icmpgt 5
iload 3
ifge 6
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Bad arguments"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
aload 1
iload 2
iload 3
invokevirtual javax.crypto.MacSpi.engineUpdate:([BII)V
7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/crypto/Mac;
0 8 1 input [B
0 8 2 offset I
0 8 3 len I
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
input
offset
len
public final void update(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.initialized:Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "MAC not initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "Buffer must not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
aload 1
invokevirtual javax.crypto.MacSpi.engineUpdate:(Ljava/nio/ByteBuffer;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/crypto/Mac;
0 7 1 input Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
input
public final byte[] doFinal();
descriptor: ()[B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.initialized:Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "MAC not initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
invokevirtual javax.crypto.MacSpi.engineDoFinal:()[B
astore 1
start local 1 4: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
invokevirtual javax.crypto.MacSpi.engineReset:()V
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/crypto/Mac;
4 6 1 mac [B
Exceptions:
throws java.lang.IllegalStateException
public final void doFinal(byte[], int);
descriptor: ([BI)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.initialized:Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "MAC not initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.crypto.Mac.getMacLength:()I
istore 3
start local 3 4: aload 1
ifnull 5
aload 1
arraylength
iload 2
isub
iload 3
if_icmpge 8
5: StackMap locals: int
StackMap stack:
new javax.crypto.ShortBufferException
dup
6: ldc "Cannot store MAC in output buffer"
7: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.crypto.Mac.doFinal:()[B
astore 4
start local 4 9: aload 4
iconst_0
aload 1
iload 2
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/crypto/Mac;
0 11 1 output [B
0 11 2 outOffset I
4 11 3 macLen I
9 11 4 mac [B
Exceptions:
throws javax.crypto.ShortBufferException, java.lang.IllegalStateException
MethodParameters:
Name Flags
output
outOffset
public final byte[] doFinal(byte[]);
descriptor: ([B)[B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.initialized:Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "MAC not initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual javax.crypto.Mac.update:([B)V
4: aload 0
invokevirtual javax.crypto.Mac.doFinal:()[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/crypto/Mac;
0 5 1 input [B
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
input
public final void reset();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
invokevirtual javax.crypto.MacSpi.engineReset:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/crypto/Mac;
public final java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.crypto.Mac.chooseFirstProvider:()V
1: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
checkcast javax.crypto.Mac
astore 1
start local 1 2: aload 1
aload 0
getfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
invokevirtual javax.crypto.MacSpi.clone:()Ljava/lang/Object;
checkcast javax.crypto.MacSpi
putfield javax.crypto.Mac.spi:Ljavax/crypto/MacSpi;
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/crypto/Mac;
2 4 1 that Ljavax/crypto/Mac;
Exceptions:
throws java.lang.CloneNotSupportedException
}
SourceFile: "Mac.java"
InnerClasses:
public Service = java.security.Provider$Service of java.security.Provider
public final Instance = sun.security.jca.GetInstance$Instance of sun.security.jca.GetInstance