Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java 2.1.2
-
None
Description
There is currently no mechanism to tell XMLCipher.encryptKey() which SecureRandom to use for the random generation within OAEP, so the Sun RNG is used.
To make this configurable, one could pass the SecureRandom algorithm to getProviderInstance, and encryptKey could use the requestedJCEProvider to create a SecureRandom instance. Alternatively, add an optional secureRandom parameter to encryptKey.