public final class com.sun.crypto.provider.DHKeyPairGenerator extends java.security.KeyPairGeneratorSpi
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: com.sun.crypto.provider.DHKeyPairGenerator
  super_class: java.security.KeyPairGeneratorSpi
{
  private javax.crypto.spec.DHParameterSpec params;
    descriptor: Ljavax/crypto/spec/DHParameterSpec;
    flags: (0x0002) ACC_PRIVATE

  private int pSize;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int lSize;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private java.security.SecureRandom random;
    descriptor: Ljava/security/SecureRandom;
    flags: (0x0002) ACC_PRIVATE

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
         0: .line 70
            aload 0 /* this */
            invokespecial java.security.KeyPairGeneratorSpi.<init>:()V
         1: .line 71
            aload 0 /* this */
            getstatic sun.security.util.SecurityProviderConstants.DEF_DH_KEY_SIZE:I
            aconst_null
            invokevirtual com.sun.crypto.provider.DHKeyPairGenerator.initialize:(ILjava/security/SecureRandom;)V
         2: .line 72
            return
        end local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/sun/crypto/provider/DHKeyPairGenerator;

  private static void checkKeySize(int);
    descriptor: (I)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // int keysize
         0: .line 77
            iload 0 /* keysize */
            sipush 512
            if_icmplt 1
            iload 0 /* keysize */
            sipush 8192
            if_icmpgt 1
            iload 0 /* keysize */
            bipush 63
            iand
            ifeq 6
         1: .line 78
      StackMap locals:
      StackMap stack:
            new java.security.InvalidParameterException
            dup
         2: .line 79
            new java.lang.StringBuilder
            dup
            ldc "DH key size must be multiple of 64, and can only range from 512 to 8192 (inclusive). The specific key size "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         3: .line 81
            iload 0 /* keysize */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " is not supported"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         4: .line 79
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         5: .line 78
            invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 83
      StackMap locals:
      StackMap stack:
            return
        end local 0 // int keysize
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    7     0  keysize  I
    Exceptions:
      throws java.security.InvalidParameterException
    MethodParameters:
         Name  Flags
      keysize  

  public void initialize(int, java.security.SecureRandom);
    descriptor: (ILjava/security/SecureRandom;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=3
        start local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
        start local 1 // int keysize
        start local 2 // java.security.SecureRandom random
         0: .line 94
            iload 1 /* keysize */
            invokestatic com.sun.crypto.provider.DHKeyPairGenerator.checkKeySize:(I)V
         1: .line 98
            aload 0 /* this */
            iload 1 /* keysize */
            invokestatic sun.security.provider.ParameterCache.getCachedDHParameterSpec:(I)Ljavax/crypto/spec/DHParameterSpec;
            putfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
         2: .line 102
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
            ifnonnull 6
            iload 1 /* keysize */
            sipush 1024
            if_icmple 6
         3: .line 103
            new java.security.InvalidParameterException
            dup
         4: .line 104
            new java.lang.StringBuilder
            dup
            ldc "Unsupported "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* keysize */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc "-bit DH parameter generation"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         5: .line 103
            invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 107
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 1 /* keysize */
            putfield com.sun.crypto.provider.DHKeyPairGenerator.pSize:I
         7: .line 108
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
         8: .line 109
            aload 0 /* this */
            aload 2 /* random */
            putfield com.sun.crypto.provider.DHKeyPairGenerator.random:Ljava/security/SecureRandom;
         9: .line 110
            return
        end local 2 // java.security.SecureRandom random
        end local 1 // int keysize
        end local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0     this  Lcom/sun/crypto/provider/DHKeyPairGenerator;
            0   10     1  keysize  I
            0   10     2   random  Ljava/security/SecureRandom;
    MethodParameters:
         Name  Flags
      keysize  
      random   

  public void initialize(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
    descriptor: (Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=4, args_size=3
        start local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
        start local 1 // java.security.spec.AlgorithmParameterSpec algParams
        start local 2 // java.security.SecureRandom random
         0: .line 128
            aload 1 /* algParams */
            instanceof javax.crypto.spec.DHParameterSpec
            ifne 4
         1: .line 129
            new java.security.InvalidAlgorithmParameterException
            dup
         2: .line 130
            ldc "Inappropriate parameter type"
         3: .line 129
            invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 133
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* algParams */
            checkcast javax.crypto.spec.DHParameterSpec
            putfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
         5: .line 134
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
            invokevirtual java.math.BigInteger.bitLength:()I
            putfield com.sun.crypto.provider.DHKeyPairGenerator.pSize:I
         6: .line 136
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.pSize:I
            invokestatic com.sun.crypto.provider.DHKeyPairGenerator.checkKeySize:(I)V
         7: .line 137
            goto 10
      StackMap locals:
      StackMap stack: java.security.InvalidParameterException
         8: astore 3 /* ipe */
        start local 3 // java.security.InvalidParameterException ipe
         9: .line 138
            new java.security.InvalidAlgorithmParameterException
            dup
            aload 3 /* ipe */
            invokevirtual java.security.InvalidParameterException.getMessage:()Ljava/lang/String;
            invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
            athrow
        end local 3 // java.security.InvalidParameterException ipe
        10: .line 142
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getL:()I
            putfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
        11: .line 145
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            ifeq 15
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.pSize:I
            if_icmple 15
        12: .line 146
            new java.security.InvalidAlgorithmParameterException
            dup
        13: .line 147
            ldc "Exponent size must not be larger than modulus size"
        14: .line 146
            invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
            athrow
        15: .line 149
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* random */
            putfield com.sun.crypto.provider.DHKeyPairGenerator.random:Ljava/security/SecureRandom;
        16: .line 150
            return
        end local 2 // java.security.SecureRandom random
        end local 1 // java.security.spec.AlgorithmParameterSpec algParams
        end local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   17     0       this  Lcom/sun/crypto/provider/DHKeyPairGenerator;
            0   17     1  algParams  Ljava/security/spec/AlgorithmParameterSpec;
            0   17     2     random  Ljava/security/SecureRandom;
            9   10     3        ipe  Ljava/security/InvalidParameterException;
      Exception table:
        from    to  target  type
           6     7       8  Class java.security.InvalidParameterException
    Exceptions:
      throws java.security.InvalidAlgorithmParameterException
    MethodParameters:
           Name  Flags
      algParams  
      random     

  public java.security.KeyPair generateKeyPair();
    descriptor: ()Ljava/security/KeyPair;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=8, args_size=1
        start local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
         0: .line 158
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.random:Ljava/security/SecureRandom;
            ifnonnull 2
         1: .line 159
            aload 0 /* this */
            invokestatic com.sun.crypto.provider.SunJCE.getRandom:()Ljava/security/SecureRandom;
            putfield com.sun.crypto.provider.DHKeyPairGenerator.random:Ljava/security/SecureRandom;
         2: .line 162
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
            ifnonnull 7
         3: .line 164
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.pSize:I
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.random:Ljava/security/SecureRandom;
            invokestatic sun.security.provider.ParameterCache.getDHParameterSpec:(ILjava/security/SecureRandom;)Ljavax/crypto/spec/DHParameterSpec;
            putfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
         4: .line 165
            goto 7
      StackMap locals:
      StackMap stack: java.security.GeneralSecurityException
         5: astore 1 /* e */
        start local 1 // java.security.GeneralSecurityException e
         6: .line 167
            new java.security.ProviderException
            dup
            aload 1 /* e */
            invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.security.GeneralSecurityException e
         7: .line 171
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
            astore 1 /* p */
        start local 1 // java.math.BigInteger p
         8: .line 172
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.params:Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
            astore 2 /* g */
        start local 2 // java.math.BigInteger g
         9: .line 174
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            ifgt 13
        10: .line 175
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.pSize:I
            iconst_1
            ishr
            putfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
        11: .line 177
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            sipush 384
            if_icmpge 13
        12: .line 178
            aload 0 /* this */
            sipush 384
            putfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
        13: .line 183
      StackMap locals: java.math.BigInteger java.math.BigInteger
      StackMap stack:
            aload 1 /* p */
            getstatic java.math.BigInteger.TWO:Ljava/math/BigInteger;
            invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
            astore 4 /* pMinus2 */
        start local 4 // java.math.BigInteger pMinus2
        14: .line 193
      StackMap locals: com.sun.crypto.provider.DHKeyPairGenerator java.math.BigInteger java.math.BigInteger top java.math.BigInteger
      StackMap stack:
            new java.math.BigInteger
            dup
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.random:Ljava/security/SecureRandom;
            invokespecial java.math.BigInteger.<init>:(ILjava/util/Random;)V
            astore 3 /* x */
        start local 3 // java.math.BigInteger x
        15: .line 194
            aload 3 /* x */
            getstatic java.math.BigInteger.ONE:Ljava/math/BigInteger;
            invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
            iflt 14
        16: .line 195
            aload 3 /* x */
            aload 4 /* pMinus2 */
            invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
            ifgt 14
            aload 3 /* x */
            invokevirtual java.math.BigInteger.bitLength:()I
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            if_icmpne 14
        17: .line 198
            aload 2 /* g */
            aload 3 /* x */
            aload 1 /* p */
            invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
            astore 5 /* y */
        start local 5 // java.math.BigInteger y
        18: .line 200
            new com.sun.crypto.provider.DHPublicKey
            dup
            aload 5 /* y */
            aload 1 /* p */
            aload 2 /* g */
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            invokespecial com.sun.crypto.provider.DHPublicKey.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;I)V
            astore 6 /* pubKey */
        start local 6 // com.sun.crypto.provider.DHPublicKey pubKey
        19: .line 201
            new com.sun.crypto.provider.DHPrivateKey
            dup
            aload 3 /* x */
            aload 1 /* p */
            aload 2 /* g */
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyPairGenerator.lSize:I
            invokespecial com.sun.crypto.provider.DHPrivateKey.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;I)V
            astore 7 /* privKey */
        start local 7 // com.sun.crypto.provider.DHPrivateKey privKey
        20: .line 202
            new java.security.KeyPair
            dup
            aload 6 /* pubKey */
            aload 7 /* privKey */
            invokespecial java.security.KeyPair.<init>:(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V
            areturn
        end local 7 // com.sun.crypto.provider.DHPrivateKey privKey
        end local 6 // com.sun.crypto.provider.DHPublicKey pubKey
        end local 5 // java.math.BigInteger y
        end local 4 // java.math.BigInteger pMinus2
        end local 3 // java.math.BigInteger x
        end local 2 // java.math.BigInteger g
        end local 1 // java.math.BigInteger p
        end local 0 // com.sun.crypto.provider.DHKeyPairGenerator this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   21     0     this  Lcom/sun/crypto/provider/DHKeyPairGenerator;
            6    7     1        e  Ljava/security/GeneralSecurityException;
            8   21     1        p  Ljava/math/BigInteger;
            9   21     2        g  Ljava/math/BigInteger;
           15   21     3        x  Ljava/math/BigInteger;
           14   21     4  pMinus2  Ljava/math/BigInteger;
           18   21     5        y  Ljava/math/BigInteger;
           19   21     6   pubKey  Lcom/sun/crypto/provider/DHPublicKey;
           20   21     7  privKey  Lcom/sun/crypto/provider/DHPrivateKey;
      Exception table:
        from    to  target  type
           3     4       5  Class java.security.GeneralSecurityException
}
SourceFile: "DHKeyPairGenerator.java"