Class BcYubikeyPublicKeyDataDecryptorFactory
java.lang.Object
org.bouncycastle.openpgp.operator.AbstractPublicKeyDataDecryptorFactory
org.bouncycastle.openpgp.operator.bc.BcPublicKeyDataDecryptorFactory
org.bouncycastle.openpgp.api.operator.bc.BcExternalPublicKeyDataDecryptorFactory
org.bouncycastle.openpgp.smartcard.yubikey.operator.bc.BcYubikeyPublicKeyDataDecryptorFactory
- All Implemented Interfaces:
org.bouncycastle.openpgp.operator.PGPDataDecryptorFactory, org.bouncycastle.openpgp.operator.PublicKeyDataDecryptorFactory
public class BcYubikeyPublicKeyDataDecryptorFactory
extends org.bouncycastle.openpgp.api.operator.bc.BcExternalPublicKeyDataDecryptorFactory
BcExternalPublicKeyDataDecryptorFactory routing the private-key operation of OpenPGP session-key
recovery to a YubiKey's OpenPGP applet.
The card performs the RSA decryption or the ECDH / X25519 agreement; all packet parsing, KDF and key
unwrap work stays in BcPublicKeyDataDecryptorFactory.
ElGamal and X448 are not supported by the applet and are rejected.
-
Constructor Summary
ConstructorsConstructorDescriptionBcYubikeyPublicKeyDataDecryptorFactory(org.bouncycastle.openpgp.api.OpenPGPKey.OpenPGPSecretKey secretKey, YubikeyOpenPGPSmartCard yubikey, org.bouncycastle.openpgp.api.KeyPassphraseProvider userPinProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.openpgp.operator.bc.BcPublicKeyCryptoCallbackMethods inherited from class org.bouncycastle.openpgp.api.operator.bc.BcExternalPublicKeyDataDecryptorFactory
getCryptoCallback, getSecretKeyMethods inherited from class org.bouncycastle.openpgp.operator.bc.BcPublicKeyDataDecryptorFactory
createDataDecryptor, createDataDecryptor, createDataDecryptor, recoverSessionData, unwrapSessionDataMethods inherited from class org.bouncycastle.openpgp.operator.AbstractPublicKeyDataDecryptorFactory
checkRange, containsSKAlg, parseECDHEncSessionKey, parseXDHEncSessionKey, prependSKAlgorithmToSessionData, recoverSessionData, recoverSessionData
-
Constructor Details
-
BcYubikeyPublicKeyDataDecryptorFactory
public BcYubikeyPublicKeyDataDecryptorFactory(org.bouncycastle.openpgp.api.OpenPGPKey.OpenPGPSecretKey secretKey, YubikeyOpenPGPSmartCard yubikey, org.bouncycastle.openpgp.api.KeyPassphraseProvider userPinProvider) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
-
Method Details
-
getExternalKeyCryptoCallback
public org.bouncycastle.openpgp.operator.bc.BcPublicKeyCryptoCallback getExternalKeyCryptoCallback()- Specified by:
getExternalKeyCryptoCallbackin classorg.bouncycastle.openpgp.api.operator.bc.BcExternalPublicKeyDataDecryptorFactory
-