hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10967) Improve DefaultCryptoExtension#generateEncryptedKey performance
Date Fri, 15 Aug 2014 14:56:24 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098609#comment-14098609
] 

Hudson commented on HADOOP-10967:
---------------------------------

SUCCESS: Integrated in Hadoop-Mapreduce-trunk #1864 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1864/])
HADOOP-10967. Improve DefaultCryptoExtension#generateEncryptedKey performance. (hitliuyi via
tucu) (tucu: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1618101)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderCryptoExtension.java


> 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
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-10967.001.patch
>
>
> 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)

Mime
View raw message