public abstract class com.sun.crypto.provider.CipherWithWrappingSpi extends javax.crypto.CipherSpi
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.crypto.provider.CipherWithWrappingSpi
super_class: javax.crypto.CipherSpi
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.crypto.CipherSpi.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/CipherWithWrappingSpi;
protected final byte[] engineWrap(java.security.Key);
descriptor: (Ljava/security/Key;)[B
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokeinterface java.security.Key.getEncoded:()[B
astore 3
start local 3 2: aload 3
ifnull 3
aload 3
arraylength
ifne 4
3: StackMap locals: byte[] byte[]
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Cannot get an encoding of the key to be wrapped"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 3
iconst_0
aload 3
arraylength
invokevirtual com.sun.crypto.provider.CipherWithWrappingSpi.engineDoFinal:([BII)[B
astore 2
end local 3 5: goto 7
StackMap locals: com.sun.crypto.provider.CipherWithWrappingSpi java.security.Key byte[]
StackMap stack: javax.crypto.BadPaddingException
6: pop
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/crypto/provider/CipherWithWrappingSpi;
0 8 1 key Ljava/security/Key;
1 8 2 result [B
2 5 3 encodedKey [B
Exception table:
from to target type
1 5 6 Class javax.crypto.BadPaddingException
Exceptions:
throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected final java.security.Key engineUnwrap(byte[], java.lang.String, int);
descriptor: ([BLjava/lang/String;I)Ljava/security/Key;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 5
start local 5 1: aload 0
aload 1
iconst_0
2: aload 1
arraylength
3: invokevirtual com.sun.crypto.provider.CipherWithWrappingSpi.engineDoFinal:([BII)[B
astore 4
start local 4 4: goto 9
end local 4 StackMap locals: com.sun.crypto.provider.CipherWithWrappingSpi byte[] java.lang.String int top java.security.Key
StackMap stack: javax.crypto.BadPaddingException
5: pop
6: new java.security.InvalidKeyException
dup
invokespecial java.security.InvalidKeyException.<init>:()V
athrow
7: StackMap locals:
StackMap stack: javax.crypto.IllegalBlockSizeException
pop
8: new java.security.InvalidKeyException
dup
invokespecial java.security.InvalidKeyException.<init>:()V
athrow
start local 4 9: StackMap locals: com.sun.crypto.provider.CipherWithWrappingSpi byte[] java.lang.String int byte[] java.security.Key
StackMap stack:
iload 3
tableswitch { // 1 - 3
1: 18
2: 14
3: 10
default: 21
}
10: StackMap locals:
StackMap stack:
aload 0
aload 4
11: aload 2
12: invokevirtual com.sun.crypto.provider.CipherWithWrappingSpi.constructSecretKey:([BLjava/lang/String;)Ljavax/crypto/SecretKey;
astore 5
13: goto 21
14: StackMap locals:
StackMap stack:
aload 0
aload 4
15: aload 2
16: invokevirtual com.sun.crypto.provider.CipherWithWrappingSpi.constructPrivateKey:([BLjava/lang/String;)Ljava/security/PrivateKey;
astore 5
17: goto 21
18: StackMap locals:
StackMap stack:
aload 0
aload 4
19: aload 2
20: invokevirtual com.sun.crypto.provider.CipherWithWrappingSpi.constructPublicKey:([BLjava/lang/String;)Ljava/security/PublicKey;
astore 5
21: StackMap locals:
StackMap stack:
aload 5
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 22 0 this Lcom/sun/crypto/provider/CipherWithWrappingSpi;
0 22 1 wrappedKey [B
0 22 2 wrappedKeyAlgorithm Ljava/lang/String;
0 22 3 wrappedKeyType I
4 5 4 encodedKey [B
9 22 4 encodedKey [B
1 22 5 result Ljava/security/Key;
Exception table:
from to target type
1 4 5 Class javax.crypto.BadPaddingException
1 4 7 Class javax.crypto.IllegalBlockSizeException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
wrappedKey
wrappedKeyAlgorithm
wrappedKeyType
private final java.security.PublicKey constructPublicKey(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)Ljava/security/PublicKey;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 2
2: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
3: invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
4: astore 4
start local 4 5: new java.security.spec.X509EncodedKeySpec
dup
aload 1
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
astore 5
start local 5 6: aload 4
aload 5
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 3
end local 5 end local 4 7: goto 22
StackMap locals: com.sun.crypto.provider.CipherWithWrappingSpi byte[] java.lang.String java.security.PublicKey
StackMap stack: java.security.NoSuchAlgorithmException
8: pop
9: aload 2
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
10: astore 4
start local 4 11: new java.security.spec.X509EncodedKeySpec
dup
aload 1
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
12: astore 5
start local 5 13: aload 4
aload 5
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 3
end local 5 end local 4 14: goto 22
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
15: pop
16: new java.security.NoSuchAlgorithmException
dup
new java.lang.StringBuilder
dup
ldc "No installed providers can create keys for the "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
17: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
pop
goto 22
21: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
pop
22: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/crypto/provider/CipherWithWrappingSpi;
0 23 1 encodedKey [B
0 23 2 encodedKeyAlgorithm Ljava/lang/String;
1 23 3 key Ljava/security/PublicKey;
5 7 4 keyFactory Ljava/security/KeyFactory;
6 7 5 keySpec Ljava/security/spec/X509EncodedKeySpec;
11 14 4 keyFactory Ljava/security/KeyFactory;
13 14 5 keySpec Ljava/security/spec/X509EncodedKeySpec;
Exception table:
from to target type
1 7 8 Class java.security.NoSuchAlgorithmException
9 14 15 Class java.security.NoSuchAlgorithmException
9 14 20 Class java.security.spec.InvalidKeySpecException
1 7 21 Class java.security.spec.InvalidKeySpecException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encodedKey
encodedKeyAlgorithm
private final java.security.PrivateKey constructPrivateKey(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)Ljava/security/PrivateKey;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 2
2: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
3: invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
4: astore 4
start local 4 5: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 1
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
astore 5
start local 5 6: aload 4
aload 5
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
7: areturn
end local 5 end local 4 8: StackMap locals: com.sun.crypto.provider.CipherWithWrappingSpi byte[] java.lang.String java.security.PrivateKey
StackMap stack: java.security.NoSuchAlgorithmException
pop
9: aload 2
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
10: astore 4
start local 4 11: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 1
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
12: astore 5
start local 5 13: aload 4
aload 5
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
astore 3
end local 5 end local 4 14: goto 22
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
15: pop
16: new java.security.NoSuchAlgorithmException
dup
new java.lang.StringBuilder
dup
ldc "No installed providers can create keys for the "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
17: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
pop
goto 22
21: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
pop
22: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/crypto/provider/CipherWithWrappingSpi;
0 23 1 encodedKey [B
0 23 2 encodedKeyAlgorithm Ljava/lang/String;
1 23 3 key Ljava/security/PrivateKey;
5 8 4 keyFactory Ljava/security/KeyFactory;
6 8 5 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
11 14 4 keyFactory Ljava/security/KeyFactory;
13 14 5 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
Exception table:
from to target type
1 7 8 Class java.security.NoSuchAlgorithmException
9 14 15 Class java.security.NoSuchAlgorithmException
9 14 20 Class java.security.spec.InvalidKeySpecException
1 7 21 Class java.security.spec.InvalidKeySpecException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encodedKey
encodedKeyAlgorithm
private final javax.crypto.SecretKey constructSecretKey(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)Ljavax/crypto/SecretKey;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new javax.crypto.spec.SecretKeySpec
dup
aload 1
aload 2
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/CipherWithWrappingSpi;
0 1 1 encodedKey [B
0 1 2 encodedKeyAlgorithm Ljava/lang/String;
MethodParameters:
Name Flags
encodedKey
encodedKeyAlgorithm
}
SourceFile: "CipherWithWrappingSpi.java"