[<%= self.type.to_s.upcase %>] <%= @host %> (<%= l @result.date %>)

<% if Time.now - @result.date >= Rails.configuration.refresh_delay %>
<%= link_to t('Refresh'), { action: :refresh }, class: %i(btn btn-default) %>
<% end %>
<% @result.result.each do |host| %>

<%= rank_label host[:grade] %> <%= host[:ip] %> : <%= host[:port] %> (<%= host[:hostname] %>)

<% ::CryptCheck::State.each do |level| host[:states][level].each do |state, value| next unless value %>
<%= t "alert.#{level}.#{state}" %>
<% end end %>
<% handshakes = host[:handshakes] all_ciphers = handshakes[:ciphers].group_by { |c| c[:protocol] } CryptCheck::Tls::Method.each do |protocol| ciphers = all_ciphers.fetch(protocol, []) .collect { |c| CryptCheck::Tls::Cipher.new protocol, c[:name] }.sort unless ciphers.empty? %> <% ciphers.each do |cipher| kex = cipher.kex auth = cipher.auth enc = cipher.encryption mac = cipher.hmac pfs = cipher.pfs? %> <%= cipher_kex_type_cell kex %> <%= cipher_auth_type_cell auth %> <%= cipher_enc_type_cell enc[0] %> <%= cipher_enc_key_size_cell enc[1] %> <%= cipher_enc_block_size_cell enc[2] %> <%= cipher_enc_mode_cell enc[3] %> <%= cipher_mac_type_cell mac[0] %> <%= cipher_mac_size_cell mac[1] %> <%= cipher_pfs_cell pfs %> <% end end end %>
<%= t 'Name' %> <%= t 'Key exchange' %> <%= t 'Authentication' %> <%= t 'Encryption' %> <%= t 'MAC' %> <%= t 'PFS' %>
<%= t 'Type' %> <%= t 'Key size' %> <%= t 'Block size' %> <%= t 'Mode' %> <%= t 'Type' %> <%= t 'Size' %>
<%= protocol_label protocol %>
<%= cipher_name_label cipher %>
<% end %>