You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ciphers.html.erb 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <div class="container">
  2. <div class="row">
  3. <table class="table table-bordered table-condensed table-striped center col-sm-12">
  4. <thead>
  5. <tr>
  6. <th rowspan="2"><%= t 'Name' %></th>
  7. <th rowspan="2"><%= t 'Key exchange' %></th>
  8. <th rowspan="2"><%= t 'Authentication' %></th>
  9. <th colspan="4"><%= t 'Encryption' %></th>
  10. <th colspan="2"><%= t 'MAC' %></th>
  11. <th rowspan="2"><%= t 'PFS' %></th>
  12. </tr>
  13. <tr>
  14. <th><%= t 'Type' %></th>
  15. <th><%= t 'Key size' %></th>
  16. <th><%= t 'Block size' %></th>
  17. <th><%= t 'Mode' %></th>
  18. <th><%= t 'Type' %></th>
  19. <th><%= t 'Size' %></th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <% CryptCheck::Tls::Cipher.list.each do |cipher|
  24. params = cipher.params
  25. kex = params[:kex]
  26. auth = params[:auth]
  27. enc = params[:enc]
  28. mac = params[:mac]
  29. pfs = params[:pfs]
  30. %>
  31. <tr>
  32. <th><%= cipher_name_label cipher %></th>
  33. <%= cipher_kex_type_cell kex&.first %>
  34. <%= cipher_auth_type_cell auth&.first %>
  35. <%= cipher_enc_type_cell enc&.first %>
  36. <%= cipher_enc_key_size_cell enc&.[] 1 %>
  37. <%= cipher_enc_block_size_cell enc&.[] 2 %>
  38. <%= cipher_enc_mode_cell enc&.last %>
  39. <%= cipher_mac_type_cell mac&.first %>
  40. <%= cipher_mac_size_cell mac&.last %>
  41. <%= cipher_pfs_cell pfs %>
  42. </tr>
  43. <% end %>
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>