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 KeyengineDoPhase(Key key, boolean lastPhase) protected byte[]protected intengineGenerateSecret(byte[] sharedSecret, int offset) protected SecretKeyengineGenerateSecret(String algorithm) protected voidengineInit(Key key, SecureRandom random) protected voidengineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
-
Method Details
-
engineInit
- Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyException
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineDoPhase
@Nullable protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhasein classKeyAgreementSpi- Throws:
InvalidKeyExceptionIllegalStateException
-
engineGenerateSecret
- Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
IllegalStateException
-
engineGenerateSecret
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException - Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
IllegalStateExceptionShortBufferException
-
engineGenerateSecret
protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException - Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
IllegalStateExceptionNoSuchAlgorithmExceptionInvalidKeyException
-