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

Owen O'Malley commented on HADOOP-10149:
----------------------------------------

Afterr looking at the javax.security.Cipher API more deeply, it does have both 
byte[] and ByteBuffer methods.

Unfortunately the methods in Cipher are declared final and the actual 
implementation is done by a nested implementation class. It isn't clear what 
the performance penalty for using javax.security.Cipher with a openssl-based 
provider would be, but it doesn't look excessive.

My thoughts are that instead of reinventing the wheel, we should use the 
standard javax.security.Cipher API with a customer provider that is based on 
openssl.

Thoughts?

> Create ByteBuffer-based cipher API
> ----------------------------------
>
>                 Key: HADOOP-10149
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10149
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>
> As part of HDFS-5143, [~hitliuyi] included a ByteBuffer-based API for 
> encryption and decryption. Especially, because of the zero-copy work this 
> seems like an important piece of work. 
> This API should be discussed independently instead of just as part of 
> HDFS-5143.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to