docs: public static KeyPairGenerator newKeyPairGenerator(final String algorithm, final int keySize)
  		throws NoSuchAlgorithmException, NoSuchProviderException
  	{
  		KeyPairGenerator generator;
  		if ("EC".equals(algorithm))
  		{
  			generator = KeyPairGenerator.getInstance(algorithm, "BC");
  		}
  		else
  		{
  			generator = KeyPairGenerator.getInstance(algorithm);
  			generator.initialize(keySize);
  		}
  		return generator;
  	}