accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-2278) Return value from in.read() should be checked in NonCachingSecretKeyEncryptionStrategy#doKeyEncryptionOperation()
Date Wed, 29 Jan 2014 20:04:10 GMT
Ted Yu created ACCUMULO-2278:
--------------------------------

             Summary: Return value from in.read() should be checked in NonCachingSecretKeyEncryptionStrategy#doKeyEncryptionOperation()
                 Key: ACCUMULO-2278
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2278
             Project: Accumulo
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
      byte[] keyEncryptionKey = new byte[keyEncryptionKeyLength];
      in.read(keyEncryptionKey);
{code}
The return value should be checked so that we don't need to call cipher.init() in case encryption
key isn't read properly.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message