Package com.yubico.yubikit.piv.jca
Class PivKeyAgreementSpi
java.lang.Object
javax.crypto.KeyAgreementSpi
com.yubico.yubikit.piv.jca.PivKeyAgreementSpi
-
Method Summary
Modifier and TypeMethodDescriptionprotected Key
engineDoPhase
(Key key, boolean lastPhase) protected byte[]
protected int
engineGenerateSecret
(byte[] sharedSecret, int offset) protected SecretKey
engineGenerateSecret
(String algorithm) protected void
engineInit
(Key key, SecureRandom random) protected void
engineInit
(Key key, AlgorithmParameterSpec params, SecureRandom random)
-
Method Details
-
engineInit
- Specified by:
engineInit
in classKeyAgreementSpi
- Throws:
InvalidKeyException
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInit
in classKeyAgreementSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineDoPhase
@Nullable protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhase
in classKeyAgreementSpi
- Throws:
InvalidKeyException
IllegalStateException
-
engineGenerateSecret
- Specified by:
engineGenerateSecret
in classKeyAgreementSpi
- Throws:
IllegalStateException
-
engineGenerateSecret
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException - Specified by:
engineGenerateSecret
in classKeyAgreementSpi
- Throws:
IllegalStateException
ShortBufferException
-
engineGenerateSecret
protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException - Specified by:
engineGenerateSecret
in classKeyAgreementSpi
- Throws:
IllegalStateException
NoSuchAlgorithmException
InvalidKeyException
-