You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kristian Waagan (JIRA)" <ji...@apache.org> on 2007/04/16 16:17:15 UTC

[jira] Created: (DERBY-2552) Specifying a streaming cipher for data encryption causes java.lang.ArithmeticException

Specifying a streaming cipher for data encryption causes java.lang.ArithmeticException
--------------------------------------------------------------------------------------

                 Key: DERBY-2552
                 URL: https://issues.apache.org/jira/browse/DERBY-2552
             Project: Derby
          Issue Type: Bug
          Components: Services
    Affects Versions: 10.3.0.0
            Reporter: Kristian Waagan


If a streaming cipher is specified for data encryption when creating a database, a java.lang.ArithmeticException is thrown.
The reason is that the cipher block size is used in a division as the divisor and it has value 0 (zero).
Derby should either inform that streaming ciphers are not supported, or be able to use them.

A quick hack indicates Derby is capable of using streaming ciphers. I was able to create an encrypted database using the ARCFOUR (RC4) algorithm, close Derby and boot the database and fetch the data in the database again. This required changes in only two places (LogToFile and FileLogger), but the issue must be further investigated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.