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 82
            aload 0 /* this */
            invokespecial javax.crypto.KeyAgreementSpi.<init>:()V
         1: .line 59
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
         2: .line 60
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
         3: .line 61
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
         4: .line 62
            aload 0 /* this */
            getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.x:Ljava/math/BigInteger;
         5: .line 63
            aload 0 /* this */
            getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
            putfield com.sun.crypto.provider.DHKeyAgreement.y:Ljava/math/BigInteger;
         6: .line 83
            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 109
            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 110
            goto 3
      StackMap locals:
      StackMap stack: java.security.InvalidAlgorithmParameterException
         2: pop
         3: .line 113
      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 137
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
         1: .line 138
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
         2: .line 139
            aload 0 /* this */
            aconst_null
            putfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
         3: .line 141
            aload 2 /* params */
            ifnull 7
            aload 2 /* params */
            instanceof javax.crypto.spec.DHParameterSpec
            ifne 7
         4: .line 142
            new java.security.InvalidAlgorithmParameterException
            dup
         5: .line 143
            ldc "Diffie-Hellman parameters expected"
         6: .line 142
            invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 145
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            instanceof javax.crypto.interfaces.DHPrivateKey
            ifne 9
         8: .line 146
            new java.security.InvalidKeyException
            dup
            ldc "Diffie-Hellman private key expected"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         9: .line 150
      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 154
            aload 2 /* params */
            ifnull 13
        11: .line 155
            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 156
            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 158
      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 159
            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 160
            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 161
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        17: .line 163
      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 164
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        19: .line 166
      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 167
      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 168
      StackMap locals:
      StackMap stack:
            new java.security.InvalidKeyException
            dup
            ldc "Missing parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 170
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 5 /* priv_p */
            putfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
        23: .line 171
            aload 0 /* this */
            aload 6 /* priv_g */
            putfield com.sun.crypto.provider.DHKeyAgreement.init_g:Ljava/math/BigInteger;
        24: .line 174
            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 175
            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 199
            aload 1 /* key */
            instanceof javax.crypto.interfaces.DHPublicKey
            ifne 2
         1: .line 200
            new java.security.InvalidKeyException
            dup
            ldc "Diffie-Hellman public key expected"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 204
      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 206
            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 207
      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 212
      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 213
            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 214
            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 215
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         9: .line 217
      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 218
            new java.security.InvalidKeyException
            dup
            ldc "Incompatible parameters"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 222
      StackMap locals:
      StackMap stack:
            aload 3 /* dhPubKey */
            invokestatic sun.security.util.KeyUtil.validate:(Ljava/security/Key;)V
        12: .line 225
            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 231
            aload 0 /* this */
            iconst_1
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
        14: .line 232
            iload 2 /* lastPhase */
            ifne 19
        15: .line 233
            aload 0 /* this */
            invokevirtual com.sun.crypto.provider.DHKeyAgreement.engineGenerateSecret:()[B
            astore 6 /* intermediate */
        start local 6 // byte[] intermediate
        16: .line 234
            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 235
            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 234
            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 237
      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=3, locals=3, args_size=1
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
         0: .line 259
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.init_p:Ljava/math/BigInteger;
            invokevirtual java.math.BigInteger.bitLength:()I
            bipush 7
            iadd
            iconst_3
            iushr
            istore 1 /* expectedLen */
        start local 1 // int expectedLen
         1: .line 260
            iload 1 /* expectedLen */
            newarray 8
            astore 2 /* result */
        start local 2 // byte[] result
         2: .line 262
            aload 0 /* this */
            aload 2 /* result */
            iconst_0
            invokevirtual com.sun.crypto.provider.DHKeyAgreement.engineGenerateSecret:([BI)I
            pop
         3: .line 263
            goto 5
      StackMap locals: com.sun.crypto.provider.DHKeyAgreement int byte[]
      StackMap stack: javax.crypto.ShortBufferException
         4: pop
         5: .line 267
      StackMap locals:
      StackMap stack:
            aload 2 /* result */
            areturn
        end local 2 // byte[] result
        end local 1 // int expectedLen
        end local 0 // com.sun.crypto.provider.DHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    6     0         this  Lcom/sun/crypto/provider/DHKeyAgreement;
            1    6     1  expectedLen  I
            2    6     2       result  [B
      Exception table:
        from    to  target  type
           2     3       4  Class javax.crypto.ShortBufferException
    Exceptions:
      throws java.lang.IllegalStateException

  protected int engineGenerateSecret(byte[], int);
    descriptor: ([BI)I
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=6, locals=6, args_size=3
        start local 0 // com.sun.crypto.provider.DHKeyAgreement this
        start local 1 // byte[] sharedSecret
        start local 2 // int offset
         0: .line 299
            aload 0 /* this */
            getfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
            ifne 4
         1: .line 300
            new java.lang.IllegalStateException
            dup
         2: .line 301
            ldc "Key agreement has not been completed yet"
         3: .line 300
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 304
      StackMap locals:
      StackMap stack:
            aload 1 /* sharedSecret */
            ifnonnull 8
         5: .line 305
            new javax.crypto.ShortBufferException
            dup
         6: .line 306
            ldc "No buffer provided for shared secret"
         7: .line 305
            invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 309
      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 310
            aload 3 /* modulus */
            invokevirtual java.math.BigInteger.bitLength:()I
            bipush 7
            iadd
            iconst_3
            iushr
            istore 4 /* expectedLen */
        start local 4 // int expectedLen
        10: .line 311
            aload 1 /* sharedSecret */
            arraylength
            iload 2 /* offset */
            isub
            iload 4 /* expectedLen */
            if_icmpge 14
        11: .line 312
            new javax.crypto.ShortBufferException
            dup
        12: .line 313
            ldc "Buffer too short for shared secret"
        13: .line 312
            invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
            athrow
        14: .line 318
      StackMap locals: java.math.BigInteger int
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield com.sun.crypto.provider.DHKeyAgreement.generateSecret:Z
        15: .line 334
            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 5 /* secret */
        start local 5 // byte[] secret
        16: .line 335
            aload 5 /* secret */
            arraylength
            iload 4 /* expectedLen */
            if_icmpne 21
        17: .line 336
            aload 5 /* secret */
            iconst_0
            aload 1 /* sharedSecret */
            iload 2 /* offset */
        18: .line 337
            aload 5 /* secret */
            arraylength
        19: .line 336
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        20: .line 338
            goto 31
        21: .line 340
      StackMap locals: byte[]
      StackMap stack:
            aload 5 /* secret */
            arraylength
            iload 4 /* expectedLen */
            if_icmpge 27
        22: .line 341
            aload 5 /* secret */
            iconst_0
            aload 1 /* sharedSecret */
        23: .line 342
            iload 2 /* offset */
            iload 4 /* expectedLen */
            aload 5 /* secret */
            arraylength
            isub
            iadd
        24: .line 343
            aload 5 /* secret */
            arraylength
        25: .line 341
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        26: .line 344
            goto 31
        27: .line 346
      StackMap locals:
      StackMap stack:
            aload 5 /* secret */
            arraylength
            iload 4 /* expectedLen */
            iconst_1
            iadd
            if_icmpne 30
            aload 5 /* secret */
            iconst_0
            baload
            ifne 30
        28: .line 348
            aload 5 /* secret */
            iconst_1
            aload 1 /* sharedSecret */
            iload 2 /* offset */
            iload 4 /* expectedLen */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        29: .line 349
            goto 31
        30: .line 350
      StackMap locals:
      StackMap stack:
            new java.security.ProviderException
            dup
            ldc "Generated secret is out-of-range"
            invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
            athrow
        31: .line 354
      StackMap locals:
      StackMap stack:
            iload 4 /* expectedLen */
            ireturn
        end local 5 // byte[] secret
        end local 4 // int expectedLen
        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   32     0          this  Lcom/sun/crypto/provider/DHKeyAgreement;
            0   32     1  sharedSecret  [B
            0   32     2        offset  I
            9   32     3       modulus  Ljava/math/BigInteger;
           10   32     4   expectedLen  I
           16   32     5        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 384
            aload 1 /* algorithm */
            ifnonnull 2
         1: .line 385
            new java.security.NoSuchAlgorithmException
            dup
            ldc "null algorithm"
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 388
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "TlsPremasterSecret"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifne 7
         3: .line 389
            getstatic com.sun.crypto.provider.DHKeyAgreement$AllowKDF.VALUE:Z
            ifne 7
         4: .line 391
            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 392
            aload 1 /* algorithm */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         6: .line 391
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 395
      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 396
            aload 1 /* algorithm */
            ldc "DES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 10
         9: .line 398
            new com.sun.crypto.provider.DESKey
            dup
            aload 2 /* secret */
            invokespecial com.sun.crypto.provider.DESKey.<init>:([B)V
            areturn
        10: .line 399
      StackMap locals: byte[]
      StackMap stack:
            aload 1 /* algorithm */
            ldc "DESede"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifne 12
        11: .line 400
            aload 1 /* algorithm */
            ldc "TripleDES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 13
        12: .line 402
      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 403
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "Blowfish"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 21
        14: .line 405
            aload 2 /* secret */
            arraylength
            istore 3 /* keysize */
        start local 3 // int keysize
        15: .line 406
            iload 3 /* keysize */
            bipush 56
            if_icmplt 17
        16: .line 407
            bipush 56
            istore 3 /* keysize */
        17: .line 408
      StackMap locals: int
      StackMap stack:
            new javax.crypto.spec.SecretKeySpec
            dup
            aload 2 /* secret */
            iconst_0
            iload 3 /* keysize */
        18: .line 409
            ldc "Blowfish"
        19: .line 408
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BIILjava/lang/String;)V
            astore 4 /* skey */
        start local 4 // javax.crypto.spec.SecretKeySpec skey
        20: .line 410
            aload 4 /* skey */
            areturn
        end local 4 // javax.crypto.spec.SecretKeySpec skey
        end local 3 // int keysize
        21: .line 411
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "AES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 34
        22: .line 413
            aload 2 /* secret */
            arraylength
            istore 3 /* keysize */
        start local 3 // int keysize
        23: .line 414
            aconst_null
            astore 4 /* skey */
        start local 4 // javax.crypto.spec.SecretKeySpec skey
        24: .line 415
            getstatic com.sun.crypto.provider.AESConstants.AES_KEYSIZES:[I
            arraylength
            iconst_1
            isub
            istore 5 /* idx */
        start local 5 // int idx
        25: .line 416
            goto 30
        26: .line 420
      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 421
            getstatic com.sun.crypto.provider.AESConstants.AES_KEYSIZES:[I
            iload 5 /* idx */
            iaload
            istore 3 /* keysize */
        28: .line 422
            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 424
      StackMap locals:
      StackMap stack:
            iinc 5 /* idx */ -1
        30: .line 416
      StackMap locals:
      StackMap stack:
            aload 4 /* skey */
            ifnonnull 31
            iload 5 /* idx */
            ifge 26
        31: .line 426
      StackMap locals:
      StackMap stack:
            aload 4 /* skey */
            ifnonnull 33
        32: .line 427
            new java.security.InvalidKeyException
            dup
            ldc "Key material is too short"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        33: .line 429
      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 430
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "TlsPremasterSecret"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 38
        35: .line 432
            new javax.crypto.spec.SecretKeySpec
            dup
        36: .line 433
            aload 2 /* secret */
            invokestatic sun.security.util.KeyUtil.trimZeroes:([B)[B
            ldc "TlsPremasterSecret"
        37: .line 432
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
            areturn
        38: .line 435
      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
        39: .line 436
            aload 1 /* algorithm */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        40: .line 435
            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   41     0       this  Lcom/sun/crypto/provider/DHKeyAgreement;
            0   41     1  algorithm  Ljava/lang/String;
            8   41     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