Home | History | Annotate | Download | only in conscrypt

Lines Matching defs:CipherSuite

32                 assertNull(CipherSuite.getByName(name));
38 assertNull(CipherSuite.getByName("bogus"));
40 CipherSuite.getByName(null);
47 CipherSuite cs = CipherSuite.getByName(name);
53 private void test_CipherSuite(CipherSuite cs) throws Exception {
58 assertSame(name, cs, CipherSuite.getByName(name));
68 assertSame(name, cs, CipherSuite.getByCode(bytes[0], bytes[1]));
69 assertSame(name, cs, CipherSuite.getByCode((byte) 0, bytes[0], bytes[1]));
104 // CipherSuite.getByCode is also covered by test_CipherSuite
105 assertUnknown(CipherSuite.getByCode((byte) 0x12, (byte) 0x34));
106 assertUnknown(CipherSuite.getByCode((byte) 0x12, (byte) 0x34, (byte) 0x56));
107 assertUnknown(CipherSuite.getByCode((byte) -1, (byte) -1));
108 assertUnknown(CipherSuite.getByCode((byte) -1, (byte) -1, (byte) -1));
110 private void assertUnknown(CipherSuite cs) {
116 CipherSuite[] suites = CipherSuite.getSupported();
118 for (CipherSuite cs : suites) {
122 assertEquals(Arrays.asList(CipherSuite.getSupportedCipherSuiteNames()), names);
126 String[] names = CipherSuite.getSupportedCipherSuiteNames();
137 String keyType = CipherSuite.getClientKeyType(b);