final class sun.security.pkcs11.P11Mac extends javax.crypto.MacSpi
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11Mac
super_class: javax.crypto.MacSpi
{
private static final int S_UNINIT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int S_RESET;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int S_UPDATE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int S_DOFINAL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private final sun.security.pkcs11.Token token;
descriptor: Lsun/security/pkcs11/Token;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long mechanism;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.security.pkcs11.wrapper.CK_MECHANISM ckMechanism;
descriptor: Lsun/security/pkcs11/wrapper/CK_MECHANISM;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int macLength;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private sun.security.pkcs11.P11Key p11Key;
descriptor: Lsun/security/pkcs11/P11Key;
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs11.Session session;
descriptor: Lsun/security/pkcs11/Session;
flags: (0x0002) ACC_PRIVATE
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] oneByte;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.pkcs11.Token, java.lang.String, long);
descriptor: (Lsun/security/pkcs11/Token;Ljava/lang/String;J)V
flags: (0x0000)
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial javax.crypto.MacSpi.<init>:()V
1: aload 0
aload 1
putfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
2: aload 0
aload 2
putfield sun.security.pkcs11.P11Mac.algorithm:Ljava/lang/String;
3: aload 0
lload 3
putfield sun.security.pkcs11.P11Mac.mechanism:J
4: aconst_null
astore 5
start local 5 5: lload 3
l2i
lookupswitch { // 8
529: 6
545: 8
593: 12
598: 10
609: 14
625: 16
896: 18
897: 21
default: 24
}
6: StackMap locals: sun.security.pkcs11.P11Mac sun.security.pkcs11.Token java.lang.String long java.lang.Long
StackMap stack:
aload 0
bipush 16
putfield sun.security.pkcs11.P11Mac.macLength:I
7: goto 25
8: StackMap locals:
StackMap stack:
aload 0
bipush 20
putfield sun.security.pkcs11.P11Mac.macLength:I
9: goto 25
10: StackMap locals:
StackMap stack:
aload 0
bipush 28
putfield sun.security.pkcs11.P11Mac.macLength:I
11: goto 25
12: StackMap locals:
StackMap stack:
aload 0
bipush 32
putfield sun.security.pkcs11.P11Mac.macLength:I
13: goto 25
14: StackMap locals:
StackMap stack:
aload 0
bipush 48
putfield sun.security.pkcs11.P11Mac.macLength:I
15: goto 25
16: StackMap locals:
StackMap stack:
aload 0
bipush 64
putfield sun.security.pkcs11.P11Mac.macLength:I
17: goto 25
18: StackMap locals:
StackMap stack:
aload 0
bipush 16
putfield sun.security.pkcs11.P11Mac.macLength:I
19: ldc 16
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 5
20: goto 25
21: StackMap locals:
StackMap stack:
aload 0
bipush 20
putfield sun.security.pkcs11.P11Mac.macLength:I
22: ldc 20
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 5
23: goto 25
24: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "Unknown mechanism: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 0
new sun.security.pkcs11.wrapper.CK_MECHANISM
dup
lload 3
aload 5
invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(JLjava/lang/Long;)V
putfield sun.security.pkcs11.P11Mac.ckMechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
26: aload 0
iconst_1
putfield sun.security.pkcs11.P11Mac.state:I
27: aload 0
invokevirtual sun.security.pkcs11.P11Mac.initialize:()V
28: return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/security/pkcs11/P11Mac;
0 29 1 token Lsun/security/pkcs11/Token;
0 29 2 algorithm Ljava/lang/String;
0 29 3 mechanism J
5 29 5 params Ljava/lang/Long;
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
token
algorithm
mechanism
private void ensureInitialized();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 0
getfield sun.security.pkcs11.P11Mac.state:I
iconst_1
if_icmpne 3
2: aload 0
invokevirtual sun.security.pkcs11.P11Mac.initialize:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/pkcs11/P11Mac;
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
private void cancelOperation();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 0
getfield sun.security.pkcs11.P11Mac.state:I
iconst_1
if_icmpne 3
2: return
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.security.pkcs11.P11Mac.state:I
4: aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
ifnull 5
aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.explicitCancel:Z
ifne 6
5: StackMap locals:
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
iconst_0
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignFinal:(JI)[B
pop
7: goto 10
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
8: astore 1
start local 1 9: new java.security.ProviderException
dup
ldc "Cancel failed"
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/pkcs11/P11Mac;
9 10 1 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
6 7 8 Class sun.security.pkcs11.wrapper.PKCS11Exception
private void initialize();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Mac.state:I
iconst_2
if_icmpne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
ifnonnull 4
3: aload 0
aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Mac.p11Key:Lsun/security/pkcs11/P11Key;
ifnull 10
5: aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
6: aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11Mac.ckMechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
aload 0
getfield sun.security.pkcs11.P11Mac.p11Key:Lsun/security/pkcs11/P11Key;
getfield sun.security.pkcs11.P11Key.keyID:J
7: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignInit:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J)V
8: aload 0
iconst_2
putfield sun.security.pkcs11.P11Mac.state:I
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.security.pkcs11.P11Mac.state:I
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/pkcs11/P11Mac;
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
protected int engineGetMacLength();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Mac.macLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11Mac;
protected void engineReset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Mac.state:I
iconst_4
if_icmpne 3
1: aload 0
iconst_1
putfield sun.security.pkcs11.P11Mac.state:I
2: return
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.P11Mac.cancelOperation:()V
4: aload 0
invokevirtual sun.security.pkcs11.P11Mac.initialize:()V
5: goto 8
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
6: astore 1
start local 1 7: new java.security.ProviderException
dup
ldc "reset() failed, "
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/pkcs11/P11Mac;
7 8 1 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
4 5 6 Class sun.security.pkcs11.wrapper.PKCS11Exception
protected void engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 4
1: new java.security.InvalidAlgorithmParameterException
dup
2: ldc "Parameters not supported"
3: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.P11Mac.cancelOperation:()V
5: aload 0
aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
aload 1
aload 0
getfield sun.security.pkcs11.P11Mac.algorithm:Ljava/lang/String;
invokestatic sun.security.pkcs11.P11SecretKeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
putfield sun.security.pkcs11.P11Mac.p11Key:Lsun/security/pkcs11/P11Key;
6: aload 0
invokevirtual sun.security.pkcs11.P11Mac.initialize:()V
7: goto 10
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
8: astore 3
start local 3 9: new java.security.InvalidKeyException
dup
ldc "init() failed"
aload 3
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/pkcs11/P11Mac;
0 11 1 key Ljava/security/Key;
0 11 2 params Ljava/security/spec/AlgorithmParameterSpec;
9 10 3 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
6 7 8 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
key
params
protected byte[] engineDoFinal();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.pkcs11.P11Mac.ensureInitialized:()V
1: aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
iconst_0
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignFinal:(JI)[B
astore 1
start local 1 2: aload 0
iconst_4
putfield sun.security.pkcs11.P11Mac.state:I
3: aload 1
astore 3
4: aload 0
aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
5: aload 3
areturn
end local 1 6: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 1
start local 1 7: new java.security.ProviderException
dup
ldc "doFinal() failed"
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
9: aload 0
aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
10: aload 2
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/pkcs11/P11Mac;
2 6 1 mac [B
7 8 1 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 4 6 Class sun.security.pkcs11.wrapper.PKCS11Exception
0 4 8 any
6 8 8 any
protected void engineUpdate(byte);
descriptor: (B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.P11Mac.oneByte:[B
ifnonnull 2
1: aload 0
iconst_1
newarray 8
putfield sun.security.pkcs11.P11Mac.oneByte:[B
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Mac.oneByte:[B
iconst_0
iload 1
bastore
3: aload 0
aload 0
getfield sun.security.pkcs11.P11Mac.oneByte:[B
iconst_0
iconst_1
invokevirtual sun.security.pkcs11.P11Mac.engineUpdate:([BII)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs11/P11Mac;
0 5 1 input B
MethodParameters:
Name Flags
input
protected void engineUpdate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual sun.security.pkcs11.P11Mac.ensureInitialized:()V
1: aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 1
iload 2
iload 3
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignUpdate:(JJ[BII)V
2: aload 0
iconst_3
putfield sun.security.pkcs11.P11Mac.state:I
3: goto 6
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
4: astore 4
start local 4 5: new java.security.ProviderException
dup
ldc "update() failed"
aload 4
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs11/P11Mac;
0 7 1 b [B
0 7 2 ofs I
0 7 3 len I
5 6 4 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 3 4 Class sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
b
ofs
len
protected void engineUpdate(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.security.pkcs11.P11Mac.ensureInitialized:()V
1: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 2: iload 2
ifgt 4
3: return
4: StackMap locals: int
StackMap stack:
aload 1
instanceof sun.nio.ch.DirectBuffer
ifne 7
5: aload 0
aload 1
invokespecial javax.crypto.MacSpi.engineUpdate:(Ljava/nio/ByteBuffer;)V
6: return
7: StackMap locals:
StackMap stack:
aload 1
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
lstore 3
start local 3 8: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 5
start local 5 9: aload 0
getfield sun.security.pkcs11.P11Mac.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Mac.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lload 3
iload 5
i2l
ladd
aconst_null
iconst_0
iload 2
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignUpdate:(JJ[BII)V
10: aload 1
iload 5
iload 2
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
11: aload 0
iconst_3
putfield sun.security.pkcs11.P11Mac.state:I
end local 5 end local 3 end local 2 12: goto 15
StackMap locals: sun.security.pkcs11.P11Mac java.nio.ByteBuffer
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
13: astore 2
start local 2 14: new java.security.ProviderException
dup
ldc "update() failed"
aload 2
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/security/pkcs11/P11Mac;
0 16 1 byteBuffer Ljava/nio/ByteBuffer;
2 12 2 len I
8 12 3 addr J
9 12 5 ofs I
14 15 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 3 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
4 6 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
7 12 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
byteBuffer
}
SourceFile: "P11Mac.java"