public class org.bouncycastle.crypto.generators.DESedeKeyGenerator extends org.bouncycastle.crypto.generators.DESKeyGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.DESedeKeyGenerator
super_class: org.bouncycastle.crypto.generators.DESKeyGenerator
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.bouncycastle.crypto.generators.DESKeyGenerator.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/generators/DESedeKeyGenerator;
public void init(org.bouncycastle.crypto.KeyGenerationParameters);
descriptor: (Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.bouncycastle.crypto.KeyGenerationParameters.getRandom:()Ljava/security/SecureRandom;
putfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
1: aload 0
aload 1
invokevirtual org.bouncycastle.crypto.KeyGenerationParameters.getStrength:()I
bipush 7
iadd
bipush 8
idiv
putfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
2: aload 0
getfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
ifeq 3
aload 0
getfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
bipush 21
if_icmpne 5
3: StackMap locals:
StackMap stack:
aload 0
bipush 24
putfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
4: goto 11
5: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
bipush 14
if_icmpne 8
6: aload 0
bipush 16
putfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
7: goto 11
8: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
bipush 24
if_icmpeq 11
9: aload 0
getfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
bipush 16
if_icmpeq 11
10: new java.lang.IllegalArgumentException
dup
ldc "DESede key must be 192 or 128 bits long."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/bouncycastle/crypto/generators/DESedeKeyGenerator;
0 12 1 param Lorg/bouncycastle/crypto/KeyGenerationParameters;
MethodParameters:
Name Flags
param
public byte[] generateKey();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.strength:I
newarray 8
astore 1
start local 1 1: StackMap locals: byte[]
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
aload 1
invokevirtual java.security.SecureRandom.nextBytes:([B)V
2: aload 1
invokestatic org.bouncycastle.crypto.params.DESedeParameters.setOddParity:([B)V
3: aload 1
iconst_0
aload 1
arraylength
invokestatic org.bouncycastle.crypto.params.DESedeParameters.isWeakKey:([BII)Z
ifne 1
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/generators/DESedeKeyGenerator;
1 5 1 newKey [B
}
SourceFile: "DESedeKeyGenerator.java"