ECDHKeyAgreement.generateSecret() should throw the proper exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: security-libs

      If the public or private key has has points that are not on the curve, ECDHKeyAgreement.generateSecret() will throw a ProviderException.
      It should be a InvalidKeyException, which is a subclass of the GeneralSecurityException.

      The KeyAgreement.generateSecret() spec says IllegalStateException are to be thrown. The EC method does not wrap previous exception.

            Assignee:
            Anthony Scarpino
            Reporter:
            Anthony Scarpino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: