| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final Hashtable | |
| private HybridValueParameterSpec | |
| protected final String | |
| protected final DerivationFunction | |
| private static final Map | |
| private static final Map | |
| private static final Hashtable | |
| protected byte[] | |
| protected byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| protected abstract byte[] | |
| protected abstract void | |
| protected byte[] | engineGenerateSecret()
Implements abstract javax. Generates the shared secret and returns it in a new buffer. |
| protected int | engineGenerateSecret(byte[]
the buffer for the shared secret sharedSecret, int the offset in offset)sharedSecret where the
shared secret will be storedImplements abstract javax. Generates the shared secret, and places it into the buffer
|
| protected SecretKey | engineGenerateSecret(String
the requested secret key algorithm 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
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 random)Implements abstract javax. Initializes this key agreement with the given key and source of randomness. |
| 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, AlgorithmParameterSpec the key agreement parameters params, SecureRandom the source of randomness random)Implements abstract javax. Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness. |
| protected static String | |
| protected static int | |
| private byte[] | |
| protected static byte[] |
| defaultOids | back to summary |
|---|---|
| private static final Map<String, ASN1ObjectIdentifier> defaultOids | |
| des | back to summary |
|---|---|
| private static final Hashtable<K, V> des | |
| hybridSpec | back to summary |
|---|---|
| private HybridValueParameterSpec hybridSpec | |
| kaAlgorithm | back to summary |
|---|---|
| protected final String kaAlgorithm | |
| kdf | back to summary |
|---|---|
| protected final DerivationFunction kdf | |
| keySizes | back to summary |
|---|---|
| private static final Map<String, Integer> keySizes | |
| nameTable | back to summary |
|---|---|
| private static final Map<String, String> nameTable | |
| oids | back to summary |
|---|---|
| private static final Hashtable<K, V> oids | |
| ukmParameters | back to summary |
|---|---|
| protected byte[] ukmParameters | |
| ukmParametersSalt | back to summary |
|---|---|
| protected byte[] ukmParametersSalt | |
| BaseAgreementSpi | back to summary |
|---|---|
| public BaseAgreementSpi(String kaAlgorithm, DerivationFunction kdf) | |
| calcSecret | back to summary |
|---|---|
| private byte[] calcSecret() | |
| doCalcSecret | back to summary |
|---|---|
| protected abstract byte[] doCalcSecret() | |
| doInitFromKey | back to summary |
|---|---|
| protected abstract void doInitFromKey(Key key, AlgorithmParameterSpec parameterSpec, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException | |
| 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 NoSuchAlgorithmException 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.
| |
| getAlgorithm | back to summary |
|---|---|
| protected static String getAlgorithm(String algDetails) | |
| getKeySize | back to summary |
|---|---|
| protected static int getKeySize(String algDetails) | |
| getSharedSecretBytes | back to summary |
|---|---|
| private byte[] getSharedSecretBytes(byte[] secret, String oidAlgorithm, int keySize) throws NoSuchAlgorithmException | |
| trimZeroes | back to summary |
|---|---|
| protected static byte[] trimZeroes(byte[] secret) | |