Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10967

Improve DefaultCryptoExtension#generateEncryptedKey performance

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: security
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      This JIRA is to improve generateEncryptedKey performance:

      1. SecureRandom#generateSeed is very slow, we should use SecureRandom#nextBytes to generate the IV which is much faster.

      2. Define SecureRandom as threadlocal object which can improve the performance a bit.

      3. Use new SecureRandom() instead of SHA1PRNG, the former has better entropy.

        Attachments

          Activity

            People

            • Assignee:
              hitliuyi Yi Liu
              Reporter:
              hitliuyi Yi Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: