public class ElGamalUtil extends Object
| Constructor and Description |
|---|
ElGamalUtil() |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
convertEncodedBytesToPrivateKey(byte[] encodedBytes) |
static PublicKey |
convertEncodedBytesToPublicKey(byte[] encodedBytes) |
static Cipher |
getCipher()
get des cipher
|
public static PublicKey convertEncodedBytesToPublicKey(byte[] encodedBytes) throws NoSuchAlgorithmException, InvalidKeySpecException
public static PrivateKey convertEncodedBytesToPrivateKey(byte[] encodedBytes) throws NoSuchAlgorithmException, InvalidKeySpecException
public static Cipher getCipher() throws NoSuchPaddingException, NoSuchAlgorithmException
NoSuchPaddingException - xxxNoSuchAlgorithmException - xxxCopyright © 2019. All rights reserved.