| Modifier and Type | Field and Description |
|---|---|
| private NHAgreement | |
| private NHExchangePairGenerator | |
| private BCNHPublicKey | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | doCalcSecret()
Implements abstract org. |
| protected void | doInitFromKey(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom)
Implements abstract org. |
| protected Key | engineDoPhase(Key
the key for this phase. For example, in the case of
Diffie-Hellman between 2 parties, this would be the other party's
Diffie-Hellman public key. key, boolean flag which indicates whether this is the last
phase of this key agreement. lastPhase)Implements abstract javax. |
| protected byte[] | engineGenerateSecret()
Overrides org. |
| protected int | engineGenerateSecret(byte[]
the buffer for the shared secret bytes, int the offset in offset)sharedSecret where the
shared secret will be storedOverrides org. sharedSecret, beginning at offset inclusive.
|
| protected void | engineInit(Key
the party's private information. For example, in the case
of the Diffie-Hellman key agreement, this would be the party's own
Diffie-Hellman private key. key, SecureRandom the source of randomness secureRandom)Overrides org. |
| agreement | back to summary |
|---|---|
| private NHAgreement agreement | |
| exchangePairGenerator | back to summary |
|---|---|
| private NHExchangePairGenerator exchangePairGenerator | |
| otherPartyKey | back to summary |
|---|---|
| private BCNHPublicKey otherPartyKey | |
| shared | back to summary |
|---|---|
| private byte[] shared | |
| KeyAgreementSpi | back to summary |
|---|---|
| public KeyAgreementSpi() | |
| doCalcSecret | back to summary |
|---|---|
| protected byte[] doCalcSecret() Implements abstract org. | |
| doInitFromKey | back to summary |
|---|---|
| protected void doInitFromKey(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract org. | |
| 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 Overrides org. 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[] bytes, int offset) throws IllegalStateException, ShortBufferException Overrides org. Doc from javax. Generates the shared secret, and places it into the buffer
If the This method resets this
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(Key key, SecureRandom secureRandom) throws InvalidKeyException Overrides org. 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,
| |