harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kleymenov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2125) [classlib][crypto] RSA Cipher implementation corrupts the data
Date Thu, 09 Nov 2006 12:19:38 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2125?page=comments#action_12448441 ] 
            
Alexander Kleymenov commented on HARMONY-2125:
----------------------------------------------

Further investigation showed that the roots of the problem are in BC provider implementation.

> [classlib][crypto] RSA Cipher implementation corrupts the data
> --------------------------------------------------------------
>
>                 Key: HARMONY-2125
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2125
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Kleymenov
>         Attachments: cipherbug.java
>
>
> RSA Cipher implementation used in Harmony corrupts the input data. So the data array
with the leading zero bytes after encryption-decryption cycle results in array without leading
zero bytes. To reproduce the problem run the attached test. Its output on Harmony is as follows:
>  
> -----------------------
> Initial data:
>  1 2 3 4 5 6 7 8 9 A B
> Encrypted and Decrypted:
>  1 2 3 4 5 6 7 8 9 A B
> PASSED
> -----------------------
> Initial data:
>  0 1 2 3 4 5 6 7 8 9 A
> Encrypted and Decrypted:
>  1 2 3 4 5 6 7 8 9 A
> FAILED: Encrypted/Decrypted data does not equal to initial
>  
> while on RI the output is:
>  
> -----------------------
> Initial data:
>  1 2 3 4 5 6 7 8 9 A B
> Encrypted and Decrypted:
>  1 2 3 4 5 6 7 8 9 A B
> PASSED
> -----------------------
> Initial data:
>  0 1 2 3 4 5 6 7 8 9 A
> Encrypted and Decrypted:
>  0 1 2 3 4 5 6 7 8 9 A
> PASSED
>  
> This problem causes unstable failure of the following unit test:
>  
> org.apache.harmony.tests.internal.net.www.protocol.https.HttpsURLConnectionTest

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message