| Modifier and Type | Field and Description |
|---|---|
| private ECPrivateKey | |
| private ECOperations | |
| private ECPublicKey | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| protected Key | engineDoPhase(Key key, boolean lastPhase)
Implements abstract javax. Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement. |
| protected byte[] | engineGenerateSecret()
Implements abstract javax. Generates the shared secret and returns it in a new buffer. |
| protected int | engineGenerateSecret(byte[] sharedSecret, int offset)
Implements abstract javax. Generates the shared secret, and places it into the buffer
|
| protected SecretKey | engineGenerateSecret(String algorithm)
Implements abstract javax. Creates the shared secret and returns it as a secret key object of the requested algorithm type. |
| protected void | engineInit(Key key, SecureRandom random)
Implements abstract javax. Initializes this key agreement with the given key and source of randomness. |
| protected void | engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
Implements abstract javax. Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness. |
| private void | |
| private static void | |
| private static void |
| privateKey | back to summary |
|---|---|
| private ECPrivateKey privateKey | |
| privateKeyOps | back to summary |
|---|---|
| private ECOperations privateKeyOps | |
| publicKey | back to summary |
|---|---|
| private ECPublicKey publicKey | |
| secretLen | back to summary |
|---|---|
| private int secretLen | |
| ECDHKeyAgreement | back to summary |
|---|---|
| public ECDHKeyAgreement() Constructs a new ECDHKeyAgreement. | |
| deriveKeyImpl | back to summary |
|---|---|
| private static byte[] deriveKeyImpl(ECPrivateKey priv, ECOperations ops, ECPublicKey pubKey) throws InvalidKeyException | |
| engineDoPhase | back to summary |
|---|---|
| protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException Implements abstract javax. Doc from javax. Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.
| |
| engineGenerateSecret | back to summary |
|---|---|
| protected byte[] engineGenerateSecret() throws IllegalStateException Implements abstract javax. Doc from javax. Generates the shared secret and returns it in a new buffer. This method resets this
| |
| engineGenerateSecret | back to summary |
|---|---|
| protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException Implements abstract javax. Doc from javax. Generates the shared secret, and places it into the buffer
If the This method resets this
| |
| engineGenerateSecret | back to summary |
|---|---|
| protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException Implements abstract javax. Doc from javax. Creates the shared secret and returns it as a secret key object of the requested algorithm type. This method resets this
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException Implements abstract javax. Doc from javax. Initializes this key agreement with the given key and source of randomness. The given key is required to contain all the algorithm parameters required for this key agreement. If the key agreement algorithm requires random bytes, it gets them
from the given source of randomness,
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract javax. Doc from javax. Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.
| |
| init | back to summary |
|---|---|
| private void init(Key key) throws InvalidKeyException, InvalidAlgorithmParameterException | |
| validate | back to summary |
|---|---|
| private static void validate(ECOperations ops, ECPublicKey key) throws InvalidKeyException | |
| validateCoordinate | back to summary |
|---|---|
| private static void validateCoordinate(BigInteger c, BigInteger mod) throws InvalidKeyException | |