### Question:
HandshakeAEAD { public static AEAD create( final byte[] handshakeSecret, final byte[] helloHash, final boolean isClient) { final byte[] clientHandshakeTrafficSecret = HKDF.expandLabel(handshakeSecret, CLIENT_HANDSHAKE_TRAFFIC_SECRET, helloHash, 32); final byte[] serverHandshakeTrafficSecret = HKDF.expandLabel(handshakeSecret, SERVER_HANDSHAKE_TRAFFIC_SECRET, helloHash, 32); final byte[] clientHandshakeKey = HKDF.expandLabel(clientHandshakeTrafficSecret, KEY, new byte[0], 16); final byte[] serverHandshakeKey = HKDF.expandLabel(serverHandshakeTrafficSecret, KEY, new byte[0], 16); final byte[] clientHandshakeIV = HKDF.expandLabel(clientHandshakeTrafficSecret, IV, new byte[0], 12); final byte[] serverHandshakeIV = HKDF.expandLabel(serverHandshakeTrafficSecret, IV, new byte[0], 12); final byte[] clientPnKey = HKDF.expandLabel(clientHandshakeTrafficSecret, HP_KEY, new byte[0], 16); final byte[] serverPnKey = HKDF.expandLabel(serverHandshakeTrafficSecret, HP_KEY, new byte[0], 16); if (isClient) { return new AEAD( clientHandshakeKey, serverHandshakeKey, clientHandshakeIV, serverHandshakeIV, clientPnKey, serverPnKey); } else { return new AEAD( serverHandshakeKey, clientHandshakeKey, serverHandshakeIV, clientHandshakeIV, serverPnKey, clientPnKey); } }  static AEAD create(
      final byte[] handshakeSecret, final byte[] helloHash, final boolean isClient);  }### Answer:
@Test public void testKnownTls() { final byte[] sharedSecret = dehex("df4a291baa1eb7cfa6934b29b474baad2697e29f1f920dcc77c8a0a088447624"); final byte[] helloHash = dehex("da75ce1139ac80dae4044da932350cf65c97ccc9e33f1e6f7d2d4b18b736ffd5"); final byte[] handshakeSecret = HKDF.calculateHandshakeSecret(sharedSecret); final AEAD aead = HandshakeAEAD.create(handshakeSecret, helloHash, true); assertEquals("25f3dd7e6173c9e01647cb9ef2f71c3d", hex(aead.getMyKey())); assertEquals("7832ada4194357104157f645758e34fb", hex(aead.getOtherKey())); assertEquals("034c31fe01a40f3734ae1420", hex(aead.getMyIV())); assertEquals("c6a739c3e2d30f92e89a9289", hex(aead.getOtherIV())); }