Implemented a custom InternetSeedGenerator to override seed generator ordering to try and fix long waiting times on Linux because DefaultSeedGenerator uses /dev/random first instead of random.org

1) Added SeedSize to provide easier access to 'magic' numbers
2) Added AES128CounterSecureRNG
This commit is contained in:
Peter Badenhorst 2012-07-02 13:13:45 +02:00
parent ddadb1bb06
commit eac778d8da
10 changed files with 137 additions and 18 deletions

View file

@ -83,6 +83,9 @@ class Ticket1978SHA1PRNGSpec extends Ticket1978CommunicationSpec(getCipherConfig
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class Ticket1978AES128CounterSecureRNGSpec extends Ticket1978CommunicationSpec(getCipherConfig("AES128CounterSecureRNG", "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_CBC_SHA"))
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class Ticket1978AES256CounterSecureRNGSpec extends Ticket1978CommunicationSpec(getCipherConfig("AES256CounterSecureRNG", "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_CBC_SHA"))
/**
* Both of the <quote>Inet</quote> variants require access to the Internet to access random.org.
*/