You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2007/02/02 12:18:05 UTC
[jira] Closed: (HARMONY-2125) [classlib][crypto] RSA Cipher
implementation corrupts the data
[ https://issues.apache.org/jira/browse/HARMONY-2125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stepan Mishura closed HARMONY-2125.
-----------------------------------
Closing resolved issue -- no response from reporter, so assuming ok.
> [classlib][crypto] RSA Cipher implementation corrupts the data
> --------------------------------------------------------------
>
> Key: HARMONY-2125
> URL: https://issues.apache.org/jira/browse/HARMONY-2125
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexander Kleymenov
> Assigned To: Stepan Mishura
> 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.
-
You can reply to this email to add a comment to the issue online.