parent
7646506af0
commit
83bafb48a2
8 changed files with 10 additions and 182 deletions
|
|
@ -91,31 +91,6 @@ class Ticket1978AES128CounterSecureRNGSpec extends Ticket1978CommunicationSpec(g
|
|||
|
||||
class Ticket1978AES256CounterSecureRNGSpec extends Ticket1978CommunicationSpec(getCipherConfig("AES256CounterSecureRNG", "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_CBC_SHA"))
|
||||
|
||||
/**
|
||||
* Both of the `Inet` variants require access to the Internet to access random.org.
|
||||
*/
|
||||
class Ticket1978AES128CounterInetRNGSpec extends Ticket1978CommunicationSpec(getCipherConfig("AES128CounterInetRNG", "TLS_RSA_WITH_AES_128_CBC_SHA"))
|
||||
with InetRNGSpec
|
||||
|
||||
/**
|
||||
* Both of the `Inet` variants require access to the Internet to access random.org.
|
||||
*/
|
||||
class Ticket1978AES256CounterInetRNGSpec extends Ticket1978CommunicationSpec(getCipherConfig("AES256CounterInetRNG", "TLS_RSA_WITH_AES_256_CBC_SHA"))
|
||||
with InetRNGSpec
|
||||
|
||||
trait InetRNGSpec { this: Ticket1978CommunicationSpec ⇒
|
||||
override def preCondition = try {
|
||||
(new RandomDotOrgSeedGenerator).generateSeed(128)
|
||||
true
|
||||
} catch {
|
||||
case NonFatal(e) ⇒
|
||||
log.warning("random.org not available: {}", e.getMessage())
|
||||
false
|
||||
}
|
||||
|
||||
override implicit val timeout: Timeout = Timeout(90.seconds)
|
||||
}
|
||||
|
||||
class Ticket1978DefaultRNGSecureSpec extends Ticket1978CommunicationSpec(getCipherConfig("", "TLS_RSA_WITH_AES_128_CBC_SHA"))
|
||||
|
||||
class Ticket1978CrappyRSAWithMD5OnlyHereToMakeSureThingsWorkSpec extends Ticket1978CommunicationSpec(getCipherConfig("", "SSL_RSA_WITH_NULL_MD5"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue