class org.bouncycastle.pkcs.bc.PKCS12PBEUtils
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.pkcs.bc.PKCS12PBEUtils
super_class: java.lang.Object
{
private static java.util.Map keySizes;
descriptor: Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.util.Set noIvAlgs;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.util.Set desAlgs;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
1: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.noIvAlgs:Ljava/util/Set;
2: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.desAlgs:Ljava/util/Set;
3: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd128BitRC4:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
sipush 128
invokestatic org.bouncycastle.util.Integers.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd40BitRC4:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
bipush 40
invokestatic org.bouncycastle.util.Integers.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd3_KeyTripleDES_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
sipush 192
invokestatic org.bouncycastle.util.Integers.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd2_KeyTripleDES_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
sipush 128
invokestatic org.bouncycastle.util.Integers.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd128BitRC2_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
sipush 128
invokestatic org.bouncycastle.util.Integers.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd40BitRC2_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
bipush 40
invokestatic org.bouncycastle.util.Integers.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.noIvAlgs:Ljava/util/Set;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd128BitRC4:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.noIvAlgs:Ljava/util/Set;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd40BitRC4:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
11: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.desAlgs:Ljava/util/Set;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd3_KeyTripleDES_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
12: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.desAlgs:Ljava/util/Set;
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd3_KeyTripleDES_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
13: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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 Lorg/bouncycastle/pkcs/bc/PKCS12PBEUtils;
static int getKeySize(org.bouncycastle.asn1.ASN1ObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.keySizes:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
MethodParameters:
Name Flags
algorithm
static boolean hasNoIv(org.bouncycastle.asn1.ASN1ObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.noIvAlgs:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
MethodParameters:
Name Flags
algorithm
static boolean isDesAlg(org.bouncycastle.asn1.ASN1ObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.desAlgs:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
MethodParameters:
Name Flags
algorithm
static org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher getEngine(org.bouncycastle.asn1.ASN1ObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd3_KeyTripleDES_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifne 2
1: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd2_KeyTripleDES_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals:
StackMap stack:
new org.bouncycastle.crypto.engines.DESedeEngine
dup
invokespecial org.bouncycastle.crypto.engines.DESedeEngine.<init>:()V
astore 1
start local 1 3: goto 9
end local 1 4: StackMap locals:
StackMap stack:
aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd128BitRC2_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifne 6
5: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pbeWithSHAAnd40BitRC2_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 8
6: StackMap locals:
StackMap stack:
new org.bouncycastle.crypto.engines.RC2Engine
dup
invokespecial org.bouncycastle.crypto.engines.RC2Engine.<init>:()V
astore 1
start local 1 7: goto 9
end local 1 8: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "unknown algorithm"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
start local 1 9: StackMap locals: org.bouncycastle.crypto.BlockCipher
StackMap stack:
new org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
dup
new org.bouncycastle.crypto.modes.CBCBlockCipher
dup
aload 1
invokespecial org.bouncycastle.crypto.modes.CBCBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
new org.bouncycastle.crypto.paddings.PKCS7Padding
dup
invokespecial org.bouncycastle.crypto.paddings.PKCS7Padding.<init>:()V
invokespecial org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
3 4 1 engine Lorg/bouncycastle/crypto/BlockCipher;
7 8 1 engine Lorg/bouncycastle/crypto/BlockCipher;
9 10 1 engine Lorg/bouncycastle/crypto/BlockCipher;
MethodParameters:
Name Flags
algorithm
static org.bouncycastle.operator.MacCalculator createMacCalculator(org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.crypto.ExtendedDigest, org.bouncycastle.asn1.pkcs.PKCS12PBEParams, char[]);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/crypto/ExtendedDigest;Lorg/bouncycastle/asn1/pkcs/PKCS12PBEParams;[C)Lorg/bouncycastle/operator/MacCalculator;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.bouncycastle.crypto.generators.PKCS12ParametersGenerator
dup
aload 1
invokespecial org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.<init>:(Lorg/bouncycastle/crypto/Digest;)V
astore 4
start local 4 1: aload 4
aload 3
invokestatic org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.PKCS12PasswordToBytes:([C)[B
aload 2
invokevirtual org.bouncycastle.asn1.pkcs.PKCS12PBEParams.getIV:()[B
aload 2
invokevirtual org.bouncycastle.asn1.pkcs.PKCS12PBEParams.getIterations:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.intValue:()I
invokevirtual org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.init:([B[BI)V
2: aload 4
aload 1
invokeinterface org.bouncycastle.crypto.ExtendedDigest.getDigestSize:()I
bipush 8
imul
invokevirtual org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.generateDerivedMacParameters:(I)Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.KeyParameter
astore 5
start local 5 3: new org.bouncycastle.crypto.macs.HMac
dup
aload 1
invokespecial org.bouncycastle.crypto.macs.HMac.<init>:(Lorg/bouncycastle/crypto/Digest;)V
astore 6
start local 6 4: aload 6
aload 5
invokevirtual org.bouncycastle.crypto.macs.HMac.init:(Lorg/bouncycastle/crypto/CipherParameters;)V
5: new org.bouncycastle.pkcs.bc.PKCS12PBEUtils$1
dup
aload 0
aload 2
aload 6
aload 3
invokespecial org.bouncycastle.pkcs.bc.PKCS12PBEUtils$1.<init>:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/asn1/pkcs/PKCS12PBEParams;Lorg/bouncycastle/crypto/macs/HMac;[C)V
areturn
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 6 0 digestAlgorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
0 6 1 digest Lorg/bouncycastle/crypto/ExtendedDigest;
0 6 2 pbeParams Lorg/bouncycastle/asn1/pkcs/PKCS12PBEParams;
0 6 3 password [C
1 6 4 pGen Lorg/bouncycastle/crypto/generators/PKCS12ParametersGenerator;
3 6 5 keyParam Lorg/bouncycastle/crypto/params/KeyParameter;
4 6 6 hMac Lorg/bouncycastle/crypto/macs/HMac;
MethodParameters:
Name Flags
digestAlgorithm final
digest
pbeParams final
password final
static org.bouncycastle.crypto.CipherParameters createCipherParameters(org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.crypto.ExtendedDigest, int, org.bouncycastle.asn1.pkcs.PKCS12PBEParams, char[]);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/crypto/ExtendedDigest;ILorg/bouncycastle/asn1/pkcs/PKCS12PBEParams;[C)Lorg/bouncycastle/crypto/CipherParameters;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new org.bouncycastle.crypto.generators.PKCS12ParametersGenerator
dup
aload 1
invokespecial org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.<init>:(Lorg/bouncycastle/crypto/Digest;)V
astore 5
start local 5 1: aload 5
aload 4
invokestatic org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.PKCS12PasswordToBytes:([C)[B
aload 3
invokevirtual org.bouncycastle.asn1.pkcs.PKCS12PBEParams.getIV:()[B
aload 3
invokevirtual org.bouncycastle.asn1.pkcs.PKCS12PBEParams.getIterations:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.intValue:()I
invokevirtual org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.init:([B[BI)V
2: aload 0
invokestatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.hasNoIv:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Z
ifeq 5
3: aload 5
aload 0
invokestatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.getKeySize:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)I
invokevirtual org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.generateDerivedParameters:(I)Lorg/bouncycastle/crypto/CipherParameters;
astore 6
start local 6 4: goto 8
end local 6 5: StackMap locals: org.bouncycastle.crypto.generators.PKCS12ParametersGenerator
StackMap stack:
aload 5
aload 0
invokestatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.getKeySize:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)I
iload 2
bipush 8
imul
invokevirtual org.bouncycastle.crypto.generators.PKCS12ParametersGenerator.generateDerivedParameters:(II)Lorg/bouncycastle/crypto/CipherParameters;
astore 6
start local 6 6: aload 0
invokestatic org.bouncycastle.pkcs.bc.PKCS12PBEUtils.isDesAlg:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Z
ifeq 8
7: aload 6
checkcast org.bouncycastle.crypto.params.ParametersWithIV
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.KeyParameter
invokevirtual org.bouncycastle.crypto.params.KeyParameter.getKey:()[B
invokestatic org.bouncycastle.crypto.params.DESedeParameters.setOddParity:([B)V
8: StackMap locals: org.bouncycastle.crypto.CipherParameters
StackMap stack:
aload 6
areturn
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 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
0 9 1 digest Lorg/bouncycastle/crypto/ExtendedDigest;
0 9 2 blockSize I
0 9 3 pbeParams Lorg/bouncycastle/asn1/pkcs/PKCS12PBEParams;
0 9 4 password [C
1 9 5 pGen Lorg/bouncycastle/crypto/generators/PKCS12ParametersGenerator;
4 5 6 params Lorg/bouncycastle/crypto/CipherParameters;
6 9 6 params Lorg/bouncycastle/crypto/CipherParameters;
MethodParameters:
Name Flags
algorithm
digest
blockSize
pbeParams
password
}
SourceFile: "PKCS12PBEUtils.java"
NestMembers:
org.bouncycastle.pkcs.bc.PKCS12PBEUtils$1
InnerClasses:
org.bouncycastle.pkcs.bc.PKCS12PBEUtils$1