|
|
|
@ -86,17 +86,15 @@ |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<% %w(TLSv1_2 TLSv1_1 TLSv1 SSLv3 SSLv2).each do |protocol| |
|
|
|
|
ciphers = @result.ciphers.select { |c| c.protocol == protocol } |
|
|
|
|
.sort { |a, b| -1 * (a['size'] <=> b['size']) } |
|
|
|
|
ciphers = CryptCheck::Tls::Cipher.sort(@result.ciphers.select { |c| c.protocol == protocol } |
|
|
|
|
.collect { |c| CryptCheck::Tls::Cipher.new protocol, [c.name, nil, c[:size]], c.dh }) |
|
|
|
|
unless ciphers.empty? %> |
|
|
|
|
<tr> |
|
|
|
|
<th colspan="3"><%= protocol_label protocol %></th> |
|
|
|
|
</tr> |
|
|
|
|
<% ciphers.each do |cipher| |
|
|
|
|
cipher = CryptCheck::Tls::Cipher.new protocol, [cipher.name, nil, cipher[:size]], cipher.dh |
|
|
|
|
%> |
|
|
|
|
<% ciphers.each do |cipher| %> |
|
|
|
|
<tr> |
|
|
|
|
<th><%= cipher_name_label cipher, cipher.state %></th> |
|
|
|
|
<th><%= cipher_name_label cipher %></th> |
|
|
|
|
<td><%= cipher_size_label cipher %></td> |
|
|
|
|
<td><%= key_label cipher.dh if cipher.dh %></td> |
|
|
|
|
<td><%= cipher_labels cipher %></td> |
|
|
|
|