code: public static boolean checkKeyAgreement(Platform platform, byte[] aMsg, int keyPos,
  			int keyCount) {
  		if (keyCount != 4)
  			return false;
  		
  		boolean result = (platform.getUtils().equals(KeyAgreementType.ECDH384.getType(), 0, aMsg, keyPos , 4)  &&
  			    platform.getUtils().equals(KeyAgreementType.ECDH256.getType(), 0, aMsg, keyPos + 1 * 4, 4) &&
  			    platform.getUtils().equals(KeyAgreementType.DH3K.getType(), 0, aMsg, keyPos + 2 * 4, 4) &&
  			    platform.getUtils().equals(new byte[] { 'D', 'H', '2', 'k' }, 0, aMsg, keyPos + 3 * 4, 4));
  		
  		return result;
  	}
docs: Legacy Client send 4 key agreement : EC38 EC25 DH3K DH2K