public class org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest extends org.graalvm.compiler.hotspot.test.HotSpotGraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest
super_class: org.graalvm.compiler.hotspot.test.HotSpotGraalCompilerTest
{
private final byte[] input;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
java.security.AlgorithmParameters algorithmParameters;
descriptor: Ljava/security/AlgorithmParameters;
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.hotspot.test.HotSpotGraalCompilerTest.<init>:()V
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.readClassfile16:(Ljava/lang/Class;)[B
putfield org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.input:[B
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
Exceptions:
throws java.lang.Exception
private void testEncryptDecrypt(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=12, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aconst_null
astore 6
start local 6 1: aload 1
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
2: goto 5
StackMap locals: org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest java.lang.String java.lang.String java.lang.String int java.lang.String java.lang.Class
StackMap stack: java.lang.ClassNotFoundException
3: pop
4: return
5: StackMap locals:
StackMap stack:
aload 3
invokestatic javax.crypto.KeyGenerator.getInstance:(Ljava/lang/String;)Ljavax/crypto/KeyGenerator;
astore 7
start local 7 6: aload 7
iload 4
invokevirtual javax.crypto.KeyGenerator.init:(I)V
7: aload 7
invokevirtual javax.crypto.KeyGenerator.generateKey:()Ljavax/crypto/SecretKey;
astore 8
start local 8 8: aload 0
aload 8
aload 5
invokevirtual org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.runEncryptDecrypt:(Ljavax/crypto/SecretKey;Ljava/lang/String;)Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
astore 9
start local 9 9: aload 0
aload 6
aload 2
invokevirtual org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.compileAndInstallSubstitution:(Ljava/lang/Class;Ljava/lang/String;)Ljdk/vm/ci/code/InstalledCode;
astore 10
start local 10 10: aload 10
ifnull 14
11: aload 0
aload 8
aload 5
invokevirtual org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.runEncryptDecrypt:(Ljavax/crypto/SecretKey;Ljava/lang/String;)Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
astore 11
start local 11 12: aload 0
aload 9
aload 11
invokevirtual org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.assertEquals:(Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;)V
13: aload 10
invokevirtual jdk.vm.ci.code.InstalledCode.invalidate:()V
end local 11 14: StackMap locals: org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest java.lang.String java.lang.String java.lang.String int java.lang.String java.lang.Class javax.crypto.KeyGenerator javax.crypto.SecretKey org.graalvm.compiler.core.test.GraalCompilerTest$Result jdk.vm.ci.code.InstalledCode
StackMap stack:
return
end local 10 end local 9 end local 8 end local 7 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 15 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
0 15 1 className Ljava/lang/String;
0 15 2 methodName Ljava/lang/String;
0 15 3 generatorAlgorithm Ljava/lang/String;
0 15 4 keySize I
0 15 5 algorithm Ljava/lang/String;
1 15 6 klass Ljava/lang/Class<*>;
6 15 7 gen Ljavax/crypto/KeyGenerator;
8 15 8 key Ljavax/crypto/SecretKey;
9 15 9 expected Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
10 15 10 intrinsic Ljdk/vm/ci/code/InstalledCode;
12 14 11 actual Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
Exception table:
from to target type
1 2 3 Class java.lang.ClassNotFoundException
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
className
methodName
generatorAlgorithm
keySize
algorithm
public void testAESencryptBlock();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tTest cannot be resolved to a type\n\tAssume cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void testAESDecryptBlock();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tTest cannot be resolved to a type\n\tAssume cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void testCipherBlockChainingEncrypt();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tTest cannot be resolved to a type\n\tAssume cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void testCipherBlockChainingDecrypt();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tTest cannot be resolved to a type\n\tAssume cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void testCounterModeEncrypt();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tTest cannot be resolved to a type\n\tAssume cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
private byte[] encrypt(byte[], javax.crypto.SecretKey, java.lang.String);
descriptor: ([BLjavax/crypto/SecretKey;Ljava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
astore 4
start local 4 1: aload 3
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
astore 5
start local 5 2: aload 5
iconst_1
aload 2
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;)V
3: aload 0
aload 5
invokevirtual javax.crypto.Cipher.getParameters:()Ljava/security/AlgorithmParameters;
putfield org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.algorithmParameters:Ljava/security/AlgorithmParameters;
4: aload 5
aload 4
invokevirtual javax.crypto.Cipher.update:([B)[B
astore 6
start local 6 5: aload 5
invokevirtual javax.crypto.Cipher.doFinal:()[B
astore 7
start local 7 6: aload 6
arraylength
aload 7
arraylength
iadd
newarray 8
astore 4
7: aload 6
iconst_0
aload 4
iconst_0
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 7
iconst_0
aload 4
aload 6
arraylength
aload 7
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 4
areturn
end local 7 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 10 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
0 10 1 indata [B
0 10 2 key Ljavax/crypto/SecretKey;
0 10 3 algorithm Ljava/lang/String;
1 10 4 result [B
2 10 5 c Ljavax/crypto/Cipher;
5 10 6 r1 [B
6 10 7 r2 [B
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
indata
key
algorithm
private byte[] decrypt(byte[], javax.crypto.SecretKey, java.lang.String);
descriptor: ([BLjavax/crypto/SecretKey;Ljava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
astore 4
start local 4 1: aload 3
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
astore 5
start local 5 2: aload 5
iconst_2
aload 2
aload 0
getfield org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest.algorithmParameters:Ljava/security/AlgorithmParameters;
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/AlgorithmParameters;)V
3: aload 5
aload 4
invokevirtual javax.crypto.Cipher.update:([B)[B
astore 6
start local 6 4: aload 5
invokevirtual javax.crypto.Cipher.doFinal:()[B
astore 7
start local 7 5: aload 6
arraylength
aload 7
arraylength
iadd
newarray 8
astore 4
6: aload 6
iconst_0
aload 4
iconst_0
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 7
iconst_0
aload 4
aload 6
arraylength
aload 7
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 4
areturn
end local 7 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 9 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
0 9 1 indata [B
0 9 2 key Ljavax/crypto/SecretKey;
0 9 3 algorithm Ljava/lang/String;
1 9 4 result [B
2 9 5 c Ljavax/crypto/Cipher;
4 9 6 r1 [B
5 9 7 r2 [B
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
indata
key
algorithm
private static byte[] readClassfile16(java.lang.Class<? extends org.graalvm.compiler.hotspot.test.HotSpotCryptoSubstitutionTest>);
descriptor: (Ljava/lang/Class;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
aload 1
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 2
start local 2 2: aload 2
invokevirtual java.io.InputStream.available:()I
istore 3
start local 3 3: iload 3
iload 3
bipush 16
irem
isub
istore 3
4: iload 3
newarray 8
astore 4
start local 4 5: new java.io.DataInputStream
dup
aload 2
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
aload 4
invokevirtual java.io.DataInputStream.readFully:([B)V
6: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 c Ljava/lang/Class<+Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;>;
1 7 1 classFilePath Ljava/lang/String;
2 7 2 stream Ljava/io/InputStream;
3 7 3 bytesToRead I
5 7 4 classFile [B
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Class<+Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;>;)[B
MethodParameters:
Name Flags
c
public org.graalvm.compiler.core.test.GraalCompilerTest$Result runEncryptDecrypt(javax.crypto.SecretKey, java.lang.String);
descriptor: (Ljavax/crypto/SecretKey;Ljava/lang/String;)Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tAssert cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotCryptoSubstitutionTest;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
key
algorithm
}
SourceFile: "HotSpotCryptoSubstitutionTest.java"
InnerClasses:
public Result = org.graalvm.compiler.core.test.GraalCompilerTest$Result of org.graalvm.compiler.core.test.GraalCompilerTest