public class org.bouncycastle.cert.crmf.PKMACBuilder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.cert.crmf.PKMACBuilder
super_class: java.lang.Object
{
private org.bouncycastle.asn1.x509.AlgorithmIdentifier owf;
descriptor: Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0002) ACC_PRIVATE
private int iterationCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.x509.AlgorithmIdentifier mac;
descriptor: Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0002) ACC_PRIVATE
private int saltLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.cert.crmf.PKMACValuesCalculator calculator;
descriptor: Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.cmp.PBMParameter parameters;
descriptor: Lorg/bouncycastle/asn1/cmp/PBMParameter;
flags: (0x0002) ACC_PRIVATE
private int maxIterations;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.cert.crmf.PKMACValuesCalculator);
descriptor: (Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
getstatic org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.idSHA1:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokespecial org.bouncycastle.asn1.x509.AlgorithmIdentifier.<init>:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)V
sipush 1000
new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
getstatic org.bouncycastle.asn1.iana.IANAObjectIdentifiers.hmacSHA1:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
getstatic org.bouncycastle.asn1.DERNull.INSTANCE:Lorg/bouncycastle/asn1/DERNull;
invokespecial org.bouncycastle.asn1.x509.AlgorithmIdentifier.<init>:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/asn1/ASN1Encodable;)V
aload 1
invokespecial org.bouncycastle.cert.crmf.PKMACBuilder.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;ILorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 2 1 calculator Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
MethodParameters:
Name Flags
calculator
public void <init>(org.bouncycastle.cert.crmf.PKMACValuesCalculator, int);
descriptor: (Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
bipush 20
putfield org.bouncycastle.cert.crmf.PKMACBuilder.saltLength:I
2: aload 0
iload 2
putfield org.bouncycastle.cert.crmf.PKMACBuilder.maxIterations:I
3: aload 0
aload 1
putfield org.bouncycastle.cert.crmf.PKMACBuilder.calculator:Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 5 1 calculator Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
0 5 2 maxIterations I
MethodParameters:
Name Flags
calculator
maxIterations
private void <init>(org.bouncycastle.asn1.x509.AlgorithmIdentifier, int, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.cert.crmf.PKMACValuesCalculator);
descriptor: (Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;ILorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 20
putfield org.bouncycastle.cert.crmf.PKMACBuilder.saltLength:I
2: aload 0
aload 1
putfield org.bouncycastle.cert.crmf.PKMACBuilder.owf:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
3: aload 0
iload 2
putfield org.bouncycastle.cert.crmf.PKMACBuilder.iterationCount:I
4: aload 0
aload 3
putfield org.bouncycastle.cert.crmf.PKMACBuilder.mac:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
5: aload 0
aload 4
putfield org.bouncycastle.cert.crmf.PKMACBuilder.calculator:Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 7 1 hashAlgorithm Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 7 2 iterationCount I
0 7 3 macAlgorithm Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 7 4 calculator Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
MethodParameters:
Name Flags
hashAlgorithm
iterationCount
macAlgorithm
calculator
public org.bouncycastle.cert.crmf.PKMACBuilder setSaltLength(int);
descriptor: (I)Lorg/bouncycastle/cert/crmf/PKMACBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
bipush 8
if_icmpge 2
1: new java.lang.IllegalArgumentException
dup
ldc "salt length must be at least 8 bytes"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.bouncycastle.cert.crmf.PKMACBuilder.saltLength:I
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 4 1 saltLength I
MethodParameters:
Name Flags
saltLength
public org.bouncycastle.cert.crmf.PKMACBuilder setIterationCount(int);
descriptor: (I)Lorg/bouncycastle/cert/crmf/PKMACBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
bipush 100
if_icmpge 2
1: new java.lang.IllegalArgumentException
dup
ldc "iteration count must be at least 100"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual org.bouncycastle.cert.crmf.PKMACBuilder.checkIterationCountCeiling:(I)V
3: aload 0
iload 1
putfield org.bouncycastle.cert.crmf.PKMACBuilder.iterationCount:I
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 5 1 iterationCount I
MethodParameters:
Name Flags
iterationCount
public org.bouncycastle.cert.crmf.PKMACBuilder setSecureRandom(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)Lorg/bouncycastle/cert/crmf/PKMACBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.bouncycastle.cert.crmf.PKMACBuilder.random:Ljava/security/SecureRandom;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 2 1 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
random
public org.bouncycastle.cert.crmf.PKMACBuilder setParameters(org.bouncycastle.asn1.cmp.PBMParameter);
descriptor: (Lorg/bouncycastle/asn1/cmp/PBMParameter;)Lorg/bouncycastle/cert/crmf/PKMACBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.bouncycastle.asn1.cmp.PBMParameter.getIterationCount:()Lorg/bouncycastle/asn1/ASN1Integer;
invokevirtual org.bouncycastle.asn1.ASN1Integer.getValue:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.intValue:()I
invokevirtual org.bouncycastle.cert.crmf.PKMACBuilder.checkIterationCountCeiling:(I)V
1: aload 0
aload 1
putfield org.bouncycastle.cert.crmf.PKMACBuilder.parameters:Lorg/bouncycastle/asn1/cmp/PBMParameter;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 3 1 parameters Lorg/bouncycastle/asn1/cmp/PBMParameter;
MethodParameters:
Name Flags
parameters
public org.bouncycastle.operator.MacCalculator build(char[]);
descriptor: ([C)Lorg/bouncycastle/operator/MacCalculator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.parameters:Lorg/bouncycastle/asn1/cmp/PBMParameter;
ifnull 2
1: aload 0
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.parameters:Lorg/bouncycastle/asn1/cmp/PBMParameter;
aload 1
invokevirtual org.bouncycastle.cert.crmf.PKMACBuilder.genCalculator:(Lorg/bouncycastle/asn1/cmp/PBMParameter;[C)Lorg/bouncycastle/operator/MacCalculator;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.saltLength:I
newarray 8
astore 2
start local 2 3: aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.random:Ljava/security/SecureRandom;
ifnonnull 5
4: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.cert.crmf.PKMACBuilder.random:Ljava/security/SecureRandom;
5: StackMap locals: byte[]
StackMap stack:
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.random:Ljava/security/SecureRandom;
aload 2
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: aload 0
new org.bouncycastle.asn1.cmp.PBMParameter
dup
aload 2
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.owf:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.iterationCount:I
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.mac:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokespecial org.bouncycastle.asn1.cmp.PBMParameter.<init>:([BLorg/bouncycastle/asn1/x509/AlgorithmIdentifier;ILorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)V
aload 1
invokevirtual org.bouncycastle.cert.crmf.PKMACBuilder.genCalculator:(Lorg/bouncycastle/asn1/cmp/PBMParameter;[C)Lorg/bouncycastle/operator/MacCalculator;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 7 1 password [C
3 7 2 salt [B
Exceptions:
throws org.bouncycastle.cert.crmf.CRMFException
MethodParameters:
Name Flags
password
private void checkIterationCountCeiling(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.maxIterations:I
ifle 2
iload 1
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.maxIterations:I
if_icmple 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "iteration count exceeds limit ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " > "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.maxIterations:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 3 1 iterationCount I
MethodParameters:
Name Flags
iterationCount
private org.bouncycastle.operator.MacCalculator genCalculator(org.bouncycastle.asn1.cmp.PBMParameter, char[]);
descriptor: (Lorg/bouncycastle/asn1/cmp/PBMParameter;[C)Lorg/bouncycastle/operator/MacCalculator;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic org.bouncycastle.util.Strings.toUTF8ByteArray:([C)[B
astore 3
start local 3 1: aload 1
invokevirtual org.bouncycastle.asn1.cmp.PBMParameter.getSalt:()Lorg/bouncycastle/asn1/ASN1OctetString;
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
astore 4
start local 4 2: aload 3
arraylength
aload 4
arraylength
iadd
newarray 8
astore 5
start local 5 3: aload 3
iconst_0
aload 5
iconst_0
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 4
iconst_0
aload 5
aload 3
arraylength
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.calculator:Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
aload 1
invokevirtual org.bouncycastle.asn1.cmp.PBMParameter.getOwf:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
aload 1
invokevirtual org.bouncycastle.asn1.cmp.PBMParameter.getMac:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokeinterface org.bouncycastle.cert.crmf.PKMACValuesCalculator.setup:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)V
6: aload 1
invokevirtual org.bouncycastle.asn1.cmp.PBMParameter.getIterationCount:()Lorg/bouncycastle/asn1/ASN1Integer;
invokevirtual org.bouncycastle.asn1.ASN1Integer.getValue:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.intValue:()I
istore 6
start local 6 7: StackMap locals: org.bouncycastle.cert.crmf.PKMACBuilder org.bouncycastle.asn1.cmp.PBMParameter char[] byte[] byte[] byte[] int
StackMap stack:
aload 0
getfield org.bouncycastle.cert.crmf.PKMACBuilder.calculator:Lorg/bouncycastle/cert/crmf/PKMACValuesCalculator;
aload 5
invokeinterface org.bouncycastle.cert.crmf.PKMACValuesCalculator.calculateDigest:([B)[B
astore 5
8: iinc 6 -1
iload 6
9: ifgt 7
10: aload 5
astore 7
start local 7 11: new org.bouncycastle.cert.crmf.PKMACBuilder$1
dup
aload 0
aload 1
aload 7
invokespecial org.bouncycastle.cert.crmf.PKMACBuilder$1.<init>:(Lorg/bouncycastle/cert/crmf/PKMACBuilder;Lorg/bouncycastle/asn1/cmp/PBMParameter;[B)V
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 12 0 this Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 12 1 params Lorg/bouncycastle/asn1/cmp/PBMParameter;
0 12 2 password [C
1 12 3 pw [B
2 12 4 salt [B
3 12 5 K [B
7 12 6 iter I
11 12 7 key [B
Exceptions:
throws org.bouncycastle.cert.crmf.CRMFException
MethodParameters:
Name Flags
params final
password
}
SourceFile: "PKMACBuilder.java"
NestMembers:
org.bouncycastle.cert.crmf.PKMACBuilder$1
InnerClasses:
org.bouncycastle.cert.crmf.PKMACBuilder$1