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.

48 lines
1.2KB

  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">Name</th>
  7. <th rowspan="2">Key exchange</th>
  8. <th rowspan="2">Authentification</th>
  9. <th colspan="4">Encryption</th>
  10. <th colspan="2">MAC</th>
  11. <th rowspan="2">PFS</th>
  12. </tr>
  13. <tr>
  14. <th>Type</th>
  15. <th>Key size</th>
  16. <th>Block size</th>
  17. <th>Mode</th>
  18. <th>Type</th>
  19. <th>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>