ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm O hEigeartaigh (Closed) (JIRA)" <>
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


Colm O hEigeartaigh closed WSS-88.

> SecureRandom.getInstance("SHA1PRNG") is slow on IBM JDK 1.4.2 (And perhaps others)
> ----------------------------------------------------------------------------------
>                 Key: WSS-88
>                 URL:
>             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 
> ( static )
> all use  the method
> 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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message