|
@@ -408,13 +408,6 @@ public class DataEncryption {
|
|
|
return keyFactory.generatePrivate(keySpec);
|
|
|
}
|
|
|
|
|
|
- public static KeyPair initKey(int keySize, String algorithm) throws NoSuchAlgorithmException {
|
|
|
- KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance(algorithm);
|
|
|
- keyPairGen.initialize(keySize);
|
|
|
- return keyPairGen.generateKeyPair();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* RSA签名
|