You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Yi Liu (JIRA)" <ji...@apache.org> on 2014/08/13 14:46:12 UTC

[jira] [Created] (HADOOP-10967) Improve DefaultCryptoExtension#generateEncryptedKey performance

Yi Liu created HADOOP-10967:
-------------------------------

             Summary: Improve DefaultCryptoExtension#generateEncryptedKey performance 
                 Key: HADOOP-10967
                 URL: https://issues.apache.org/jira/browse/HADOOP-10967
             Project: Hadoop Common
          Issue Type: Improvement
          Components: security
    Affects Versions: 2.6.0
            Reporter: Yi Liu
            Assignee: Yi Liu


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)