public static KeyPairGenerator getKeyPairGenerator(String algorithm) {
		final Provider provider = GlobalBouncyCastleProvider.INSTANCE.getProvider();

		KeyPairGenerator keyPairGen;
		try {
			keyPairGen = (null == provider) //
					? KeyPairGenerator.getInstance(getMainAlgorithm(algorithm)) //
					: KeyPairGenerator.getInstance(getMainAlgorithm(algorithm), provider);//
		} catch (NoSuchAlgorithmException e) {
			throw new CryptoException(e);
		}
		return keyPairGen;
	}
public static KeyPairGenerator getKeyPairGenerator ( String algorithm ) { final Provider provider = GlobalBouncyCastleProvider . INSTANCE . getProvider ( ) ; KeyPairGenerator keyPairGen ; try { keyPairGen = ( null == provider ) ? KeyPairGenerator . getInstance ( getMainAlgorithm ( algorithm ) ) : KeyPairGenerator . getInstance ( getMainAlgorithm ( algorithm ) , provider ) ; } catch ( NoSuchAlgorithmException e ) { throw new CryptoException ( e ) ; } return keyPairGen ; }
获取{@link KeyPairGenerator}

@param algorithm 非对称加密算法
@return {@link KeyPairGenerator}
@since 4.4.3