public class ECDH extends Object
| Constructor and Description |
|---|
ECDH() |
| Modifier and Type | Method and Description |
|---|---|
KeyPair |
generateKeyPair() |
byte[] |
generateSecret(byte[] dataPrv,
byte[] dataPub) |
byte[] |
savePrivateKey(PrivateKey key) |
byte[] |
savePublicKey(PublicKey key) |
public ECDH()
throws GeneralSecurityException
GeneralSecurityExceptionpublic KeyPair generateKeyPair()
public byte[] savePrivateKey(PrivateKey key) throws Exception
ExceptionCopyright © 2018. All rights reserved.