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 936B

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="container">
  2. <div class="row">
  3. <table class="table-bordered table-condensed table-striped col-sm-12">
  4. <thead>
  5. <tr>
  6. <th class="col-sm-4">Algorithme</th>
  7. <th class="col-sm-1">Taille</th>
  8. <td class="col-sm-7"></td>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <% %i(TLSv1_2).each do |protocol|
  13. context = OpenSSL::SSL::SSLContext.new protocol rescue next
  14. %>
  15. <!--
  16. <tr>
  17. <th colspan="3"><h1><%= protocol %><h1></th>
  18. </tr>
  19. -->
  20. <%
  21. context.ciphers = 'ALL:COMPLEMENTOFALL'
  22. context.ciphers.collect { |c| CryptCheck::Tls::Cipher.new protocol, c }
  23. .sort { |a, b| -1 * (a.size <=> b.size)}.each do |cipher| %>
  24. <tr>
  25. <% state = cipher.state %>
  26. <th><%= cipher_name_label cipher, state %></th>
  27. <th><%= cipher_size_label cipher %></th>
  28. <th><%= cipher_labels state %></th>
  29. </tr>
  30. <% end %>
  31. <% end %>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>