public final class com.sun.crypto.provider.DHKeyAgreement extends javax.crypto.KeyAgreementSpi
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: com.sun.crypto.provider.DHKeyAgreement
  super_class: javax.crypto.KeyAgreementSpi
{
  private boolean generateSecret;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private java.math.BigInteger init_p;
    descriptor: Ljava/math/BigInteger;
    flags: (0x0002) ACC_PRIVATE

  private java.math.BigInteger init_g;
    descriptor: Ljava/math/BigInteger;
    flags: (0x0002) ACC_PRIVATE

  private java.math.BigInteger x;
    descriptor: Ljava/math/BigInteger;
    flags: (0x0002) ACC_PRIVATE

  private java.math.BigInteger y;
    descriptor: Ljava/math/BigInteger;
    flags: (0x0002) ACC_PRIVATE

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
         0: .line 75
            aload 0 /* this */
            invokespecial javax.crypto.KeyAgreementSpi.<init>:()V
         1: .line 51
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
         2: .line 52
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
         3: .line 53
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
         4: .line 54
            aload 0 /* this */
            getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.x:Ljava/math/BigInteger;
         5: .line 55
            aload 0 /* this */
            getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.y:Ljava/math/BigInteger;
         6: .line 76
            return
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/sun/crypto/provider/DHKeyAgreement;

  protected void engineInit(java.security.Key, java.security.SecureRandom);
    descriptor: (Ljava/security/Key;Ljava/security/SecureRandom;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
        start local 1 // java.security.Key key
        start local 2 // java.security.SecureRandom random
         0: .line 102
            aload 0 /* this */
            aload 1 /* key */
            aconst_null
            aload 2 /* random */
            invokevirtual com.sun.crypto.provider.DHKeyAgreement.engineInit:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
         1: .line 103
            goto 3
      StackMap locals:
      StackMap stack: java.security.InvalidAlgorithmParameterException
         2: pop
         3: .line 106
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.security.SecureRandom random
        end local 1 // java.security.Key key
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lcom/sun/crypto/provider/DHKeyAgreement;
            0    4     1     key  Ljava/security/Key;
            0    4     2  random  Ljava/security/SecureRandom;
      Exception table:
        from    to  target  type
           0     1       2  Class java.security.InvalidAlgorithmParameterException
    Exceptions:
      throws java.security.InvalidKeyException
    MethodParameters:
        Name  Flags
      key     
      random  

  protected void engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
    descriptor: (Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=7, args_size=4
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
        start local 1 // java.security.Key key
        start local 2 // java.security.spec.AlgorithmParameterSpec params
        start local 3 // java.security.SecureRandom random
         0: .line 130
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
         1: .line 131
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
         2: .line 132
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
         3: .line 134
            aload 2 /* params */
            ifnull 7
            aload 2 /* params */
            instanceof javax.crypto.spec.DHParameterSpec
            ifne 7
         4: .line 135
            new java.security.InvalidAlgorithmParameterException
            dup
         5: .line 136
            ldc "Diffie-Hellman parameters expected"
         6: .line 135
            invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 138
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            instanceof javax.crypto.interfaces.DHPrivateKey
            ifne 9
         8: .line 139
            new java.security.InvalidKeyException
            dup
            ldc "Diffie-Hellman private key expected"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         9: .line 143
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            checkcast javax.crypto.interfaces.DHPrivateKey
            astore 4 /* dhPrivKey */
        start local 4 // javax.crypto.interfaces.DHPrivateKey dhPrivKey
        10: .line 147
            aload 2 /* params */
            ifnull 13
        11: .line 148
            aload 0 /* this */
            aload 2 /* params */
            checkcast javax.crypto.spec.DHParameterSpec
            invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
        12: .line 149
            aload 0 /* this */
            aload 2 /* params */
            checkcast javax.crypto.spec.DHParameterSpec
            invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
        13: .line 151
      StackMap locals: javax.crypto.interfaces.DHPrivateKey
      StackMap stack:
            aload 4 /* dhPrivKey */
            invokeinterface javax.crypto.interfaces.DHPrivateKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
            astore 5 /* priv_p */
        start local 5 // java.math.BigInteger priv_p
        14: .line 152
            aload 4 /* dhPrivKey */
            invokeinterface javax.crypto.interfaces.DHPrivateKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
            astore 6 /* priv_g */
        start local 6 // java.math.BigInteger priv_g
        15: .line 153
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            ifnull 17
            aload 5 /* priv_p */
            ifnull 17
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            aload 5 /* priv_p */
            invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
            ifne 17
        16: .line 154
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        17: .line 156
      StackMap locals: java.math.BigInteger java.math.BigInteger
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
            ifnull 19
            aload 6 /* priv_g */
            ifnull 19
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
            aload 6 /* priv_g */
            invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
            ifne 19
        18: .line 157
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        19: .line 159
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            ifnonnull 20
            aload 5 /* priv_p */
            ifnull 21
        20: .line 160
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
            ifnonnull 22
            aload 6 /* priv_g */
            ifnonnull 22
        21: .line 161
      StackMap locals:
      StackMap stack:
            new java.security.InvalidKeyException
            dup
            ldc "Missing parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 163
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 5 /* priv_p */
            putfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
        23: .line 164
            aload 0 /* this */
            aload 6 /* priv_g */
            putfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
        24: .line 167
            aload 0 /* this */
            aload 4 /* dhPrivKey */
            invokeinterface javax.crypto.interfaces.DHPrivateKey.getX:()Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.x:Ljava/math/BigInteger;
        25: .line 168
            return
        end local 6 // java.math.BigInteger priv_g
        end local 5 // java.math.BigInteger priv_p
        end local 4 // javax.crypto.interfaces.DHPrivateKey dhPrivKey
        end local 3 // java.security.SecureRandom random
        end local 2 // java.security.spec.AlgorithmParameterSpec params
        end local 1 // java.security.Key key
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   26     0       this  Lcom/sun/crypto/provider/DHKeyAgreement;
            0   26     1        key  Ljava/security/Key;
            0   26     2     params  Ljava/security/spec/AlgorithmParameterSpec;
            0   26     3     random  Ljava/security/SecureRandom;
           10   26     4  dhPrivKey  Ljavax/crypto/interfaces/DHPrivateKey;
           14   26     5     priv_p  Ljava/math/BigInteger;
           15   26     6     priv_g  Ljava/math/BigInteger;
    Exceptions:
      throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
    MethodParameters:
        Name  Flags
      key     
      params  
      random  

  protected java.security.Key engineDoPhase(java.security.Key, boolean);
    descriptor: (Ljava/security/Key;Z)Ljava/security/Key;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=6, locals=7, args_size=3
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
        start local 1 // java.security.Key key
        start local 2 // boolean lastPhase
         0: .line 192
            aload 1 /* key */
            instanceof javax.crypto.interfaces.DHPublicKey
            ifne 2
         1: .line 193
            new java.security.InvalidKeyException
            dup
            ldc "Diffie-Hellman public key expected"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 197
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            checkcast javax.crypto.interfaces.DHPublicKey
            astore 3 /* dhPubKey */
        start local 3 // javax.crypto.interfaces.DHPublicKey dhPubKey
         3: .line 199
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            ifnull 4
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
            ifnonnull 5
         4: .line 200
      StackMap locals: javax.crypto.interfaces.DHPublicKey
      StackMap stack:
            new java.lang.IllegalStateException
            dup
            ldc "Not initialized"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 205
      StackMap locals:
      StackMap stack:
            aload 3 /* dhPubKey */
            invokeinterface javax.crypto.interfaces.DHPublicKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
            astore 4 /* pub_p */
        start local 4 // java.math.BigInteger pub_p
         6: .line 206
            aload 3 /* dhPubKey */
            invokeinterface javax.crypto.interfaces.DHPublicKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
            invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
            astore 5 /* pub_g */
        start local 5 // java.math.BigInteger pub_g
         7: .line 207
            aload 4 /* pub_p */
            ifnull 9
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            aload 4 /* pub_p */
            invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
            ifne 9
         8: .line 208
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         9: .line 210
      StackMap locals: java.math.BigInteger java.math.BigInteger
      StackMap stack:
            aload 5 /* pub_g */
            ifnull 11
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
            aload 5 /* pub_g */
            invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
            ifne 11
        10: .line 211
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 215
      StackMap locals:
      StackMap stack:
            aload 3 /* dhPubKey */
            invokestatic sun.security.util.KeyUtil.validate:(Ljava/security/Key;)V
        12: .line 218
            aload 0 /* this */
            aload 3 /* dhPubKey */
            invokeinterface javax.crypto.interfaces.DHPublicKey.getY:()Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.y:Ljava/math/BigInteger;
        13: .line 224
            aload 0 /* this */
            iconst_1
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
        14: .line 225
            iload 2 /* lastPhase */
            ifne 19
        15: .line 226
            aload 0 /* this */
            invokevirtual com.sun.crypto.provider.DHKeyAgreement.engineGenerateSecret:()[B
            astore 6 /* intermediate */
        start local 6 // byte[] intermediate
        16: .line 227
            new com.sun.crypto.provider.DHPublicKey
            dup
            new java.math.BigInteger
            dup
            iconst_1
            aload 6 /* intermediate */
            invokespecial java.math.BigInteger.<init>:(I[B)V
        17: .line 228
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
        18: .line 227
            invokespecial com.sun.crypto.provider.DHPublicKey.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
            areturn
        end local 6 // byte[] intermediate
        19: .line 230
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 5 // java.math.BigInteger pub_g
        end local 4 // java.math.BigInteger pub_p
        end local 3 // javax.crypto.interfaces.DHPublicKey dhPubKey
        end local 2 // boolean lastPhase
        end local 1 // java.security.Key key
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   20     0          this  Lcom/sun/crypto/provider/DHKeyAgreement;
            0   20     1           key  Ljava/security/Key;
            0   20     2     lastPhase  Z
            3   20     3      dhPubKey  Ljavax/crypto/interfaces/DHPublicKey;
            6   20     4         pub_p  Ljava/math/BigInteger;
            7   20     5         pub_g  Ljava/math/BigInteger;
           16   19     6  intermediate  [B
    Exceptions:
      throws java.security.InvalidKeyException, java.lang.IllegalStateException
    MethodParameters:
           Name  Flags
      key        
      lastPhase  

  protected byte[] engineGenerateSecret();
    descriptor: ()[B
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=5, args_size=1
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
         0: .line 252
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
            ifne 4
         1: .line 253
            new java.lang.IllegalStateException
            dup
         2: .line 254
            ldc "Key agreement has not been completed yet"
         3: .line 253
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 258
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
         5: .line 261
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            astore 1 /* modulus */
        start local 1 // java.math.BigInteger modulus
         6: .line 263
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.y:Ljava/math/BigInteger;
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.x:Ljava/math/BigInteger;
            aload 1 /* modulus */
            invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
            astore 2 /* tmpResult */
        start local 2 // java.math.BigInteger tmpResult
         7: .line 264
            aload 2 /* tmpResult */
            invokevirtual java.math.BigInteger.toByteArray:()[B
            astore 3 /* secret */
        start local 3 // byte[] secret
         8: .line 270
            aload 2 /* tmpResult */
            invokevirtual java.math.BigInteger.bitLength:()I
            bipush 8
            irem
            ifne 12
         9: .line 271
            aload 3 /* secret */
            arraylength
            iconst_1
            isub
            newarray 8
            astore 4 /* retval */
        start local 4 // byte[] retval
        10: .line 272
            aload 3 /* secret */
            iconst_1
            aload 4 /* retval */
            iconst_0
            aload 4 /* retval */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        11: .line 273
            aload 4 /* retval */
            areturn
        end local 4 // byte[] retval
        12: .line 275
      StackMap locals: java.math.BigInteger java.math.BigInteger byte[]
      StackMap stack:
            aload 3 /* secret */
            areturn
        end local 3 // byte[] secret
        end local 2 // java.math.BigInteger tmpResult
        end local 1 // java.math.BigInteger modulus
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   13     0       this  Lcom/sun/crypto/provider/DHKeyAgreement;
            6   13     1    modulus  Ljava/math/BigInteger;
            7   13     2  tmpResult  Ljava/math/BigInteger;
            8   13     3     secret  [B
           10   12     4     retval  [B
    Exceptions:
      throws java.lang.IllegalStateException

  protected int engineGenerateSecret(byte[], int);
    descriptor: ([BI)I
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=6, locals=5, args_size=3
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
        start local 1 // byte[] sharedSecret
        start local 2 // int offset
         0: .line 308
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
            ifne 4
         1: .line 309
            new java.lang.IllegalStateException
            dup
         2: .line 310
            ldc "Key agreement has not been completed yet"
         3: .line 309
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 313
      StackMap locals:
      StackMap stack:
            aload 1 /* sharedSecret */
            ifnonnull 8
         5: .line 314
            new javax.crypto.ShortBufferException
            dup
         6: .line 315
            ldc "No buffer provided for shared secret"
         7: .line 314
            invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 318
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            astore 3 /* modulus */
        start local 3 // java.math.BigInteger modulus
         9: .line 319
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.y:Ljava/math/BigInteger;
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.x:Ljava/math/BigInteger;
            aload 3 /* modulus */
            invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
            invokevirtual java.math.BigInteger.toByteArray:()[B
            astore 4 /* secret */
        start local 4 // byte[] secret
        10: .line 323
            aload 4 /* secret */
            arraylength
            iconst_3
            ishl
            aload 3 /* modulus */
            invokevirtual java.math.BigInteger.bitLength:()I
            if_icmpeq 20
        11: .line 324
            aload 1 /* sharedSecret */
            arraylength
            iload 2 /* offset */
            isub
            aload 4 /* secret */
            arraylength
            iconst_1
            isub
            if_icmpge 15
        12: .line 325
            new javax.crypto.ShortBufferException
            dup
        13: .line 326
            ldc "Buffer too short for shared secret"
        14: .line 325
            invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
            athrow
        15: .line 328
      StackMap locals: java.math.BigInteger byte[]
      StackMap stack:
            aload 4 /* secret */
            iconst_1
            aload 1 /* sharedSecret */
            iload 2 /* offset */
        16: .line 329
            aload 4 /* secret */
            arraylength
            iconst_1
            isub
        17: .line 328
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        18: .line 334
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
        19: .line 336
            aload 4 /* secret */
            arraylength
            iconst_1
            isub
            ireturn
        20: .line 339
      StackMap locals:
      StackMap stack:
            aload 1 /* sharedSecret */
            arraylength
            iload 2 /* offset */
            isub
            aload 4 /* secret */
            arraylength
            if_icmpge 24
        21: .line 340
            new javax.crypto.ShortBufferException
            dup
        22: .line 341
            ldc "Buffer too short to hold shared secret"
        23: .line 340
            invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
            athrow
        24: .line 343
      StackMap locals:
      StackMap stack:
            aload 4 /* secret */
            iconst_0
            aload 1 /* sharedSecret */
            iload 2 /* offset */
            aload 4 /* secret */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        25: .line 348
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
        26: .line 350
            aload 4 /* secret */
            arraylength
            ireturn
        end local 4 // byte[] secret
        end local 3 // java.math.BigInteger modulus
        end local 2 // int offset
        end local 1 // byte[] sharedSecret
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   27     0          this  Lcom/sun/crypto/provider/DHKeyAgreement;
            0   27     1  sharedSecret  [B
            0   27     2        offset  I
            9   27     3       modulus  Ljava/math/BigInteger;
           10   27     4        secret  [B
    Exceptions:
      throws java.lang.IllegalStateException, javax.crypto.ShortBufferException
    MethodParameters:
              Name  Flags
      sharedSecret  
      offset        

  protected javax.crypto.SecretKey engineGenerateSecret(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljavax/crypto/SecretKey;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=6, locals=6, args_size=2
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
        start local 1 // java.lang.String algorithm
         0: .line 381
            aload 1 /* algorithm */
            ifnonnull 2
         1: .line 382
            new java.security.NoSuchAlgorithmException
            dup
            ldc "null algorithm"
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 385
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "TlsPremasterSecret"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifne 7
         3: .line 386
            getstatic com.sun.crypto.provider.DHKeyAgreement$AllowKDF.VALUE:Z
            ifne 7
         4: .line 388
            new java.security.NoSuchAlgorithmException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unsupported secret key algorithm: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         5: .line 389
            aload 1 /* algorithm */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         6: .line 388
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 392
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.sun.crypto.provider.DHKeyAgreement.engineGenerateSecret:()[B
            astore 2 /* secret */
        start local 2 // byte[] secret
         8: .line 393
            aload 1 /* algorithm */
            ldc "DES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 10
         9: .line 395
            new com.sun.crypto.provider.DESKey
            dup
            aload 2 /* secret */
            invokespecial com.sun.crypto.provider.DESKey.<init>:([B)V
            areturn
        10: .line 396
      StackMap locals: byte[]
      StackMap stack:
            aload 1 /* algorithm */
            ldc "DESede"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifne 12
        11: .line 397
            aload 1 /* algorithm */
            ldc "TripleDES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 13
        12: .line 399
      StackMap locals:
      StackMap stack:
            new com.sun.crypto.provider.DESedeKey
            dup
            aload 2 /* secret */
            invokespecial com.sun.crypto.provider.DESedeKey.<init>:([B)V
            areturn
        13: .line 400
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "Blowfish"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 21
        14: .line 402
            aload 2 /* secret */
            arraylength
            istore 3 /* keysize */
        start local 3 // int keysize
        15: .line 403
            iload 3 /* keysize */
            bipush 56
            if_icmplt 17
        16: .line 404
            bipush 56
            istore 3 /* keysize */
        17: .line 405
      StackMap locals: int
      StackMap stack:
            new javax.crypto.spec.SecretKeySpec
            dup
            aload 2 /* secret */
            iconst_0
            iload 3 /* keysize */
        18: .line 406
            ldc "Blowfish"
        19: .line 405
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BIILjava/lang/String;)V
            astore 4 /* skey */
        start local 4 // javax.crypto.spec.SecretKeySpec skey
        20: .line 407
            aload 4 /* skey */
            areturn
        end local 4 // javax.crypto.spec.SecretKeySpec skey
        end local 3 // int keysize
        21: .line 408
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "AES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 34
        22: .line 410
            aload 2 /* secret */
            arraylength
            istore 3 /* keysize */
        start local 3 // int keysize
        23: .line 411
            aconst_null
            astore 4 /* skey */
        start local 4 // javax.crypto.spec.SecretKeySpec skey
        24: .line 412
            getstatic com.sun.crypto.provider.AESConstants.AES_KEYSIZES:[I
            arraylength
            iconst_1
            isub
            istore 5 /* idx */
        start local 5 // int idx
        25: .line 413
            goto 30
        26: .line 417
      StackMap locals: int javax.crypto.spec.SecretKeySpec int
      StackMap stack:
            iload 3 /* keysize */
            getstatic com.sun.crypto.provider.AESConstants.AES_KEYSIZES:[I
            iload 5 /* idx */
            iaload
            if_icmplt 29
        27: .line 418
            getstatic com.sun.crypto.provider.AESConstants.AES_KEYSIZES:[I
            iload 5 /* idx */
            iaload
            istore 3 /* keysize */
        28: .line 419
            new javax.crypto.spec.SecretKeySpec
            dup
            aload 2 /* secret */
            iconst_0
            iload 3 /* keysize */
            ldc "AES"
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BIILjava/lang/String;)V
            astore 4 /* skey */
        29: .line 421
      StackMap locals:
      StackMap stack:
            iinc 5 /* idx */ -1
        30: .line 413
      StackMap locals:
      StackMap stack:
            aload 4 /* skey */
            ifnonnull 31
            iload 5 /* idx */
            ifge 26
        31: .line 423
      StackMap locals:
      StackMap stack:
            aload 4 /* skey */
            ifnonnull 33
        32: .line 424
            new java.security.InvalidKeyException
            dup
            ldc "Key material is too short"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        33: .line 426
      StackMap locals:
      StackMap stack:
            aload 4 /* skey */
            areturn
        end local 5 // int idx
        end local 4 // javax.crypto.spec.SecretKeySpec skey
        end local 3 // int keysize
        34: .line 427
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "TlsPremasterSecret"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 36
        35: .line 429
            new javax.crypto.spec.SecretKeySpec
            dup
            aload 2 /* secret */
            ldc "TlsPremasterSecret"
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
            areturn
        36: .line 431
      StackMap locals:
      StackMap stack:
            new java.security.NoSuchAlgorithmException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unsupported secret key algorithm: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
        37: .line 432
            aload 1 /* algorithm */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        38: .line 431
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
        end local 2 // byte[] secret
        end local 1 // java.lang.String algorithm
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   39     0       this  Lcom/sun/crypto/provider/DHKeyAgreement;
            0   39     1  algorithm  Ljava/lang/String;
            8   39     2     secret  [B
           15   21     3    keysize  I
           20   21     4       skey  Ljavax/crypto/spec/SecretKeySpec;
           23   34     3    keysize  I
           24   34     4       skey  Ljavax/crypto/spec/SecretKeySpec;
           25   34     5        idx  I
    Exceptions:
      throws java.lang.IllegalStateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
    MethodParameters:
           Name  Flags
      algorithm  
}
SourceFile: "DHKeyAgreement.java"
NestMembers:
  com.sun.crypto.provider.DHKeyAgreement$AllowKDF  com.sun.crypto.provider.DHKeyAgreement$AllowKDF$1
InnerClasses:
  private AllowKDF = com.sun.crypto.provider.DHKeyAgreement$AllowKDF of com.sun.crypto.provider.DHKeyAgreement