ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm O hEigeartaigh (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (WSS-88) SecureRandom.getInstance("SHA1PRNG") is slow on IBM JDK 1.4.2 (And perhaps others)
Date Mon, 03 Oct 2011 09:04:39 GMT

     [ https://issues.apache.org/jira/browse/WSS-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colm O hEigeartaigh closed WSS-88.
----------------------------------

    
> SecureRandom.getInstance("SHA1PRNG") is slow on IBM JDK 1.4.2 (And perhaps others)
> ----------------------------------------------------------------------------------
>
>                 Key: WSS-88
>                 URL: https://issues.apache.org/jira/browse/WSS-88
>             Project: WSS4J
>          Issue Type: Improvement
>         Environment: Windows/ Solaris IBM JDK 1.4.2
>            Reporter: Rasmus Rhein Helwigh
>            Assignee: Fred Dushin
>             Fix For: 1.5.4
>
>         Attachments: patch.diff
>
>
> The methods 
> org.apache.ws.security.message.WSSecEncryptedKey.generateEphemeralKey
> org.apache.ws.security.message.token ( static )
> org.apache.ws.security.util.generateNonce
> all use  the method
> java.security.SecureRandom.getInstance("SHA1PRNG") 
> generating random numbers with this instance is very slow on the IBM JDK ( Generating
32 random bytes takes about 2 seconds, where it it takes less that 1ms on SUN's jdk ).
> Would it be possible to use another random algorithm that performs better?
> The IBM JDK method SecureRandom.getInstance("IBMSecureRandom"); performs as good as the
one in the sun API.
> ----- Notes ----
> The reason I'm filing this improvement is because I'm using rampart to request a Secure
Token from a Tokenservice. Because of the above mentioned problem, issuing a token takes 7.4
secons on a 2.4 ghz windows machine using IBM jdk 1.4.2. On Suns JDK it takes 200ms. 
> As a result, I'm forced to use a custom build version of the WSS4J, but I'd really prefer
to use the std API.
> I know this could be seen as an error in the IBM jdk, but I'd prefer if I could get the
improvement done in the WSS4J API.
> Regards Rasmus Helwigh, Safewhere

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message