private static BigInteger[] loadElGamalKeyFile(String fileName, KeyType type) throws FileNotFoundException, CorruptDataException, IOException {
		BigInteger[] result = new BigInteger[3];
		File file = new File(fileName);

		FileReader fr = new FileReader(file);
		BufferedReader br = new BufferedReader(fr);
		int i = 0;
		String line;
		while ((line = br.readLine()) != null) {
			switch (type) {
			case PUBLIC:
				result[i] = ElGamalKeySwitch(line, type);
				break;
			case PRIVATE:
				result[i] = ElGamalKeySwitch(line, type);
				break;
			}
			i++;
		}
		br.close();
		return result;
	}