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.

35 lines
903B

  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. ciphers = context.ciphers.collect { |c| CryptCheck::Tls::Cipher.new protocol, c }
  23. CryptCheck::Tls::Cipher.sort(ciphers).each do |cipher| %>
  24. <tr>
  25. <th><%= cipher_name_label cipher %></th>
  26. <th><%= cipher_size_label cipher %></th>
  27. <th><%= cipher_labels cipher %></th>
  28. </tr>
  29. <% end %>
  30. <% end %>
  31. </tbody>
  32. </table>
  33. </div>
  34. </div>