Package com.ocient.util
Class CryptoUtils
java.lang.Object
com.ocient.util.CryptoUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyPairgenerateDHKeys(String dhParamString) static GCMParameterSpecgenerateIV(int ivLength) static PublicKey
-
Method Details
-
generatePublicKey
- Throws:
NoSuchAlgorithmException
-
generateDHKeys
public static KeyPair generateDHKeys(String dhParamString) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidAlgorithmParameterException -
generateIV
- Throws:
NoSuchAlgorithmException
-