public final class javax.crypto.spec.ChaCha20ParameterSpec implements java.security.spec.AlgorithmParameterSpec
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javax.crypto.spec.ChaCha20ParameterSpec
super_class: java.lang.Object
{
private static final int NONCE_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 12
private final byte[] nonce;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int counter;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(byte[], int);
descriptor: ([BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 2
putfield javax.crypto.spec.ChaCha20ParameterSpec.counter:I
2: aload 1
ldc "Nonce must be non-null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
3: aload 0
aload 1
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield javax.crypto.spec.ChaCha20ParameterSpec.nonce:[B
4: aload 0
getfield javax.crypto.spec.ChaCha20ParameterSpec.nonce:[B
arraylength
bipush 12
if_icmpeq 8
5: new java.lang.IllegalArgumentException
dup
6: ldc "Nonce must be 12-bytes in length"
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: javax.crypto.spec.ChaCha20ParameterSpec byte[] int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/crypto/spec/ChaCha20ParameterSpec;
0 9 1 nonce [B
0 9 2 counter I
MethodParameters:
Name Flags
nonce
counter
public byte[] getNonce();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.spec.ChaCha20ParameterSpec.nonce:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/crypto/spec/ChaCha20ParameterSpec;
public int getCounter();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.spec.ChaCha20ParameterSpec.counter:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/crypto/spec/ChaCha20ParameterSpec;
}
SourceFile: "ChaCha20ParameterSpec.java"