Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1356

parsec authentication: drop BouncyCastle requirement on Java 8/11 and provider-dependent key derivation on Java 15+

    XMLWordPrintable

Details

    Description

      On Java 8/11, parsec authentication requires BouncyCastle for Ed25519 signing.
      On Java 15+, the public key is derived through a KeyPairGenerator fed by a SecureRandom override, which depends on the provider consuming exactly one 32-byte nextBytes() as the seed.
      The ref10 Ed25519 code already vendored for client_ed25519 computes standard RFC 8032 signatures when given a 32-byte seed (verified byte-identical to the JDK's).
      Share it between both plugins: parsec then works on all supported Java versions without extra dependency, and the multi-release variant, PKCS#8 wrapping and JDK/BC branching are removed.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.