| Modifier and Type | Field and Description |
|---|---|
| protected Agreement | |
| private final AgreementFactory | |
| private static final Map | |
| private final FipsKDF. | |
| private final KDFOperatorFactory | |
| private static final KeyIvSizeProvider | |
| private static final Map | |
| private Parameters | |
| private final ParametersCreator | |
| private final PrivateKeyConverter | |
| private final PublicKeyConverter | |
| protected byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| protected | BaseAgreement(AgreementFactory<T extends Parameters> agreementFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, ParametersCreator<T extends Parameters> parametersCreator)
|
| protected | BaseAgreement(AgreementFactory<T extends Parameters> agreementFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, ParametersCreator<T extends Parameters> parametersCreator, FipsKDF.
|
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| 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()
Implements abstract javax. |
| 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. sharedSecret, beginning at offset inclusive.
|
| protected SecretKey | engineGenerateSecret(String
the requested secret key algorithm algorithm)Implements abstract javax. |
| 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. |
| 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. |
| private static String | |
| private static int | |
| private static String | |
| private void | |
| private static byte[] |
| agreement | back to summary |
|---|---|
| protected Agreement<T extends Parameters> agreement | |
| agreementFactory | back to summary |
|---|---|
| private final AgreementFactory<T extends Parameters> agreementFactory | |
| defaultOids | back to summary |
|---|---|
| private static final Map<String, ASN1ObjectIdentifier> defaultOids | |
| kdfAlgorithm | back to summary |
|---|---|
| private final FipsKDF. | |
| kdfOperatorFactory | back to summary |
|---|---|
| private final KDFOperatorFactory<T extends Parameters> kdfOperatorFactory | |
| keySizeProvider | back to summary |
|---|---|
| private static final KeyIvSizeProvider keySizeProvider | |
| nameTable | back to summary |
|---|---|
| private static final Map<String, String> nameTable | |
| parameters | back to summary |
|---|---|
| private Parameters parameters | |
| parametersCreator | back to summary |
|---|---|
| private final ParametersCreator<T extends Parameters> parametersCreator | |
| privateKeyConverter | back to summary |
|---|---|
| private final PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter | |
| publicKeyConverter | back to summary |
|---|---|
| private final PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter | |
| result | back to summary |
|---|---|
| protected byte[] result | |
| userKeyingMaterial | back to summary |
|---|---|
| private byte[] userKeyingMaterial | |
| BaseAgreement | back to summary |
|---|---|
| protected BaseAgreement(AgreementFactory<T extends Parameters> agreementFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, ParametersCreator<T extends Parameters> parametersCreator) | |
| BaseAgreement | back to summary |
|---|---|
| protected BaseAgreement(AgreementFactory<T extends Parameters> agreementFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, ParametersCreator<T extends Parameters> parametersCreator, FipsKDF. | |
| calculateAgreement | back to summary |
|---|---|
| private byte[] calculateAgreement(AsymmetricPublicKey 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 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, 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.
| |
| 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,
| |
| getAlgorithm | back to summary |
|---|---|
| private static String getAlgorithm(String algDetails) | |
| getKeySize | back to summary |
|---|---|
| private static int getKeySize(String algDetails) | |
| getSimpleName | back to summary |
|---|---|
| private static String getSimpleName(Class<?> clazz) | |
| initFromKey | back to summary |
|---|---|
| private void initFromKey(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException | |
| trimZeroes | back to summary |
|---|---|
| private static byte[] trimZeroes(byte[] secret) | |