public class sun.security.util.ECUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.util.ECUtil
super_class: java.lang.Object
{
public static java.security.spec.ECPoint decodePoint(byte[], java.security.spec.EllipticCurve);
descriptor: ([BLjava/security/spec/EllipticCurve;)Ljava/security/spec/ECPoint;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 0
arraylength
ifeq 1
aload 0
iconst_0
baload
iconst_4
if_icmpeq 2
1: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Only uncompressed point format supported"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
arraylength
iconst_1
isub
iconst_2
idiv
istore 2
start local 2 3: iload 2
aload 1
invokevirtual java.security.spec.EllipticCurve.getField:()Ljava/security/spec/ECField;
invokeinterface java.security.spec.ECField.getFieldSize:()I
bipush 7
iadd
iconst_3
ishr
if_icmpeq 5
4: new java.io.IOException
dup
ldc "Point does not match field size"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
aload 0
iconst_1
iconst_1
iload 2
iadd
invokestatic java.util.Arrays.copyOfRange:([BII)[B
astore 3
start local 3 6: aload 0
iload 2
iconst_1
iadd
iload 2
iconst_1
iadd
iload 2
iadd
invokestatic java.util.Arrays.copyOfRange:([BII)[B
astore 4
start local 4 7: new java.security.spec.ECPoint
dup
new java.math.BigInteger
dup
iconst_1
aload 3
invokespecial java.math.BigInteger.<init>:(I[B)V
new java.math.BigInteger
dup
iconst_1
aload 4
invokespecial java.math.BigInteger.<init>:(I[B)V
invokespecial java.security.spec.ECPoint.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 data [B
0 8 1 curve Ljava/security/spec/EllipticCurve;
3 8 2 n I
6 8 3 xb [B
7 8 4 yb [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
curve
public static byte[] encodePoint(java.security.spec.ECPoint, java.security.spec.EllipticCurve);
descriptor: (Ljava/security/spec/ECPoint;Ljava/security/spec/EllipticCurve;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.security.spec.EllipticCurve.getField:()Ljava/security/spec/ECField;
invokeinterface java.security.spec.ECField.getFieldSize:()I
bipush 7
iadd
iconst_3
ishr
istore 2
start local 2 1: aload 0
invokevirtual java.security.spec.ECPoint.getAffineX:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.toByteArray:()[B
invokestatic sun.security.util.ECUtil.trimZeroes:([B)[B
astore 3
start local 3 2: aload 0
invokevirtual java.security.spec.ECPoint.getAffineY:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.toByteArray:()[B
invokestatic sun.security.util.ECUtil.trimZeroes:([B)[B
astore 4
start local 4 3: aload 3
arraylength
iload 2
if_icmpgt 4
aload 4
arraylength
iload 2
if_icmple 7
4: StackMap locals: int byte[] byte[]
StackMap stack:
new java.lang.RuntimeException
dup
5: ldc "Point coordinates do not match field size"
6: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
iconst_1
iload 2
iconst_1
ishl
iadd
newarray 8
astore 5
start local 5 8: aload 5
iconst_0
iconst_4
bastore
9: aload 3
iconst_0
aload 5
iload 2
aload 3
arraylength
isub
iconst_1
iadd
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 4
iconst_0
aload 5
aload 5
arraylength
aload 4
arraylength
isub
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: 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 12 0 point Ljava/security/spec/ECPoint;
0 12 1 curve Ljava/security/spec/EllipticCurve;
1 12 2 n I
2 12 3 xb [B
3 12 4 yb [B
8 12 5 b [B
MethodParameters:
Name Flags
point
curve
public static byte[] trimZeroes(byte[]);
descriptor: ([B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 3
2: StackMap locals: int
StackMap stack:
iinc 1 1
3: StackMap locals:
StackMap stack:
iload 1
aload 0
arraylength
iconst_1
isub
if_icmpge 4
aload 0
iload 1
baload
ifeq 2
4: StackMap locals:
StackMap stack:
iload 1
ifne 6
5: aload 0
areturn
6: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 0
arraylength
invokestatic java.util.Arrays.copyOfRange:([BII)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 b [B
1 7 1 i I
MethodParameters:
Name Flags
b
private static java.security.KeyFactory getKeyFactory();
descriptor: ()Ljava/security/KeyFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: ldc "EC"
ldc "SunEC"
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyFactory;
1: areturn
2: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 0
start local 0 3: new java.lang.RuntimeException
dup
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
3 4 0 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
0 1 2 Class java.security.NoSuchAlgorithmException
0 1 2 Class java.security.NoSuchProviderException
public static java.security.interfaces.ECPublicKey decodeX509ECPublicKey(byte[]);
descriptor: ([B)Ljava/security/interfaces/ECPublicKey;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic sun.security.util.ECUtil.getKeyFactory:()Ljava/security/KeyFactory;
astore 1
start local 1 1: new java.security.spec.X509EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
checkcast java.security.interfaces.ECPublicKey
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 encoded [B
1 3 1 keyFactory Ljava/security/KeyFactory;
2 3 2 keySpec Ljava/security/spec/X509EncodedKeySpec;
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
encoded
public static byte[] x509EncodeECPublicKey(java.security.spec.ECPoint, java.security.spec.ECParameterSpec);
descriptor: (Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: invokestatic sun.security.util.ECUtil.getKeyFactory:()Ljava/security/KeyFactory;
astore 2
start local 2 1: new java.security.spec.ECPublicKeySpec
dup
aload 0
aload 1
invokespecial java.security.spec.ECPublicKeySpec.<init>:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)V
astore 3
start local 3 2: aload 2
aload 3
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
checkcast sun.security.x509.X509Key
astore 4
start local 4 3: aload 4
invokevirtual sun.security.x509.X509Key.getEncoded:()[B
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 w Ljava/security/spec/ECPoint;
0 4 1 params Ljava/security/spec/ECParameterSpec;
1 4 2 keyFactory Ljava/security/KeyFactory;
2 4 3 keySpec Ljava/security/spec/ECPublicKeySpec;
3 4 4 key Lsun/security/x509/X509Key;
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
w
params
public static java.security.interfaces.ECPrivateKey decodePKCS8ECPrivateKey(byte[]);
descriptor: ([B)Ljava/security/interfaces/ECPrivateKey;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic sun.security.util.ECUtil.getKeyFactory:()Ljava/security/KeyFactory;
astore 1
start local 1 1: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
checkcast java.security.interfaces.ECPrivateKey
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 encoded [B
1 3 1 keyFactory Ljava/security/KeyFactory;
2 3 2 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
encoded
public static java.security.interfaces.ECPrivateKey generateECPrivateKey(java.math.BigInteger, java.security.spec.ECParameterSpec);
descriptor: (Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)Ljava/security/interfaces/ECPrivateKey;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic sun.security.util.ECUtil.getKeyFactory:()Ljava/security/KeyFactory;
astore 2
start local 2 1: new java.security.spec.ECPrivateKeySpec
dup
aload 0
aload 1
invokespecial java.security.spec.ECPrivateKeySpec.<init>:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)V
astore 3
start local 3 2: aload 2
aload 3
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
checkcast java.security.interfaces.ECPrivateKey
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/math/BigInteger;
0 3 1 params Ljava/security/spec/ECParameterSpec;
1 3 2 keyFactory Ljava/security/KeyFactory;
2 3 3 keySpec Ljava/security/spec/ECPrivateKeySpec;
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
s
params
public static java.security.AlgorithmParameters getECParameters(java.security.Provider);
descriptor: (Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnull 3
1: ldc "EC"
aload 0
invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
2: areturn
3: StackMap locals:
StackMap stack:
ldc "EC"
invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;)Ljava/security/AlgorithmParameters;
4: areturn
5: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 1
start local 1 6: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 p Ljava/security/Provider;
6 7 1 nsae Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
0 2 5 Class java.security.NoSuchAlgorithmException
3 4 5 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
p
public static byte[] encodeECParameterSpec(java.security.Provider, java.security.spec.ECParameterSpec);
descriptor: (Ljava/security/Provider;Ljava/security/spec/ECParameterSpec;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.security.util.ECUtil.getECParameters:(Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 2
start local 2 1: aload 2
aload 1
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
2: goto 5
StackMap locals: java.security.Provider java.security.spec.ECParameterSpec java.security.AlgorithmParameters
StackMap stack: java.security.spec.InvalidParameterSpecException
3: pop
4: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Not a known named curve: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.AlgorithmParameters.getEncoded:()[B
6: areturn
7: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 8: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 p Ljava/security/Provider;
0 9 1 spec Ljava/security/spec/ECParameterSpec;
1 9 2 parameters Ljava/security/AlgorithmParameters;
8 9 3 ioe Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.security.spec.InvalidParameterSpecException
5 6 7 Class java.io.IOException
MethodParameters:
Name Flags
p
spec
public static java.security.spec.ECParameterSpec getECParameterSpec(java.security.Provider, java.security.spec.ECParameterSpec);
descriptor: (Ljava/security/Provider;Ljava/security/spec/ECParameterSpec;)Ljava/security/spec/ECParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.security.util.ECUtil.getECParameters:(Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 2
start local 2 1: aload 2
aload 1
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
2: aload 2
ldc Ljava/security/spec/ECParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast java.security.spec.ECParameterSpec
3: areturn
4: StackMap locals: java.security.Provider java.security.spec.ECParameterSpec java.security.AlgorithmParameters
StackMap stack: java.security.spec.InvalidParameterSpecException
pop
5: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 p Ljava/security/Provider;
0 6 1 spec Ljava/security/spec/ECParameterSpec;
1 6 2 parameters Ljava/security/AlgorithmParameters;
Exception table:
from to target type
1 3 4 Class java.security.spec.InvalidParameterSpecException
MethodParameters:
Name Flags
p
spec
public static java.security.spec.ECParameterSpec getECParameterSpec(java.security.Provider, byte[]);
descriptor: (Ljava/security/Provider;[B)Ljava/security/spec/ECParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.security.util.ECUtil.getECParameters:(Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 2
start local 2 1: aload 2
aload 1
invokevirtual java.security.AlgorithmParameters.init:([B)V
2: aload 2
ldc Ljava/security/spec/ECParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast java.security.spec.ECParameterSpec
3: areturn
4: StackMap locals: java.security.Provider byte[] java.security.AlgorithmParameters
StackMap stack: java.security.spec.InvalidParameterSpecException
pop
5: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 p Ljava/security/Provider;
0 6 1 params [B
1 6 2 parameters Ljava/security/AlgorithmParameters;
Exception table:
from to target type
2 3 4 Class java.security.spec.InvalidParameterSpecException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
params
public static java.security.spec.ECParameterSpec getECParameterSpec(java.security.Provider, java.lang.String);
descriptor: (Ljava/security/Provider;Ljava/lang/String;)Ljava/security/spec/ECParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.security.util.ECUtil.getECParameters:(Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 2
start local 2 1: aload 2
new java.security.spec.ECGenParameterSpec
dup
aload 1
invokespecial java.security.spec.ECGenParameterSpec.<init>:(Ljava/lang/String;)V
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
2: aload 2
ldc Ljava/security/spec/ECParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast java.security.spec.ECParameterSpec
3: areturn
4: StackMap locals: java.security.Provider java.lang.String java.security.AlgorithmParameters
StackMap stack: java.security.spec.InvalidParameterSpecException
pop
5: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 p Ljava/security/Provider;
0 6 1 name Ljava/lang/String;
1 6 2 parameters Ljava/security/AlgorithmParameters;
Exception table:
from to target type
1 3 4 Class java.security.spec.InvalidParameterSpecException
MethodParameters:
Name Flags
p
name
public static java.security.spec.ECParameterSpec getECParameterSpec(java.security.Provider, int);
descriptor: (Ljava/security/Provider;I)Ljava/security/spec/ECParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.security.util.ECUtil.getECParameters:(Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 2
start local 2 1: aload 2
new sun.security.util.ECKeySizeParameterSpec
dup
iload 1
invokespecial sun.security.util.ECKeySizeParameterSpec.<init>:(I)V
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
2: aload 2
ldc Ljava/security/spec/ECParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast java.security.spec.ECParameterSpec
3: areturn
4: StackMap locals: java.security.Provider int java.security.AlgorithmParameters
StackMap stack: java.security.spec.InvalidParameterSpecException
pop
5: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 p Ljava/security/Provider;
0 6 1 keySize I
1 6 2 parameters Ljava/security/AlgorithmParameters;
Exception table:
from to target type
1 3 4 Class java.security.spec.InvalidParameterSpecException
MethodParameters:
Name Flags
p
keySize
public static java.lang.String getCurveName(java.security.Provider, java.security.spec.ECParameterSpec);
descriptor: (Ljava/security/Provider;Ljava/security/spec/ECParameterSpec;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.security.util.ECUtil.getECParameters:(Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 3
start local 3 1: aload 3
aload 1
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
2: aload 3
ldc Ljava/security/spec/ECGenParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast java.security.spec.ECGenParameterSpec
astore 2
start local 2 3: goto 6
end local 2 StackMap locals: java.security.Provider java.security.spec.ECParameterSpec top java.security.AlgorithmParameters
StackMap stack: java.security.spec.InvalidParameterSpecException
4: pop
5: aconst_null
areturn
start local 2 6: StackMap locals: java.security.Provider java.security.spec.ECParameterSpec java.security.spec.ECGenParameterSpec java.security.AlgorithmParameters
StackMap stack:
aload 2
ifnonnull 8
7: aconst_null
areturn
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.spec.ECGenParameterSpec.getName:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 p Ljava/security/Provider;
0 9 1 spec Ljava/security/spec/ECParameterSpec;
3 4 2 nameSpec Ljava/security/spec/ECGenParameterSpec;
6 9 2 nameSpec Ljava/security/spec/ECGenParameterSpec;
1 9 3 parameters Ljava/security/AlgorithmParameters;
Exception table:
from to target type
1 3 4 Class java.security.spec.InvalidParameterSpecException
MethodParameters:
Name Flags
p
spec
public static byte[] encodeSignature(byte[]);
descriptor: ([B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
ishr
istore 1
start local 1 1: iload 1
newarray 8
astore 2
start local 2 2: aload 0
iconst_0
aload 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: new java.math.BigInteger
dup
iconst_1
aload 2
invokespecial java.math.BigInteger.<init>:(I[B)V
astore 3
start local 3 4: aload 0
iload 1
aload 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: new java.math.BigInteger
dup
iconst_1
aload 2
invokespecial java.math.BigInteger.<init>:(I[B)V
astore 4
start local 4 6: new sun.security.util.DerOutputStream
dup
aload 0
arraylength
bipush 10
iadd
invokespecial sun.security.util.DerOutputStream.<init>:(I)V
astore 5
start local 5 7: aload 5
aload 3
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
8: aload 5
aload 4
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
9: new sun.security.util.DerValue
dup
bipush 48
aload 5
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
invokespecial sun.security.util.DerValue.<init>:(B[B)V
10: astore 6
start local 6 11: aload 6
invokevirtual sun.security.util.DerValue.toByteArray:()[B
12: areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 13: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 14: new java.security.SignatureException
dup
ldc "Could not encode signature"
aload 1
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 signature [B
1 13 1 n I
2 13 2 bytes [B
4 13 3 r Ljava/math/BigInteger;
6 13 4 s Ljava/math/BigInteger;
7 13 5 out Lsun/security/util/DerOutputStream;
11 13 6 result Lsun/security/util/DerValue;
14 15 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 12 13 Class java.lang.Exception
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
signature
public static byte[] decodeSignature(byte[]);
descriptor: ([B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=1
start local 0 0: new sun.security.util.DerInputStream
dup
aload 0
iconst_0
aload 0
arraylength
iconst_0
invokespecial sun.security.util.DerInputStream.<init>:([BIIZ)V
astore 1
start local 1 1: aload 1
iconst_2
invokevirtual sun.security.util.DerInputStream.getSequence:(I)[Lsun/security/util/DerValue;
astore 2
start local 2 2: aload 2
arraylength
iconst_2
if_icmpne 3
aload 1
invokevirtual sun.security.util.DerInputStream.available:()I
ifeq 4
3: StackMap locals: sun.security.util.DerInputStream sun.security.util.DerValue[]
StackMap stack:
new java.io.IOException
dup
ldc "Invalid encoding for signature"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
invokevirtual sun.security.util.DerValue.getPositiveBigInteger:()Ljava/math/BigInteger;
astore 3
start local 3 5: aload 2
iconst_1
aaload
invokevirtual sun.security.util.DerValue.getPositiveBigInteger:()Ljava/math/BigInteger;
astore 4
start local 4 6: aload 3
invokevirtual java.math.BigInteger.toByteArray:()[B
invokestatic sun.security.util.ECUtil.trimZeroes:([B)[B
astore 5
start local 5 7: aload 4
invokevirtual java.math.BigInteger.toByteArray:()[B
invokestatic sun.security.util.ECUtil.trimZeroes:([B)[B
astore 6
start local 6 8: aload 5
arraylength
aload 6
arraylength
invokestatic java.lang.Math.max:(II)I
istore 7
start local 7 9: iload 7
iconst_1
ishl
newarray 8
astore 8
start local 8 10: aload 5
iconst_0
aload 8
iload 7
aload 5
arraylength
isub
11: aload 5
arraylength
12: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 6
iconst_0
aload 8
aload 8
arraylength
aload 6
arraylength
isub
14: aload 6
arraylength
15: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
16: aload 8
17: areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 18: StackMap locals: byte[]
StackMap stack: java.lang.Exception
astore 1
start local 1 19: new java.security.SignatureException
dup
ldc "Invalid encoding for signature"
aload 1
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 sig [B
1 18 1 in Lsun/security/util/DerInputStream;
2 18 2 values [Lsun/security/util/DerValue;
5 18 3 r Ljava/math/BigInteger;
6 18 4 s Ljava/math/BigInteger;
7 18 5 rBytes [B
8 18 6 sBytes [B
9 18 7 k I
10 18 8 result [B
19 20 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 17 18 Class java.lang.Exception
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
sig
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/util/ECUtil;
}
SourceFile: "ECUtil.java"