MCPcopy
hub / github.com/openwrt/luci / display_cipher

Method display_cipher

libs/nixio/axTLS/samples/java/axssl.java:707–723  ·  view source on GitHub ↗

Display what cipher we are using

(SSL ssl)

Source from the content-addressed store, hash-verified

705 * Display what cipher we are using
706 */
707 private void display_cipher(SSL ssl)
708 {
709 System.out.print("CIPHER is ");
710
711 byte ciph_id = ssl.getCipherId();
712
713 if (ciph_id == axtlsj.SSL_AES128_SHA)
714 System.out.println("AES128-SHA");
715 else if (ciph_id == axtlsj.SSL_AES256_SHA)
716 System.out.println("AES256-SHA");
717 else if (ciph_id == axtlsj.SSL_RC4_128_SHA)
718 System.out.println("RC4-SHA");
719 else if (ciph_id == axtlsj.SSL_RC4_128_MD5)
720 System.out.println("RC4-MD5");
721 else
722 System.out.println("Unknown - " + ssl.getCipherId());
723 }
724
725 public char toHexChar(int i)
726 {

Callers 2

do_serverMethod · 0.95
do_clientMethod · 0.95

Calls 1

getCipherIdMethod · 0.80

Tested by

no test coverage detected