public final class com.sun.crypto.provider.ChaCha20Poly1305Parameters extends java.security.AlgorithmParametersSpi
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.ChaCha20Poly1305Parameters
super_class: java.security.AlgorithmParametersSpi
{
private static final java.lang.String DEFAULT_FMT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "ASN.1"
private byte[] nonce;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.security.AlgorithmParametersSpi.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
protected void engineInit(java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.crypto.spec.IvParameterSpec
ifne 4
1: new java.security.spec.InvalidParameterSpecException
dup
2: ldc "Inappropriate parameter specification"
3: invokespecial java.security.spec.InvalidParameterSpecException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
checkcast javax.crypto.spec.IvParameterSpec
astore 2
start local 2 5: aload 0
aload 2
invokevirtual javax.crypto.spec.IvParameterSpec.getIV:()[B
putfield com.sun.crypto.provider.ChaCha20Poly1305Parameters.nonce:[B
6: aload 0
getfield com.sun.crypto.provider.ChaCha20Poly1305Parameters.nonce:[B
arraylength
bipush 12
if_icmpeq 8
7: new java.security.spec.InvalidParameterSpecException
dup
ldc "ChaCha20-Poly1305 nonce must be 12 bytes in length"
invokespecial java.security.spec.InvalidParameterSpecException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: javax.crypto.spec.IvParameterSpec
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
0 9 1 paramSpec Ljava/security/spec/AlgorithmParameterSpec;
5 9 2 ivps Ljavax/crypto/spec/IvParameterSpec;
Exceptions:
throws java.security.spec.InvalidParameterSpecException
MethodParameters:
Name Flags
paramSpec
protected void engineInit(byte[]);
descriptor: ([B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new sun.security.util.DerValue
dup
aload 1
invokespecial sun.security.util.DerValue.<init>:([B)V
astore 2
start local 2 1: aload 0
aload 2
invokevirtual sun.security.util.DerValue.getOctetString:()[B
putfield com.sun.crypto.provider.ChaCha20Poly1305Parameters.nonce:[B
2: aload 0
getfield com.sun.crypto.provider.ChaCha20Poly1305Parameters.nonce:[B
arraylength
bipush 12
if_icmpeq 6
3: new java.io.IOException
dup
4: ldc "ChaCha20-Poly1305 nonce must be 12 bytes in length"
5: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: sun.security.util.DerValue
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
0 7 1 encoded [B
1 7 2 val Lsun/security/util/DerValue;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encoded
protected void engineInit(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 2
1: aload 2
ldc "ASN.1"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.sun.crypto.provider.ChaCha20Poly1305Parameters.engineInit:([B)V
3: goto 7
4: StackMap locals:
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported parameter format: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
0 8 1 encoded [B
0 8 2 decodingMethod Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encoded
decodingMethod
protected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: ldc Ljavax/crypto/spec/IvParameterSpec;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 2
1: aload 1
new javax.crypto.spec.IvParameterSpec
dup
aload 0
getfield com.sun.crypto.provider.ChaCha20Poly1305Parameters.nonce:[B
invokespecial javax.crypto.spec.IvParameterSpec.<init>:([B)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.AlgorithmParameterSpec
areturn
2: StackMap locals:
StackMap stack:
new java.security.spec.InvalidParameterSpecException
dup
3: ldc "Inappropriate parameter specification"
4: invokespecial java.security.spec.InvalidParameterSpecException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
0 5 1 paramSpec Ljava/lang/Class<TT;>;
Exceptions:
throws java.security.spec.InvalidParameterSpecException
Signature: <T::Ljava/security/spec/AlgorithmParameterSpec;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
paramSpec
protected byte[] engineGetEncoded();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 1
start local 1 1: aload 1
iconst_4
aload 0
getfield com.sun.crypto.provider.ChaCha20Poly1305Parameters.nonce:[B
invokevirtual sun.security.util.DerOutputStream.write:(B[B)V
2: aload 1
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
1 3 1 out Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
protected byte[] engineGetEncoded(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 1
ldc "ASN.1"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.crypto.provider.ChaCha20Poly1305Parameters.engineGetEncoded:()[B
areturn
3: StackMap locals:
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported encoding format: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
0 6 1 encodingMethod Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encodingMethod
protected java.lang.String engineToString();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=1
start local 0 0: invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
astore 1
start local 1 1: new sun.security.util.HexDumpEncoder
dup
invokespecial sun.security.util.HexDumpEncoder.<init>:()V
astore 2
start local 2 2: new java.lang.StringBuilder
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "nonce:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
aload 0
getfield com.sun.crypto.provider.ChaCha20Poly1305Parameters.nonce:[B
invokevirtual sun.security.util.HexDumpEncoder.encodeBuffer:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 3
start local 3 5: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/crypto/provider/ChaCha20Poly1305Parameters;
1 6 1 LINE_SEP Ljava/lang/String;
2 6 2 encoder Lsun/security/util/HexDumpEncoder;
5 6 3 sb Ljava/lang/StringBuilder;
}
SourceFile: "ChaCha20Poly1305Parameters.java"