public class ECIESCipher extends Object
| Constructor and Description |
|---|
ECIESCipher() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(PrivateKey privKey,
byte[] ciphertext) |
byte[] |
encrypt(PublicKey pubKey,
byte[] message) |
KeyPair |
generateKeyPair() |
KeyPair |
generateKeyPair(byte[] seedBytes) |
public KeyPair generateKeyPair() throws GeneralSecurityException
GeneralSecurityExceptionpublic KeyPair generateKeyPair(byte[] seedBytes) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encrypt(PublicKey pubKey, byte[] message) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] decrypt(PrivateKey privKey, byte[] ciphertext) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2018. All rights reserved.