public class com.oracle.security.ucrypto.NativeCipherWithJavaPadding extends javax.crypto.CipherSpi
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.security.ucrypto.NativeCipherWithJavaPadding
super_class: javax.crypto.CipherSpi
{
private final com.oracle.security.ucrypto.NativeCipher nc;
descriptor: Lcom/oracle/security/ucrypto/NativeCipher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding padding;
descriptor: Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int blockSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int lastBlockLen;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(com.oracle.security.ucrypto.NativeCipher, java.lang.String);
descriptor: (Lcom/oracle/security/ucrypto/NativeCipher;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.crypto.CipherSpi.<init>:()V
1: aload 0
iconst_0
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
2: aload 0
aload 1
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
3: aload 0
aload 1
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineGetBlockSize:()I
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.blockSize:I
4: aload 2
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc "PKCS5PADDING"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
new com.oracle.security.ucrypto.NativeCipherWithJavaPadding$PKCS5Padding
dup
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.blockSize:I
invokespecial com.oracle.security.ucrypto.NativeCipherWithJavaPadding$PKCS5Padding.<init>:(I)V
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
6: goto 8
7: StackMap locals: com.oracle.security.ucrypto.NativeCipherWithJavaPadding com.oracle.security.ucrypto.NativeCipher java.lang.String
StackMap stack:
new java.security.NoSuchAlgorithmException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported padding scheme: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 9 1 nc Lcom/oracle/security/ucrypto/NativeCipher;
0 9 2 paddingScheme Ljava/lang/String;
Exceptions:
throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException
MethodParameters:
Name Flags
nc
paddingScheme
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
invokeinterface com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding.clear:()V
1: aload 0
iconst_0
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
protected synchronized void engineSetMode(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineSetMode:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 2 1 mode Ljava/lang/String;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
mode
protected void engineSetPadding(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new javax.crypto.NoSuchPaddingException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported padding "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.crypto.NoSuchPaddingException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 1 1 padding Ljava/lang/String;
Exceptions:
throws javax.crypto.NoSuchPaddingException
MethodParameters:
Name Flags
padding
protected int engineGetBlockSize();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.blockSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
protected synchronized int engineGetOutputSize(int);
descriptor: (I)I
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
iload 1
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineGetOutputSize:(I)I
istore 2
start local 2 1: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
getfield com.oracle.security.ucrypto.NativeCipher.encrypt:Z
ifeq 4
2: iload 2
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
iload 2
invokeinterface com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding.getPadLen:(I)I
iadd
istore 2
3: goto 5
4: StackMap locals: int
StackMap stack:
iload 2
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
invokeinterface com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding.getBufferedLength:()I
iadd
istore 2
5: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 6 1 inputLen I
1 6 2 result I
MethodParameters:
Name Flags
inputLen
protected synchronized byte[] engineGetIV();
descriptor: ()[B
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineGetIV:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
protected synchronized java.security.AlgorithmParameters engineGetParameters();
descriptor: ()Ljava/security/AlgorithmParameters;
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineGetParameters:()Ljava/security/AlgorithmParameters;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
protected int engineGetKeySize(java.security.Key);
descriptor: (Ljava/security/Key;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineGetKeySize:(Ljava/security/Key;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 1 1 key Ljava/security/Key;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected synchronized void engineInit(int, java.security.Key, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/SecureRandom;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
1: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
iload 1
aload 2
aload 3
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineInit:(ILjava/security/Key;Ljava/security/SecureRandom;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 3 1 opmode I
0 3 2 key Ljava/security/Key;
0 3 3 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
opmode
key
random
protected synchronized void engineInit(int, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
1: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
iload 1
aload 2
aload 3
aload 4
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineInit:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 3 1 opmode I
0 3 2 key Ljava/security/Key;
0 3 3 params Ljava/security/spec/AlgorithmParameterSpec;
0 3 4 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
protected synchronized void engineInit(int, java.security.Key, java.security.AlgorithmParameters, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
1: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
iload 1
aload 2
aload 3
aload 4
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineInit:(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 3 1 opmode I
0 3 2 key Ljava/security/Key;
0 3 3 params Ljava/security/AlgorithmParameters;
0 3 4 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
protected synchronized byte[] engineUpdate(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
getfield com.oracle.security.ucrypto.NativeCipher.encrypt:Z
ifeq 4
1: aload 0
dup
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
iload 3
iadd
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
2: aload 0
dup
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.blockSize:I
iconst_1
isub
iand
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
3: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
iload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineUpdate:([BII)[B
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
iload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineUpdate:([BII)[B
invokeinterface com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding.bufferBytes:([B)[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 5 1 in [B
0 5 2 inOfs I
0 5 3 inLen I
MethodParameters:
Name Flags
in
inOfs
inLen
protected synchronized int engineUpdate(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=6, 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 com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
getfield com.oracle.security.ucrypto.NativeCipher.encrypt:Z
ifeq 4
1: aload 0
dup
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
iload 3
iadd
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
2: aload 0
dup
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.blockSize:I
iconst_1
isub
iand
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
3: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
iload 2
iload 3
aload 4
iload 5
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineUpdate:([BII[BI)I
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
iload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineUpdate:([BII)[B
invokeinterface com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding.bufferBytes:([B)[B
astore 6
start local 6 5: aload 6
ifnull 8
6: aload 6
iconst_0
aload 4
iload 5
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 6
arraylength
ireturn
8: StackMap locals: byte[]
StackMap stack:
iconst_0
ireturn
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 Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 9 1 in [B
0 9 2 inOfs I
0 9 3 inLen I
0 9 4 out [B
0 9 5 outOfs I
5 9 6 result [B
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOfs
inLen
out
outOfs
protected synchronized byte[] engineDoFinal(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 3
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineGetOutputSize:(I)I
istore 4
start local 4 1: iload 4
newarray 8
astore 5
start local 5 2: aload 0
aload 1
iload 2
iload 3
aload 5
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal:([BII[BI)I
istore 6
start local 6 3: iload 6
aload 5
arraylength
if_icmpeq 11
4: aload 5
iload 6
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 5
end local 6 5: goto 11
StackMap locals: com.oracle.security.ucrypto.NativeCipherWithJavaPadding byte[] int int int byte[]
StackMap stack: javax.crypto.ShortBufferException
6: astore 6
start local 6 7: new com.oracle.security.ucrypto.UcryptoException
dup
ldc "Internal Error"
aload 6
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
9: aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
10: aload 7
athrow
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
12: 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 13 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 13 1 in [B
0 13 2 inOfs I
0 13 3 inLen I
1 13 4 estimatedOutLen I
2 13 5 out [B
3 5 6 actualOut I
7 8 6 sbe Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
2 5 6 Class javax.crypto.ShortBufferException
2 8 8 any
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
in
inOfs
inLen
protected synchronized int engineDoFinal(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=8, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
iload 3
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineGetOutputSize:(I)I
istore 6
start local 6 1: aload 4
arraylength
iload 5
isub
iload 6
if_icmpge 5
2: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Actual: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
arraylength
iload 5
isub
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
3: ldc ". Estimated Out Length: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
getfield com.oracle.security.ucrypto.NativeCipher.encrypt:Z
ifeq 14
6: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
iload 2
iload 3
aload 4
iload 5
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineUpdate:([BII[BI)I
istore 7
start local 7 7: aload 0
dup
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
iload 3
iadd
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
8: aload 0
dup
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.blockSize:I
iconst_1
isub
iand
putfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
9: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.lastBlockLen:I
invokeinterface com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding.getPaddingBytes:(I)[B
astore 8
start local 8 10: iload 7
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 8
iconst_0
aload 8
arraylength
aload 4
iload 5
iload 7
iadd
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineDoFinal:([BII[BI)I
iadd
istore 7
11: iload 7
istore 10
12: aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
13: iload 10
ireturn
end local 8 end local 7 14: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.nc:Lcom/oracle/security/ucrypto/NativeCipher;
aload 1
iload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeCipher.engineDoFinal:([BII)[B
astore 7
start local 7 15: aload 0
getfield com.oracle.security.ucrypto.NativeCipherWithJavaPadding.padding:Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding$Padding;
aload 7
aload 4
iload 5
invokeinterface com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding.unpad:([B[BI)I
istore 8
start local 8 16: iload 8
istore 10
17: aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
18: iload 10
ireturn
end local 8 end local 7 19: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
20: aload 0
invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.reset:()V
21: aload 9
athrow
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 22 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 22 1 in [B
0 22 2 inOfs I
0 22 3 inLen I
0 22 4 out [B
0 22 5 outOfs I
1 22 6 estimatedOutLen I
7 14 7 k I
10 14 8 padBytes [B
15 19 7 tempOut [B
16 19 8 len I
Exception table:
from to target type
5 12 19 any
14 17 19 any
Exceptions:
throws javax.crypto.ShortBufferException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
in
inOfs
inLen
out
outOfs
protected synchronized byte[] engineWrap(java.security.Key);
descriptor: (Ljava/security/Key;)[B
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
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.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal:([BII)[B
astore 2
end local 3 5: goto 8
StackMap locals: com.oracle.security.ucrypto.NativeCipherWithJavaPadding java.security.Key byte[]
StackMap stack: javax.crypto.BadPaddingException
6: astore 3
start local 3 7: new com.oracle.security.ucrypto.UcryptoException
dup
ldc "Internal Error"
aload 3
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 9 1 key Ljava/security/Key;
1 9 2 result [B
2 5 3 encodedKey [B
7 8 3 e Ljavax/crypto/BadPaddingException;
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 synchronized java.security.Key engineUnwrap(byte[], java.lang.String, int);
descriptor: ([BLjava/lang/String;I)Ljava/security/Key;
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iconst_0
1: aload 1
arraylength
2: invokevirtual com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal:([BII)[B
astore 4
start local 4 3: goto 7
end local 4 StackMap locals:
StackMap stack: java.lang.Exception
4: astore 5
start local 5 5: new java.security.InvalidKeyException
dup
invokespecial java.security.InvalidKeyException.<init>:()V
aload 5
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
6: checkcast java.security.InvalidKeyException
athrow
end local 5 start local 4 7: StackMap locals: byte[]
StackMap stack:
iload 3
aload 4
8: aload 2
9: invokestatic com.oracle.security.ucrypto.NativeCipher.constructKey:(I[BLjava/lang/String;)Ljava/security/Key;
areturn
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 Lcom/oracle/security/ucrypto/NativeCipherWithJavaPadding;
0 10 1 wrappedKey [B
0 10 2 wrappedKeyAlgorithm Ljava/lang/String;
0 10 3 wrappedKeyType I
3 4 4 encodedKey [B
7 10 4 encodedKey [B
5 7 5 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
wrappedKey
wrappedKeyAlgorithm
wrappedKeyType
}
SourceFile: "NativeCipherWithJavaPadding.java"
NestMembers:
com.oracle.security.ucrypto.NativeCipherWithJavaPadding$AesCbcPKCS5 com.oracle.security.ucrypto.NativeCipherWithJavaPadding$AesCfb128PKCS5 com.oracle.security.ucrypto.NativeCipherWithJavaPadding$AesEcbPKCS5 com.oracle.security.ucrypto.NativeCipherWithJavaPadding$PKCS5Padding com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding
InnerClasses:
public final AesCbcPKCS5 = com.oracle.security.ucrypto.NativeCipherWithJavaPadding$AesCbcPKCS5 of com.oracle.security.ucrypto.NativeCipherWithJavaPadding
public final AesCfb128PKCS5 = com.oracle.security.ucrypto.NativeCipherWithJavaPadding$AesCfb128PKCS5 of com.oracle.security.ucrypto.NativeCipherWithJavaPadding
public final AesEcbPKCS5 = com.oracle.security.ucrypto.NativeCipherWithJavaPadding$AesEcbPKCS5 of com.oracle.security.ucrypto.NativeCipherWithJavaPadding
private PKCS5Padding = com.oracle.security.ucrypto.NativeCipherWithJavaPadding$PKCS5Padding of com.oracle.security.ucrypto.NativeCipherWithJavaPadding
private abstract Padding = com.oracle.security.ucrypto.NativeCipherWithJavaPadding$Padding of com.oracle.security.ucrypto.NativeCipherWithJavaPadding