public class org.bouncycastle.crypto.util.CipherKeyGeneratorFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.util.CipherKeyGeneratorFactory
super_class: java.lang.Object
{
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
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/util/CipherKeyGeneratorFactory;
public static org.bouncycastle.crypto.CipherKeyGenerator createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier, java.security.SecureRandom);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Ljava/security/SecureRandom;)Lorg/bouncycastle/crypto/CipherKeyGenerator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_aes128_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 2
1: aload 1
sipush 128
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_aes192_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 1
sipush 192
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
4: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_aes256_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 6
5: aload 1
sipush 256
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
6: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.des_EDE3_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 10
7: new org.bouncycastle.crypto.generators.DESedeKeyGenerator
dup
invokespecial org.bouncycastle.crypto.generators.DESedeKeyGenerator.<init>:()V
astore 2
start local 2 8: aload 2
new org.bouncycastle.crypto.KeyGenerationParameters
dup
aload 1
sipush 192
invokespecial org.bouncycastle.crypto.KeyGenerationParameters.<init>:(Ljava/security/SecureRandom;I)V
invokevirtual org.bouncycastle.crypto.generators.DESedeKeyGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
9: aload 2
areturn
end local 2 10: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.ntt.NTTObjectIdentifiers.id_camellia128_cbc:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 12
11: aload 1
sipush 128
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
12: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.ntt.NTTObjectIdentifiers.id_camellia192_cbc:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 14
13: aload 1
sipush 192
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
14: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.ntt.NTTObjectIdentifiers.id_camellia256_cbc:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 16
15: aload 1
sipush 256
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
16: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.kisa.KISAObjectIdentifiers.id_seedCBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 18
17: aload 1
sipush 128
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
18: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.crypto.util.AlgorithmIdentifierFactory.CAST5_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 20
19: aload 1
sipush 128
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
20: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.desCBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 24
21: new org.bouncycastle.crypto.generators.DESKeyGenerator
dup
invokespecial org.bouncycastle.crypto.generators.DESKeyGenerator.<init>:()V
astore 2
start local 2 22: aload 2
new org.bouncycastle.crypto.KeyGenerationParameters
dup
aload 1
bipush 64
invokespecial org.bouncycastle.crypto.KeyGenerationParameters.<init>:(Ljava/security/SecureRandom;I)V
invokevirtual org.bouncycastle.crypto.generators.DESKeyGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
23: aload 2
areturn
end local 2 24: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.rc4:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 26
25: aload 1
sipush 128
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
26: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.RC2_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 28
27: aload 1
sipush 128
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createCipherKeyGenerator:(Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
areturn
28: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "cannot recognise cipher: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
0 29 1 random Ljava/security/SecureRandom;
8 10 2 keyGen Lorg/bouncycastle/crypto/generators/DESedeKeyGenerator;
22 24 2 keyGen Lorg/bouncycastle/crypto/generators/DESKeyGenerator;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
algorithm
random
private static org.bouncycastle.crypto.CipherKeyGenerator createCipherKeyGenerator(java.security.SecureRandom, int);
descriptor: (Ljava/security/SecureRandom;I)Lorg/bouncycastle/crypto/CipherKeyGenerator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new org.bouncycastle.crypto.CipherKeyGenerator
dup
invokespecial org.bouncycastle.crypto.CipherKeyGenerator.<init>:()V
astore 2
start local 2 1: aload 2
new org.bouncycastle.crypto.KeyGenerationParameters
dup
aload 0
iload 1
invokespecial org.bouncycastle.crypto.KeyGenerationParameters.<init>:(Ljava/security/SecureRandom;I)V
invokevirtual org.bouncycastle.crypto.CipherKeyGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 random Ljava/security/SecureRandom;
0 3 1 keySize I
1 3 2 keyGen Lorg/bouncycastle/crypto/CipherKeyGenerator;
MethodParameters:
Name Flags
random
keySize
}
SourceFile: "CipherKeyGeneratorFactory.java"